I am not completely sure about the problem that you are having there. However, I think I found some problems in your code.
The first problem that I see in setting up your RecyclerView
is setting the layout size fixed by the following.
recyclerView.setHasFixedSize(true);
Looks like you are changing the item layout size dynamically. Hence you need to remove the line above while setting up your RecyclerView
.
The second problem that I see is, there is no textView_category
in the ViewHolder
for Quote
. Hence the following should throw an error.
quotes.textView_category.setText(subCategoryLists.get(position).getCategory_name());
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…