ITeye博客

几种创建LayoutInflater对象的方法

chenfeng0104 · 2011-09-28 00:51 · Android · 移动开发 · Markdown

LayoutInflater layoutInflater;

1.layoutInflater = Context.getLayoutInflater();

2.layoutInflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

3.layoutInflater = LayoutInflater.from(this);

评论(1)

  1. #1 楼 · CoolinZ · 2012-06-12 11:12

    第三中似乎最常用

评论功能维护中,当前仅展示历史评论。