1.LinearLayout(线性布局) android: orientation="vertical" //布局 android: layout_width="wrap_content " //控件宽度 android: layout_height="fill_parent" //控件高度 注意: ...
分类:
其他好文 时间:
2017-05-19 20:17:28
阅读次数:
151
<RadioGroup android:layout_width="fill_parent" android:layout_height="wrap_content" android:checkedButton="@+id/rb2" > <RadioButton android:id="@+id/r ...
分类:
移动开发 时间:
2017-05-18 18:43:10
阅读次数:
347
需求:网络请求接口,实现自动依次播放视频 1:xml布局文件 <VideoView android:id="@+id/video" android:layout_width="match_parent" android:layout_height="wrap_content" android:lay ...
分类:
其他好文 时间:
2017-05-18 16:50:55
阅读次数:
197
android: id= ” @id/id值” //设置id值 android: text=”**” //定义显示文字 android: layout_width="wrap_content" //组件宽度为文字宽度 android: layout_height="wrap_content" //组 ...
分类:
其他好文 时间:
2017-05-17 23:32:01
阅读次数:
238
布局: <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:lay ...
分类:
其他好文 时间:
2017-05-16 20:46:23
阅读次数:
244
文本框标签 layout_width 控件的宽度 layout_height 控件的高度 fill_parent 随着控件的高度/宽度 wrap_content 随着文字的高度/宽度 <TextView android:layout_width="fill_parent" android:layou ...
分类:
移动开发 时间:
2017-05-12 09:39:34
阅读次数:
204
layout_width 控件的宽度 layout_height 控件的高度 fill_parent 随着控件的高度/宽度 wrap_content 随着文字的高度/宽度 <TextView android:layout_width="fill_parent" android:layout_heig ...
分类:
移动开发 时间:
2017-05-10 20:35:00
阅读次数:
214
安卓作业: 使用SharedPreference将姓名和年龄信息保存到文件,然后再读取 1.主要xml文件代码: <EditText android:id="@+id/name" android:layout_width="match_parent" android:layout_height="w ...
分类:
其他好文 时间:
2017-05-09 23:11:23
阅读次数:
251
Checkbox有个属性值 <CheckBox android:id="@+id/cb_reg_agree" style="@style/reg_checkbox_style" android:layout_width="wrap_content" android:layout_height="wr ...
分类:
其他好文 时间:
2017-05-01 22:11:51
阅读次数:
124
在android开发中相信大家对ListView、GridView等组建都非常熟悉,在使用它们的时候须要自己配置相关的Adapter,而且配置现骨干的xml文件作为ListView等组建的子View,这些xml文件在Adapter的getView方法中调用。比如: public View getVi ...
分类:
其他好文 时间:
2017-05-01 19:05:36
阅读次数:
309