ForegroundViews icon indicating copy to clipboard operation
ForegroundViews copied to clipboard

RecyclerView

Open falget opened this issue 8 years ago • 5 comments

Hello, when create RecyclerView with GridLayoutManager, foreground in items of recyclerview did not work properly, some item have foreground other not. Tested with ForegroundImageView. When using RecyclerView with LinearLayoutManager everything works good.

falget avatar Feb 21 '17 20:02 falget

Is there a chance you can provide some sample code where this is occurring?

Jawnnypoo avatar Feb 21 '17 20:02 Jawnnypoo

My item layout: http://pastebin.com/pu0vAtUP Simple RecyclerView adapter: http://pastebin.com/QEHCq9LH Code to initialize RecyclerView and adapter: http://pastebin.com/4Rh2N9Jn I hope this helps, but I think that the problem can be with RelativeLayout.

falget avatar Feb 21 '17 20:02 falget

Looking at your item layout, why not just use android:background on the more button? It does not already have a background, so it should work just fine. Also, what version of Android are you seeing this on? 6.0+ defers to the Android implementation, so it might be a problem with the platform.

Jawnnypoo avatar Feb 21 '17 20:02 Jawnnypoo

If i set image background not a app:srcCompat, then i can't set image padding and android:tint (color for vector drawable), use android 5.0.

falget avatar Feb 21 '17 20:02 falget

I tested more, and create a simple layout, foreground not work: http://pastebin.com/gdzpMsL2

falget avatar Feb 22 '17 18:02 falget