Home > Mobile >  RecyclerView set line abnormalities
RecyclerView set line abnormalities

Time:10-02

My Recyclerview set line, don't work, first of all, I use the method of figure 1 set a 2 dp dimens. XML, but shows the Recyclerview the background color of the
Then I use ontouch and getItemOffsets Settings, ontouch background picture does not show, what reason be? And be covered, solving.


CodePudding user response:

You see hongyang great god articles https://blog.csdn.net/lmj623565791/article/details/45059587, ontouch isn't so

CodePudding user response:

Bg RecycleView like item layout set up?

CodePudding user response:

refer to the second floor aaa_Ye response:
RecycleView like item set up the layout of the bg?
I only set RecyclerView background ah, didn't set the item

CodePudding user response:

Top and bottom are 100, equivalent to height=0, height=0 certainly wouldn't see it
  • Related