码迷,mamicode.com
首页 >  
搜索关键字:inflater    ( 130个结果
android 笔记一
1.Fragment创建extents FragmentView rootView = inflater.inflate(R.layout.fragment_main, container, false);rootView.findViewById(R.id.ShowAnotherFragment)...
分类:移动开发   时间:2015-09-06 17:41:41    阅读次数:222
android,在fragment中使用listview,不使用listfragment
public class LeftFragment extends Fragment{private ListView listView;@Overridepublic View onCreateView(LayoutInflater inflater, ViewGroup container,Bu...
分类:移动开发   时间:2015-08-27 14:59:03    阅读次数:155
LayoutInflater布局管理器
LayoutInflater作用是将layout的xml布局文件实例化为View类对象。 实现LayoutInflater的实例化共有3种方法, (1).通过SystemService获得 ? ? LayoutInflater inflater = (LayoutInflater)context.getSystemSer...
分类:其他好文   时间:2015-08-12 11:46:50    阅读次数:127
Fragment 设置主题
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final Context contextThemeWrapper =...
分类:其他好文   时间:2015-07-24 10:34:41    阅读次数:149
android学习之LayoutInflater的用法,在myAdapter getView()里将多个TextView组件压缩成一个View控件,并在listView里显示
1、在LayoutInflater通常有下面2种初始化的方法,在Active里调用时很容易。 1、 LayoutInflater inflater=LayoutInflater.from(context); 2、 LayoutInflater inflater = (LayoutInf...
分类:移动开发   时间:2015-07-19 21:30:32    阅读次数:202
Android开发之获取布局填充器
Android开发之获取布局填充器的三种方式第一种 : LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE); View view = inflater.inflate(R.layout.item_listview, nul...
分类:移动开发   时间:2015-07-17 18:56:53    阅读次数:137
Android fragment 获取id,findViewById为空
项目中需要保持标题栏,通过点击标题栏左侧的按钮,弹出下拉菜单,切换右侧的界面,所以就想到使用fragment这个类,可以很好的切换activity,不过在使用的时候还是出现了很多问题:       1.public View onCreateView(LayoutInflater inflater, ViewGroup container, ...
分类:移动开发   时间:2015-07-17 16:16:06    阅读次数:240
android关于实现滑动界面
首先要说的是,滑动界面,我们需要一个以上的view切换,实际上可以使用ArrayList pageViews要保存view信息,然后切换LayoutInflater inflater = getLayoutInflater(); pageViews = new ArrayList(); page.....
分类:移动开发   时间:2015-07-16 21:30:21    阅读次数:140
LayoutInflater的inflate函数用法详解
LayoutInflater作用是将layout的xml布局文件实例化为View类对象。获取LayoutInflater的方法有如下三种:?LayoutInflater inflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_...
分类:其他好文   时间:2015-07-15 16:35:16    阅读次数:173
Deflater与Inflater的压缩与解压缩
原文: Deflater与Inflater的压缩与解压缩 package util; import java.util.Arrays; import java.util.zip.Deflater; import java.util.zip.Inflater; import org.apache.co...
分类:其他好文   时间:2015-07-15 13:11:32    阅读次数:104
130条   上一页 1 ... 3 4 5 6 7 ... 13 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!