1.LinearLayout(线性布局) android:orientation="vertical" //布局 android:layout_width="wrap_content" //控件宽度 android:layout_height="fill_parent" //控件高度 android ...
分类:
移动开发 时间:
2017-05-19 21:01:49
阅读次数:
243
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
android shape的使用 然后在布局文件里面的Button里面设置如下: [java] view plain copy <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_h ...
分类:
移动开发 时间:
2017-05-12 20:30:32
阅读次数:
286
文本框标签 layout_width 控件的宽度 layout_height 控件的高度 fill_parent 随着控件的高度/宽度 wrap_content 随着文字的高度/宽度 <TextView android:layout_width="fill_parent" android:layou ...
分类:
移动开发 时间:
2017-05-12 09:39:34
阅读次数:
204
XML代码: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_p ...
分类:
移动开发 时间:
2017-05-11 18:29:10
阅读次数:
234
layout_width 控件的宽度 layout_height 控件的高度 fill_parent 随着控件的高度/宽度 wrap_content 随着文字的高度/宽度 <TextView android:layout_width="fill_parent" android:layout_heig ...
分类:
移动开发 时间:
2017-05-10 20:35:00
阅读次数:
214