码: rv = (RecyclerView) findViewById (R.id.recyclerview);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager (this, LinearLayoutManager.VERTICAL ,false);
CustomRVAdapter customRVAdapter = new CustomRVAdapter (getApplicationContext (),R.layout.custom_rv_row,new StudentList ().getDefaultStudentList ());
rv.setAdapter (customRVAdapter);访问隐藏方法Landroid/os/Trace;->traceCounter(JLjava/lang/String;I)V的错误(光线灰度表,反射)
E/RecyclerView:没有附加布局管理器;跳过布局
I/le.Ascription_:ProcessProfilingInfo new_methods=1577保存saved_to_disk=1 resolve_classes_delay=8000
发布于 2021-06-08 14:14:04
您需要将布局管理器附加到回收商视图,如下所示:
LinearLayoutManager linearLayoutManager = new LinearLayoutManager (this, LinearLayoutManager.VERTICAL ,false);
rv.setLayoutManager(linearLayoutManager);https://stackoverflow.com/questions/67888738
复制相似问题