<LinearLayout android:layout_height ="match_parent" android:layout_width="match_parent" android:orientation="vertical" <EditText android:layout_height ...
分类:
移动开发 时间:
2016-07-22 01:10:00
阅读次数:
311
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
首先是配置文件:
<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
当我们自定义View的时候,在给View赋值一些长度宽度的时候,一般都是在layout布局文件中进行的。,比如android:layout_height="wrap_content",除此之外,我们也可以自己定义属性,这样在使用的时候我们就可以使用形如 myapp:myTextSize="20sp" ...
分类:
移动开发 时间:
2016-07-12 09:04:05
阅读次数:
130
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
<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
<GridView android:id="@+id/movie_list" android:layout_width="906dp" android:layout_height="654dp" android:layout_marginLeft="230dp" android:layout_mar ...
分类:
其他好文 时间:
2016-06-21 15:44:02
阅读次数:
158
先看一下xml代码:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@andr...
分类:
其他好文 时间:
2016-06-21 07:16:34
阅读次数:
275