读书人

android 在目前的布局上加载xml填充内

发布时间: 2012-07-18 12:05:40 作者: rapoo

android 在当前的布局上加载xml填充内部

想实现一个功能,在当前页面布局上再加载一个xml作为它的子类,最后终于找到了,谢谢作者们啊嘿嘿

// 加载子LayoutView mBarView = View.inflate(this, R.layout.main_panel, null);// 找到容器LinearLayout panel_center = (LinearLayout) findViewById(R.id.panel_center);// 加上View 结束panel_center.addView(mBarView);

?

读书人网 >XML SOAP

热点推荐