码迷,mamicode.com
首页 >  
搜索关键字:linearlayout    ( 1715个结果
用户界面View之ViewGroup
没有目标的人永远为有目标的人去努力。 本讲内容:ViewGroup (一组视图) 一、ViewGroup 的介绍 View(视图)是所有UI组件的基类,而ViewGroup是容纳这些组件的容器,ViewGroup继承于View。ViewGroup是抽象类,不能直接使用它。Linearlayout等布局都是ViewGroup实现类。 二、LayoutP...
分类:其他好文   时间:2015-05-26 09:21:54    阅读次数:139
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布局-android学习之旅(十五)
TableLayout 表格布局tablelayout简介表格布局有TableLayout代表,但是它的本质定义仍然是线性管理器。表格布局采用行和列来管理UI,但是不需要明确的定义多少行,多少列,而是通过添加TableRow,没添加一个TableRow,就添加一行,TableRow中每添加一个组件就是一列。TableLayout属性<LinearLayout xmlns:android="http:...
分类:移动开发   时间:2015-05-25 10:18:31    阅读次数:238
自定义控件事件监听设置
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
最简单的左右滑动item实现不同效果
一、效果二、item布局 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_wid...
分类:其他好文   时间:2015-05-24 20:26:15    阅读次数:141
Android实现手写板和涂鸦功能
下面仿一个Android手写板和涂鸦的功能,直接上代码: write_pad.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:greendroid="http://schemas.android.com/apk/res/com.cyrilmottier.android....
分类:移动开发   时间:2015-05-24 17:32:40    阅读次数:255
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
chenglei1986/DatePicker源码解析(二)
接上一篇文章chenglei1986/DatePicker源码解析(一),我们继续将剩余的部分讲完,其实剩余的内容,就是利用Numberpicker来组成一个datePicker,代码非常的简单 为了实现自定义布局的效果,我们给Datepciker定制了一个layout,大家可以定制自己的layout <LinearLayout xmlns:android="http://schemas.a...
分类:其他好文   时间:2015-05-24 15:48:16    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!