Android通过代码获取View

时间:2014-05-29 00:32:23   收藏:0   阅读:227

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);
 

Android通过代码获取View,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!