1.效果图 2.创建页面文件(main.xml) 1 <Spinner 2 android:id="@+id/spinner1" 3 android:layout_width="match_parent" 4 android:layout_height="wrap_content" /> 5 6 < ...
分类:
移动开发 时间:
2016-07-19 09:48:08
阅读次数:
193
activity_main.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match ...
分类:
移动开发 时间:
2016-07-18 03:19:27
阅读次数:
157
在学Android,摘自《第一行代码——Android》 布局管理 通过xml文件进行布局管理。 android:id="@+id/button_1" 为当前的元素定义一个唯一标识符,@+id用于定义,@id用于引用;android:text 为其上内容;android:layout_width和a ...
分类:
移动开发 时间:
2016-07-15 13:34:49
阅读次数:
170
首先是配置文件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height=...
分类:
移动开发 时间:
2016-07-13 16:41:56
阅读次数:
271
android 屏幕适配攻略(2) weight 注意点 layout_width = "marth_parent" ...
分类:
移动开发 时间:
2016-07-05 18:34:04
阅读次数:
217
1.显示7行,超过7行自动向下补充行数 <EditText android:id="@+id/edt_content" android:layout_width="match_parent" android:layout_height="wrap_content" android:backgroun ...
分类:
其他好文 时间:
2016-07-01 16:00:45
阅读次数:
715
先来说说我遇到的问题,这次测试使用的布局文件是:
<com.hzw.eventtest.MyRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="ma...
分类:
移动开发 时间:
2016-06-29 11:27:43
阅读次数:
206
<TextView android:layout_width="match_parent" android:layout_height="48dp" android:ellipsize="marquee" android:focusable="true" android:singleLine="tr ...
分类:
移动开发 时间:
2016-06-23 12:27:17
阅读次数:
177
<AutoCompleteTextView android:id="@+id/autoCompleteTextView" android:completionThreshold="1" android:layout_width="match_parent" android:layout_height ...
分类:
移动开发 时间:
2016-06-22 20:25:37
阅读次数:
268
<com.randy.test1.self.MarqueeText android:id="@+id/btn1" android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="m ...
分类:
移动开发 时间:
2016-06-22 20:16:53
阅读次数:
213