Android从XML中创建View

来源:互联网 发布:淘宝开店装修免费模板 编辑:程序博客网 时间:2024/06/16 05:45
LayoutInflater inflater = (LayoutInflater)context.getSystemService( Context.LAYOUT_INFLATER_SERVICE);View view = inflater.inflate(R.layout.your_view_id, null);