摘要:
LayoutInflater作用是将layout的xml布局文件实例化为View类对象。获取LayoutInflater的方法有如下三种:LayoutInflater inflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);View layout = inflater.inflate(R.layout.main, null); LayoutInflater inflater = LayoutInflater.from(context); (该方法实质就是第一种方法,可参考源代码)Vie 阅读全文
posted @ 2012-08-13 15:13
滴水瓦
阅读(248)
评论(0)
推荐(0)

浙公网安备 33010602011771号