View messageLayout = inflater.inflate(R.layout.one_fragment, container, false);
//fragment的视图
mRecyclerView = (RecyclerView)messageLayout.findViewById(R.id.rvContacts);
//Recycler的id
mRecyclerView .notifyDataSetChanged();更新视图
获取layout视图
最新推荐文章于 2023-03-03 17:29:22 发布