码迷,mamicode.com
首页 >  
搜索关键字:linearlayout    ( 1715个结果
android的toogleButton和switch的用法
这两个是按钮开关,监听CheckedChangeListener toggle_layout.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match...
分类:移动开发   时间:2014-10-20 11:46:59    阅读次数:245
android用shape给linearLayout设置边框,怎样只保留底部或顶部的边框,把其它三个方向的边框去掉呢?
============问题描述============ 下面是我的测试代码,最终效果LinearLayout有灰色边框,要怎样保留底部或顶部的边框,其它三个方向的边框去掉?boder.xml text.xml ...
分类:移动开发   时间:2014-10-19 22:56:06    阅读次数:256
请问在pulltorefreshGridView中的图片设置了大小之后怎么就不显示了呢
============问题描述============ 我每个Item就是一个LinearLayout中放的一个ImageView,现在我想设置一下这个ImageView的大小。代码如下:publicvoidsetImgSize(ImageViewimg){ LayoutParamsparams=...
分类:其他好文   时间:2014-10-19 22:39:23    阅读次数:172
LinearLayout 让最后一个空间靠到屏幕底部
比如这个Button 必须用LinearLayout包起来,然后设置:android:layout_weight="0.1"android:gravity="bottom"android:orientation="vertical"
分类:其他好文   时间:2014-10-18 13:58:17    阅读次数:298
android 开发 实例 下部主导航(1)
1.使用LinearLayout底部布局+p_w_picpathView实现底部四个主导航页面布局文件activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_wid..
分类:移动开发   时间:2014-10-17 18:57:14    阅读次数:218
android 圆角边框、渐变背景的TextView
加一个红色的边框: textView的XML: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orienta...
分类:移动开发   时间:2014-10-17 13:54:32    阅读次数:275
Fragment的使用简介【Android】
Fragment在实际项目开发中使用的越来越多,现在简单介绍一下 布局文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_par...
分类:移动开发   时间:2014-10-15 22:54:41    阅读次数:265
浅谈Android五大布局(二)——RelativeLayout和TableLayout【转】
http://www.cnblogs.com/wisekingokok/archive/2011/08/24/2152004.html在浅谈Android五大布局(一)中已经描述了LinearLayout(线性布局)、FrameLayout(单帧布局)和AbsoulteLayout(绝对布局)三种布...
分类:移动开发   时间:2014-10-15 20:43:41    阅读次数:204
浅谈Android五大布局(一)——LinearLayout、FrameLayout和AbsoulteLayout【转】
http://www.cnblogs.com/wisekingokok/archive/2011/08/23/2150452.html Android的界面是有布局和组件协同完成的,布局好比是建筑里的框架,而组件则相当于建筑里的砖瓦。组件按照布局的要求依次排列,就组成了用户所看见的界面。Androi...
分类:移动开发   时间:2014-10-15 20:34:11    阅读次数:217
Android中的表格布局TableLayout
表格布局最主要的三个属性: XML代码实例: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orie...
分类:移动开发   时间:2014-10-14 18:38:49    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!