android:layout_width="200dp"
android:layout_height="50dp"
android:hint="请输入账号"
android:singleLine="true"
android:drawableLeft="@drawable/ic_launcher" /...
分类:
其他好文 时间:
2014-10-16 13:10:40
阅读次数:
139
效果:
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
android:orientation="vertical" >
android:lay...
分类:
移动开发 时间:
2014-10-16 12:58:12
阅读次数:
175
表格布局最主要的三个属性:
XML代码实例:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orie...
分类:
移动开发 时间:
2014-10-14 18:38:49
阅读次数:
209
1、可点击区域不能设置为: android:layout_width="wrap_content" android:layout_height="wrap_content" 按钮的可点击范围,至少是高宽38dp,再小就监听不到了 2、不要用fill_parent: 布局, 高宽,不要用fill_pa...
分类:
其他好文 时间:
2014-10-10 20:45:54
阅读次数:
176
xml文件:
<ListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:cacheColorHint="#0...
分类:
移动开发 时间:
2014-09-30 20:40:20
阅读次数:
328
一个布局中包含另一个布局
1.在layout下定义activity_other.xml布局
2.代码中的包含如下:
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_par...
分类:
移动开发 时间:
2014-09-30 11:45:39
阅读次数:
184
1.导入GifView.jar
2.xml
android:id="@+id/gif1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_centerInParent="true"
...
分类:
移动开发 时间:
2014-09-29 13:02:10
阅读次数:
184
1、定义一个添加View后自动换行的ViewGroup,但是自定义的ViewGroup的layout_height不管是怎么设置都是全满全屏的。我想要使之能够实现layout_height="wrap_content"时能够根据内容自适应高度,应该要怎么做?http://bbs.csdn.net/t...
分类:
其他好文 时间:
2014-09-26 21:29:18
阅读次数:
154
设置控件的background的例子:
<Button
android:id="@+id/btn1"
android:layout_width="100dp"
android:layout_height="50dp"
android:text="btn1"
android:background="@drawable/...
分类:
移动开发 时间:
2014-09-26 14:45:58
阅读次数:
238
1、编写界面<WebViewandroid:id="@+id/webview"android:layout_width="match_parent"android:layout_height="match_parent"/>2、申请权限<uses-permissionandroid:name="android.permission.INTERNET"/>3、MainActivity.javapackagecom.malakana.webview;importand..
分类:
移动开发 时间:
2014-09-26 01:45:48
阅读次数:
431