数据源配置(Adapter)package com.zhengsonglan.listview_loading.adapter;import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andro...
分类:
移动开发 时间:
2015-04-20 22:47:19
阅读次数:
240
本篇文章是自己自学自定义view前的准备,具体参考资料来自Android LayoutInflater原理分析,带你一步步深入了解View(一)Android视图绘制流程完全解析,带你一步步深入了解View(二)Android视图状态及重绘流程分析,带你一步步深入了解View(三)Android自定...
分类:
移动开发 时间:
2015-04-19 13:07:59
阅读次数:
205
在实际工作中,事先写好的布局文件往往不能满足我们的需求,有时会根据情况在代码中自定义控件,这就需要用到LayoutInflater。LayoutInflater在Android中是“扩展”的意思,作用类似于findViewById(),不同的是LayoutInflater是用来获得布局文件对象的,而...
分类:
移动开发 时间:
2015-04-18 12:55:32
阅读次数:
163
原文地址:http://www.cnblogs.com/androidez/archive/2013/07/01/3164729.html在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/la...
分类:
其他好文 时间:
2015-04-15 18:58:28
阅读次数:
124
使用fragmenttabhost后,子fragment怎么获取ID?怎么用getSharedPreferencespublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sav...
分类:
其他好文 时间:
2015-04-15 12:47:36
阅读次数:
244
在实际开发中LayoutInflater这个类是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如Button、Te.....
分类:
移动开发 时间:
2015-04-14 00:27:43
阅读次数:
178
查找了网上很多文章,说是在XML文件设置textview的focus为false ,简直是一派胡言,那样连文本都输入不了了,有何用
网上查找无果,改用java代码控制listview的longclick方法,实现弹出复制和删除listview的办法
自定义一个popWindow
private void initPopupWindow(LayoutInflater inflater) {...
分类:
移动开发 时间:
2015-04-13 20:59:58
阅读次数:
192
package com.bivin; import android.app.Activity;import android.app.AlertDialog;import android.content.Context;import android.os.Bundle;import android.v...
分类:
其他好文 时间:
2015-04-11 14:43:42
阅读次数:
130
获取LayoutInflater有三种不同的方式,那么这三种方式有什么区别呢?
源码:
① LayoutInflater inflater = LayoutInflater.from(context);
(LayoutInflater类)
public static LayoutInflater from(Context context) {
LayoutInflater Lay...
分类:
移动开发 时间:
2015-04-10 18:07:17
阅读次数:
130
LayoutInflater.inflate详解LayoutInflater概述 从XML文件中实例化一个布局成对应的View类, 它从来不会直接使用, 而是使用getLayoutInflater()或者getSystemService(String)来获得一个对应当前context的标准LayoutInflater
实例。 例如: LayoutInflater inflater =...
分类:
其他好文 时间:
2015-04-10 15:34:35
阅读次数:
115