Android 如何获取一个layout实例

来源:互联网 发布:dreamweaver 替代软件 编辑:程序博客网 时间:2024/06/11 21:01
View view = LayoutInflater.from(this).inflate(R.layout.xxx,null);

获取控件时

Button btn = (Button)view.findViewById(R.id.xx);
0 0
原创粉丝点击