码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果
一起学android之EditText的各种使用(15)
EditText它与TextVew十分相似,TextView是用来显示文本,并没有录入文本的功能,但EditText可以录入文本,接下来我们看看EditText常用的属性 效果1: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_...
分类:移动开发   时间:2015-01-10 19:48:15    阅读次数:278
从源码角度分析LayoutInflater 的inflate
大家inflate应该用的比较多吧,尤其在使用listview 的时候。 先来看看item的布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="20...
分类:其他好文   时间:2015-01-10 01:28:38    阅读次数:229
android布局采用include 统一管理布局
通常的在一个项目中会有顶部标题栏 和 底部导航栏。而且这些东西在很多个界面都有使用。 我们采用include 来进行布局的重用。 include标签常用于将布局中的公共部分提取出来供其他layout共用,以实现布局模块化。 标签可以使用单独的layout属性,前提是必须给其设置 android:layout_width 和 android:layout_height 两个属性。否则没效果...
分类:移动开发   时间:2015-01-09 19:27:45    阅读次数:213
Android Dialog无法填满屏幕宽度问题解决
就是将上面的自定义布局放到一个Dialog里面,布局xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="155dp" android:backgro...
分类:移动开发   时间:2015-01-09 15:32:11    阅读次数:386
Android--ListView 分割线
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> ListView android:id="@+id/android:list" android:la...
分类:移动开发   时间:2015-01-09 14:20:11    阅读次数:226
安卓传感器开发之指南针
代码很简单,主要是一些常用传感器的监听,指南针还是挺好用的。 布局代码 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_...
分类:移动开发   时间:2015-01-06 17:58:56    阅读次数:180
Android ListView实现新闻客户端的新闻内容图文混排
布局文件:http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:l...
分类:移动开发   时间:2015-01-06 17:46:32    阅读次数:179
Android 第九课——UI 组件
组件继承关系图: 组件通用属性: ? ? 1)layout_width:组件的宽度,一般只有三个值wrap_content、fill_parent(老版本中使用)、match_parent,但他不是唯一控制宽度的元素 ? ? 2)layout_height:组件的高...
分类:移动开发   时间:2015-01-05 22:04:38    阅读次数:359
Android输入密码时显示与隐藏
在登录或者注册的时候,有些软件中,需求要求密码可以查看和隐藏,其实实现起来也很简单。 首先定义布局: <LinearLayout android:layout_width="fill_parent" android:layout_height="50.0dip" android:layout_marginLeft="15dip"...
分类:移动开发   时间:2015-01-05 18:45:26    阅读次数:211
一起学android之BaseAdapter使用(14)
扩展BaseAdapter可以对各列表项进行最大限度的定制,具体描述请看以下代码: baseadapter_list布局文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout...
分类:移动开发   时间:2015-01-04 21:21:51    阅读次数:240
981条   上一页 1 ... 77 78 79 80 81 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!