【文件属性】:
文件名称:Android动态添加View的问题解决方法
文件大小:36KB
文件格式:PDF
更新时间:2021-01-20 10:40:38
id ie view
后台代码 代码如下: private void ChangeView() { ly.removeAllViews(); LayoutInflater inflater = (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE); View layout = inflater.inflate(R.layout.grid,null); GridView gridview = (GridView)layout.findViewById(R.id.gridview);