Home > Mobile >  RecyclerView
RecyclerView

Time:10-07

Bosses, ask a question, how to pull my RecyclerView go up again and then change the

CodePudding user response:

Add logo, such as cloth type tags

CodePudding user response:

A property is only part of the set, such as:
 
If (position % 10!=0) {
Holder. The mTv. SetTextColor (getResources (). The getColor (R.c olor. ColorRed));
}

This could also lead to list change,
It is best to
 
If (position % 10!=0) {
Holder. The mTv. SetTextColor (getResources (). The getColor (R.c olor. ColorRed));
} else {
Holder. The mTv. SetTextColor (getResources (). The getColor (R.c olor. ColorBlack));
}


As long as it is only part of a different set other the same View is not set, also can produce the issue or code to write clear, or in the if... else... This writing

CodePudding user response:

Recycleview inside himself to the same typeview caches, common method is to give each set view shows all the time, otherwise it will is a cache on the view of value,

CodePudding user response:

eldest brother, in fact, I find the wrong place, is the height of the row layout into a match_parent