码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果)
Android EditText的常用技巧
1. 设定 EditText 的滚动条、对齐方式、行数、和提示 (hint) 及其颜色 在布局文件,比如 main.xml 中,增加 < EditText android:id = "@+id/EditText01" android:layout_width = "fill_parent" andr ...
分类:移动开发   时间:2016-08-04 14:46:43    阅读次数:270
搜索框代码
<LinearLayout android:background="#eb4f38" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> ...
分类:其他好文   时间:2016-08-03 18:29:58    阅读次数:143
Android原生方式解析Json,Gson三方框架方式解析Json
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an ...
分类:移动开发   时间:2016-08-01 17:37:39    阅读次数:258
DDS视图&Button控件
<Button android:id="@+id/btn1" android:layout_width="wrap_content" //包裹文字 android:layout_height="wrap_content" android:text="点我" /> ...
分类:其他好文   时间:2016-07-29 22:45:47    阅读次数:202
Android之EditText控件
<EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:maxLength="4" //限制我们的输入字数 android:singleLine="true" //限制我们输入 ...
分类:移动开发   时间:2016-07-29 21:17:22    阅读次数:184
Android之TextView控件的学习
<TextView android:id="@+id/tv" //id号,指明这个TextView的唯一身份 android:autoLink="phone|web" //电话或者网站的超链接,在字体里由电话号码的话,就会有有链接,有网址也会有超链接 android:layout_width="fi ...
分类:移动开发   时间:2016-07-29 18:33:15    阅读次数:293
从相册和相机获取头像
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="300dp" android:l ...
分类:其他好文   时间:2016-07-24 20:52:27    阅读次数:214
android 计算机布局设置
<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
[安卓开发] 自定义View之一: 组合View
一、自定义View的分类1、组合View 2、继承重写View 3、全写View二、简介组合View,就是组合一些View来形成一个新的View。例如QQ的头部栏 三、了解**android:layout_width="match_parent" 上面这个前缀android是根据 根控件的 xmlns:**android**="http://schemas.android.com/apk/re...
分类:移动开发   时间:2016-07-19 10:48:59    阅读次数:272
异步操作之handler+message<一>
例子(1):从网络上加载图片,然后显示出来: 布局文件:activity_third:采用ScrollView布局,放置一个LinearLayout(里面放置3个ImageView,用于显示网上图片) <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width...
分类:其他好文   时间:2016-07-19 10:06:33    阅读次数:164
共981条   上一页 1 ... 19 20 21 22 23 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!