Android LayoutInflate的基本知识
今天好冷,2016,1,24
1,是什么?LayoutInflate就是传说中的布局泵,是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如Button、TextView等)。
2,实例化:
LayoutInflater 实例的三种方式
1. LayoutInflater inflater = g
原创
2016-01-24 23:45:12 ·
368 阅读 ·
0 评论