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