码迷,mamicode.com
首页 >  
搜索关键字:linearlayout    ( 1715个结果
安卓layout_weight总结
关于安卓中layout_weight属性的使用总是让很多开发者迷迷糊糊,编写的代码往往无法达到想要的效果。上网查了一些资料以后自己也写了个小DEMO后算是对layout_weight的属性有了个基本的掌握。下面就简单的介绍一下:一、基本原理首先layout_weight属性仅在LinearLayout适用,系统..
分类:移动开发   时间:2015-04-29 19:59:14    阅读次数:120
FragmentTabHost and Fragment 用法
主要布局如下: <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="...
分类:其他好文   时间:2015-04-29 15:10:59    阅读次数:177
3.0之后在LinearLayout里增加分割线
android:divider="@drawable/shape"android:showDividers="middle|beginning|end"分割线如果是图片那就直接使用图片就行,如果要使用颜色就必须使用shape来显示,直接使用颜色或Color是没有用的使用shape的时候要注意设置si...
分类:其他好文   时间:2015-04-29 15:02:51    阅读次数:124
Android中布局优化总结
1、 标签 2、FrameLayout>RelationLayout>LinearLayout 3、LinearLayout中少用layout_weight参数 4、布局中减少Layout层次嵌套和不必要节点,代码中减少不必要的infalte(e.g. 局部变量->全局变量) 5、用TextView代替TextView+ImageView的组合(实用drawableTop属性等) 6、首次不需要显示使用的节点设置android:visibili...
分类:移动开发   时间:2015-04-28 18:31:58    阅读次数:135
Android中attr自定义属性详解
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ? ? xmlns:wen=http://schemas.android.com/apk/res/com.iteye.googlers ? ? android:orientation="vertical" android:layout_wi...
分类:移动开发   时间:2015-04-27 18:36:28    阅读次数:196
android控件属性
1、LinearLayout(线性布局):可以分为水平线性:android:orientation= " horizontal "和垂直线性:android:orientation= "vertical"2、RealtiveLayout(相对布局):(1)在相对布局中属性值为true或false的有...
分类:移动开发   时间:2015-04-27 16:47:39    阅读次数:241
环信UI开源Demo情景分析七、会话界面
在会话界面中,主要是对会话记录的操作。就跟QQ上面的一样,最左边的一个Tab。管理会话历史,并动态显示消息数量。 因为整个会话界面是由Fragment所组成,所以没有清单文件。接下来咱们先来看看布局文件的构成。 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout...
分类:其他好文   时间:2015-04-27 11:25:43    阅读次数:222
Android--调用百度地图API
首先申请一个百度地图的 API KEY,具体方法网上已有,申请后获得: main.xml代码如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:la...
分类:移动开发   时间:2015-04-27 11:25:20    阅读次数:201
android 画虚线、实线,画圆角矩形,一半圆角
1、画虚线,实线:建立dotted_line_gray.xml文件放在drawable文件夹下面。android:shape="line" 可以修改你想要的形状 然后在布局的xml里面:作为ImageView或者Linearlayout等作为背景源就可以了。--------...
分类:移动开发   时间:2015-04-26 22:25:35    阅读次数:214
Android---30---ProgressBar进度条的使用
activity_main.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:l...
分类:移动开发   时间:2015-04-26 16:48:29    阅读次数:212
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!