android 从xml创建控件
摘要:
android从xml创建控件根据xml创建view (res/layout 这个文件夹中的play_cartoon_exit.xml)View viewxml=getLayoutInflater().inflate(R.layout.play_cartoon_exit,null);在非activity时可以:LayoutInflater inflater = (LayoutInflater)context.getSystemService( Context.LAYOUT_INFLATER_SERVICE);View viewxml = inflater.inflate(R.layout.pl 阅读全文
posted @ 2011-09-06 10:25 DerDeath 阅读(503) 评论(0) 推荐(0) 编辑