通过XML文件生成View

View view = LayoutInflater.from(getApplicationContext()).inflate(R.layout.player, null);
View view = inflater.inflate(R.layout.your_view_id, null);

 

本文出自 “曾颐楠的播客” 博客,请务必保留此出处http://zengyinan.blog.51cto.com/9524976/1721468

 

posted @ 2015-12-10 11:46  曾颐楠  阅读(356)  评论(0编辑  收藏  举报