Android LayoutInflater

// 取得LayoutInflater对象
LayoutInflater LayoutInflater.from(Context);
LayoutInflater Context.getLayoutInflater();
LayoutInflater Context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
// 常用方法
View inflate(int resource, ViewGroup root)
// root -> null 直接生成一个resource对应的View
// root -> not null 则生成为root的child
posted on 2013-11-26 10:52  麥籽  阅读(170)  评论(0编辑  收藏  举报