---前台界面部分<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:id="@+id/LinearLayout1"android:layout_width="match_parent"android:layout_height="match_parent"android:background="..
分类:
移动开发 时间:
2016-03-11 06:41:14
阅读次数:
286
EditText 可让用户输入文字。常用属性设置: layout_width 为 wrap_content 时,EditText的宽度会随着输入的字而变宽。 当为 match_parent 时则会固定为parent 的宽度, 其他设置和 TextView类似。 另外,可以通过设置android:in
分类:
移动开发 时间:
2016-03-10 20:30:19
阅读次数:
196
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an
分类:
其他好文 时间:
2016-03-10 08:14:37
阅读次数:
157
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and
分类:
移动开发 时间:
2016-03-09 17:20:28
阅读次数:
207
View:xmlvisualizer:http://labs.udacity.com/android-visualizer/#/android/sandboxhexcolor:http://www.w3schools.com/colors/colors_hex.aspImageView:<ImageViewandroid:src="@drawable/cake"//don‘tneedtowritethesuffix,justnameandroid:layout_width="wrap_content"a..
分类:
移动开发 时间:
2016-03-08 13:46:29
阅读次数:
181
还在为布局的时候做不出来一条细细的线而烦恼么? 哈哈,自从知道了写法腰也不酸了,腿也不疼了!一口气写100行!! <View android:layout_height="1px" android:background="#000000" android:layout_width="fill_par
分类:
移动开发 时间:
2016-03-08 02:03:46
阅读次数:
210
第一步: 首先,在 布局文件中,声明listView控件. 1 <ListView 2 android:id="@+id/lv" 3 android:layout_width="fill_parent" //注意宽度和高度必须为 fill_parent 4 android:layout_height
分类:
移动开发 时间:
2016-03-08 00:26:28
阅读次数:
173
之前我们就输入框EditText做了优化,而这次,我们为app添加拨打电话的功能。 首先是布局,将activity_shop_info.xml中对应的电话那一栏进行重新设计: <RelativeLayout android:id="@+id/ll_tel" android:layout_width=
分类:
移动开发 时间:
2016-03-05 13:18:25
阅读次数:
156
运行结果:
一个隐式意图
布局文件:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andr...
分类:
移动开发 时间:
2016-03-03 21:27:13
阅读次数:
226
布局文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="ma
分类:
移动开发 时间:
2016-03-02 13:00:54
阅读次数:
203