View inflate(Context context, int resource, ViewGroup root) 方法中如果你view中没有root对象,后面你只能通过addview() 方式在root上加view。如果传递root对象,次view已经添加到root里面
inflate方法
最新推荐文章于 2024-01-13 13:08:13 发布
View inflate(Context context, int resource, ViewGroup root) 方法中如果你view中没有root对象,后面你只能通过addview() 方式在root上加view。如果传递root对象,次view已经添加到root里面