码迷,mamicode.com
首页 >  
搜索关键字:linearlayout    ( 1715个结果
android 自学笔记2-布局
1.LinearLayout<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <!--<Button--> <!--android:id="@+id/button1"-..
分类:移动开发   时间:2014-11-11 23:01:11    阅读次数:263
android PopupWindow demo
public class PopupwindowActivity extends Activity { LinearLayout ll;     @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setCon...
分类:移动开发   时间:2014-11-11 22:57:37    阅读次数:221
代码设置LinearLayout的高度
============问题描述============ 我想把这个LinearLayout宽度设置成为FILL_PARENT,源码如下LinearLayoutcheckboxLinearLayout=(LinearLayout)getLayoutInflater().inflate(R.layou...
分类:其他好文   时间:2014-11-11 16:24:10    阅读次数:218
求问各位大神关于fragment切换,软键盘隐藏的问题
============问题描述============ 问题背景,一个顶层linearlayout下面有个两个子linearlayout,第一个子linearlayout里面给一排button,可以水平滑动,第二个子linearlayout里面用来放fragment,xml如下:...
分类:其他好文   时间:2014-11-11 15:55:01    阅读次数:178
listview的getView里面返回LinearLayout,为何报错了?
============问题描述============ @Override publicViewgetView(intposition,ViewconvertView,ViewGroupparent){ //TODOAuto-generatedmethodstub convertView=null...
分类:其他好文   时间:2014-11-11 09:15:34    阅读次数:101
关于Activity中back的用法
从一个页面返回到另一个页面,两种方法: 第一种也是我最常用的一种:                 android:id="@+id/linearLayout"                 android:layout_width="fill_parent"                 android:layout_height="45dp"                 ...
分类:其他好文   时间:2014-11-10 23:26:53    阅读次数:283
布局管理器
线性布局 线性布局由LinearLayout类来代表。可以控制组件横向排列和纵向排列。 注:android:gravity属性中的多个属性值之间用竖线隔开,但竖线前后千万不能出现空格。 表格布局 表格布局由TableLayout所代表,表格布局采用行、列的形式来管理UI组件,TableLayout并不需要明确地声明包含多少行、多少列,而是通过添加TableRow、其他组件来...
分类:其他好文   时间:2014-11-09 23:50:51    阅读次数:314
布局管理器
线性布局线性布局由LinearLayout类来代表。可以控制组件横向排列和纵向排列。注:android:gravity属性中的多个属性值之间用竖线隔开,但竖线前后千万不能出现空格。表格布局表格布局由TableLayout所代表,表格布局采用行、列的形式来管理UI组件,TableLayout并不需要明...
分类:其他好文   时间:2014-11-09 23:40:43    阅读次数:326
LinearLayout使用简单实例
1.代码import android.annotation.SuppressLint;import android.app.Activity;import android.app.ActionBar.LayoutParams;import android.os.Bundle;import andro...
分类:其他好文   时间:2014-11-08 20:49:06    阅读次数:247
请问在pulltorefreshGridView中的图片设置了大小之后怎么就不显示了呢
============问题描述============ 我每个Item就是一个LinearLayout中放的一个ImageView,现在我想设置一下这个ImageView的大小。代码如下:publicvoidsetImgSize(ImageViewimg){ LayoutParamsparams=...
分类:其他好文   时间:2014-11-08 13:23:39    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!