码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果
Android 数据存储与IO (二)
2.SD卡读写操作1读写sd卡首先得添加读写权限2.建一个布局文件,用来接收和展示数据<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent" android:layout_height..
分类:移动开发   时间:2015-03-21 14:09:54    阅读次数:175
android:singleLine="true" 的意思(转载)
转自:http://blog.sina.com.cn/s/blog_72fad6270100tq0n.html设置单行显示。如果和layout_width一起使用,当文本不能全部显示时,后面用“…”来表示。如android:text="test_ singleLine "android:single...
分类:移动开发   时间:2015-03-21 12:30:23    阅读次数:510
Android常用的五种弹出对话框
一个Android开发中常用对话框的小例子,共有五种对话框:普通弹出对话框,单选对话框,多选对话框,输入对话框及进度条样式对话框:     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_paren...
分类:移动开发   时间:2015-03-20 16:35:30    阅读次数:171
Activity与Fragment的生命周期测试
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"&g..
分类:其他好文   时间:2015-03-20 14:34:38    阅读次数:174
Handler小例子,更换按钮的背景颜色
这几天一直在忙着开发一个新项目,写代码写得昏天黑地的,今天抽了几分钟时间写了下极简单的例子,改天有时间再写啦! 布局文件很简单,就一个Button:     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/LinearLayout1"     android:layout_width="match_...
分类:其他好文   时间:2015-03-20 14:33:27    阅读次数:115
欢迎界面+引导进入经典案例
先看欢迎界面的布局 activity_welcome.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" a...
分类:其他好文   时间:2015-03-14 23:14:50    阅读次数:200
Android中控件的宽高
1、在一个Relatitivelayout布局里用代码add一个独立的button布局,结果该button的宽高无效则说明:Android中控件默认是没有宽高的,只有五大布局才能给其宽高,即在代码中要设置控件的宽高需要使用福控件的layoutparams命名规则:layout_width想通的:la...
分类:移动开发   时间:2015-03-14 22:56:44    阅读次数:177
Android 学习--ListView 的使用(一)
基于数组的ListViewlistview1.xml<?xmlversion="1.0"encoding="utf-8"?> <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"android:layout_height="match_parent"> <ListView android:layout_wi..
分类:移动开发   时间:2015-03-14 20:16:16    阅读次数:153
Android 学习--ListView 的使用(二)
基于ArrayAdapter创建ListView程序清单listview2.xml<?xmlversion="1.0"encoding="utf-8"?> <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"android:layout_height="match_parent"> <ListView ..
分类:移动开发   时间:2015-03-14 20:15:58    阅读次数:230
Android 学习--ListView 的使用(三)
使用SimpleAdapter创建ListView程序清单1<?xmlversion="1.0"encoding="utf-8"?> <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"android:layout_height="match_parent"> <ListView android:lay..
分类:移动开发   时间:2015-03-14 20:11:14    阅读次数:269
981条   上一页 1 ... 65 66 67 68 69 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!