码迷,mamicode.com
首页 >  
搜索关键字:layout_height    ( 604个结果)
图片的颜色变化
<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="match_...
分类:其他好文   时间:2015-05-28 02:04:50    阅读次数:206
Android控件所共有属性ID、宽、高、背景、内容位置、状态、内容跟边界的间隙、边界跟其他控件边界的间隙
Android控件(包括布局)的所共有的属性:android:id="@+id/denglu_et_name" 设置控件的id,denglu_et_name可以替换成你需要的id号名称android:layout_width="wrap_content"设置控件的宽 android:layout_height="wrap_content"设置控件的高 设置控件宽高的值:适应内容的wrap_con..
分类:移动开发   时间:2015-05-27 01:07:01    阅读次数:234
AdapterViewFlipper学习笔记
布局: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="ma...
分类:其他好文   时间:2015-05-26 09:15:07    阅读次数:153
Android布局中对输入密码的隐藏和显示
<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="match_parent"...
分类:移动开发   时间:2015-05-26 00:21:42    阅读次数:194
UI设计之--仿微信聊天界面
1.首先编写main.xml文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientatio...
分类:微信   时间:2015-05-25 16:44:58    阅读次数:925
android解析一个本地txt文件
1,首先在res下面新建一个名字为raw的文件夹,添加一个txt文件在其下面; 2,创建一个布局文件,上面一个按钮出发点击事件,下面一个textview显示文本信息; 3,通过一个InputStream获取内容; xml布局代码:     android:layout_width="fill_parent"     android:layout_height="fill_pare...
分类:移动开发   时间:2015-05-25 10:17:30    阅读次数:419
自定义控件事件监听设置
iOS系统上方的工具栏很漂亮,也很实用,下面让我们来仿制一下吧。 首先新建一个布局文件title.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="...
分类:其他好文   时间:2015-05-25 10:11:15    阅读次数:230
Android的GridView和ScrollView的嵌套
来源于回答频道答题,因此内容都是基于回答频道的原题布局进行 1、布局文件如下 文件名:testxm.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="ma...
分类:移动开发   时间:2015-05-24 23:42:00    阅读次数:479
TextWatcher实现一键清空EditText
布局文件main.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="ver...
分类:其他好文   时间:2015-05-24 17:27:42    阅读次数:135
安卓第一次小结
文本框:存放文本的<TextViewandroid:id="@+id/textView1"//控件的身份android:layout_width="wrap_content"android:layout_height="wrap_content"//wrap_content适应内容//match_parent填充容器//fill_parent跟match_parent一样的//直接使用整数单位dpandroid:layout_align..
分类:移动开发   时间:2015-05-24 06:40:31    阅读次数:261
共604条   上一页 1 ... 31 32 33 34 35 ... 61 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!