码迷,mamicode.com
首页 >  
搜索关键字:layoutinflater    ( 405个结果
动画-- 按钮按序列(从小到大)显示
1 import android.app.Activity; 2 import android.app.Fragment; 3 import android.os.Bundle; 4 import android.view.LayoutInflater; 5 import android.view....
分类:其他好文   时间:2014-08-31 20:03:11    阅读次数:306
View的使用和学习(一)
学习链接http://blog.csdn.net/guolin_blog/article/details/12921889我的笔记1, 什么是LayoutInflater先来看构造方法 LayoutInflater flater = LayoutInflater.from(context) 这里的....
分类:其他好文   时间:2014-08-27 00:21:06    阅读次数:214
ListView add EmptyView 工具类和下载工具类
public?class?EmptyViewUtils?{ ????public?static?View?createLoadingView(Context?context)?{ ????????LinearLayout?linearLayout?=?(LinearLayout)?LayoutInflater.from(context).in...
分类:其他好文   时间:2014-08-22 11:03:56    阅读次数:211
自定义AlertDialog
常见的一种方法: [html]?view plaincopyprint? AlertDialog.Builder?builder;?? ????????????????AlertDialog?alertDialog;?? ?? ????????????????LayoutInflater?i...
分类:其他好文   时间:2014-08-21 11:44:54    阅读次数:265
LayoutInflater作用及使用--自定义EditText,自带清除内容按钮
作用:1、对于一个没有被载入或者想要动态载入的界面, 都需要使用inflate来载入.2、对于一个已经载入的Activity, 就可以使用实现了这个Activiyt的的findViewById方法来获得其中的界面元素.举例:定义了一个控件类CleanableEditText,实现在焦点变化时和输入内...
分类:其他好文   时间:2014-08-20 12:26:12    阅读次数:159
LayoutInflater的使用
在实际工作中,事先写好的布局文件往往不能满足我们的需求,有时会根据情况在代码中自定义控件,这就需要用到LayoutInflater。LayoutInflater在Android中是“扩展”的意思,作用类似于findViewById(),不同的是LayoutInflater是用来获得布局文件对象的,而...
分类:其他好文   时间:2014-08-17 18:22:22    阅读次数:157
android的ListView点击item使item展开的做法
直接上代码把,主要是重新给item measure高度,直接上代码把 import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.view.LayoutInflater; import android.view.MotionEvent; import andr...
分类:移动开发   时间:2014-08-16 11:16:00    阅读次数:251
LayoutInflater的使用
在实际工作中,事先写好的布局文件往往不能满足我们的需求,有时会依据情况在代码中自己定义控件,这就须要用到LayoutInflater。LayoutInflater在Android中是“扩展”的意思,作用相似于findViewById(),不同的是LayoutInflater是用来获得布局文件对象的,...
分类:其他好文   时间:2014-08-14 23:30:36    阅读次数:256
setOnClickListener
package com.yuchongxia.internetradio.widget;import android.content.Context;import android.util.AttributeSet;import android.view.LayoutInflater;import ...
分类:其他好文   时间:2014-08-14 16:25:18    阅读次数:357
【转】LayoutInflater——80%的Android程序员对它并不了解甚至错误使用
这个标题起的有点夸张哈,但是LayoutInflater这个类的一些用法,在Android开发者使用的过程中,确实存在着一些很普遍的误区,最起码我研究的这么多小项目的源代码,基本上都在错误的使用这个类。今天,看到了一篇文章讲LayoutInflater的用法,瞬间感觉自己对这个类确实不够了解,于是简...
分类:移动开发   时间:2014-08-11 17:34:12    阅读次数:442
405条   上一页 1 ... 34 35 36 37 38 ... 41 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!