Android通过代码获取View

View view = LayoutInflater.from(mContext).inflate(R.layout.song_item_adapter, null);

 

LayoutInflater inflater = (LayoutInflater)context.getSystemService

      Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout.hello,null);
 

posted on 2014-05-27 09:27  lvlv岁月流逝  阅读(192)  评论(0编辑  收藏  举报

导航