码迷,mamicode.com
首页 >  
搜索关键字:layoutinflater    ( 405个结果
Android AlertDialog去除黑边白边自定义布局(转)
LayoutInflater inflater = this.getLayoutInflater();View view = inflater.inflate(R.layout.test_alertdialog_listview,null);ListView lv = (ListView)view....
分类:移动开发   时间:2015-04-10 10:56:16    阅读次数:262
Android LayoutInflater详解
Android LayoutInflater详解在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件...
分类:移动开发   时间:2015-04-09 16:50:35    阅读次数:154
fragment 的中的edittext不被清空
我创建了1个activity里有4个tab的fragment,假如4个tab为ABCD在tab C中,初始化UI,UI中有一个EditText: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bun...
分类:其他好文   时间:2015-04-07 00:42:22    阅读次数:169
获得 LayoutInflater 实例的三种方式
在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如Button、Tex...
分类:其他好文   时间:2015-04-06 15:33:26    阅读次数:101
fragment 中使用listview显示
packagecom.hanxia.duorougardon;importandroid.os.Bundle;importandroid.support.v4.app.Fragment;importandroid.view.LayoutInflater;importandroid.view.View;importandroid.view.ViewGroup;importandroid.widget.ArrayAdapter;importandroid.widget.ListAdapter;importandr..
分类:其他好文   时间:2015-03-30 07:00:16    阅读次数:158
Android LayoutInflater详解
在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如Button、Tex...
分类:移动开发   时间:2015-03-18 23:02:45    阅读次数:235
安卓自定义组合控件实现标题栏
publicclassTitleViewextendsFrameLayout{ privateButtonleftButton; privateTextViewtitleText; publicTitleView(Contextcontext,AttributeSetattrs){ super(context,attrs); LayoutInflater.from(context).inflate(R.layout.title,this); titleText=(TextView)findViewByI..
分类:移动开发   时间:2015-03-18 18:19:54    阅读次数:151
android listView性能优化
packagecom.example.ex_000_example;importjava.util.ArrayList;importandroid.os.Bundle;importandroid.app.Activity;importandroid.util.Log;importandroid.view.LayoutInflater;importandroid.view.Menu;importandroid.view.View;importandroid.view.ViewGroup;importandroi..
分类:移动开发   时间:2015-03-17 02:14:33    阅读次数:135
Android 中 LayoutInflater 的使用
一、LayoutInflater 的作用我们一般使用 LayoutInflater 做一件事:View inflate(int resource, ViewGroup root);inflate() 的作用类似于 findViewById(); 不同的是 findViewById 用于查找某一具体 ...
分类:移动开发   时间:2015-03-16 15:53:54    阅读次数:150
安卓学习笔记:转Android LayoutInflater详解
Android LayoutInflater详解在实际开发中LayoutInflater这个类还是非常有用的,它的作用类 似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而 findViewById()是找xml布局...
分类:移动开发   时间:2015-03-15 13:51:33    阅读次数:127
405条   上一页 1 ... 24 25 26 27 28 ... 41 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!