View messageLayout = inflater.inflate(R.layout.one_fragment, container, false);
//fragment的视图
mRecyclerView = (RecyclerView)messageLayout.findViewById(R.id.rvContacts);
//Recycler的id
mRecyclerView .notifyDataSetChanged();更新视图
获取layout视图
最新推荐文章于 2022-01-25 14:06:00 发布