Skip to content
Advertisement

Tag: android-recyclerview

RecyclerView Items cover entire screen

I’m trying to make a simple chat room in android studio, but for some reason each chat message covers the entire screen. I’m trying to follow the example here on github https://github.com/android/views-widgets-samples/tree/main/RecyclerView/ I’m sure it’s just something super simple, but I don’t know what the search terms are to find it, and my search so far has been fruitless. This

How to change the background color of a View Drawable without changing its body in recyclerView?

I have a standard drawable with a body and a color. but I’m having trouble changing the color of this drawable in the Bind process of my recyclerView, whenever I invoke the method holder.item.setBackgroundColor (); or setBackground it even changes the color as needed, but it ends up totally changing the shape of my initial drawble. My shape Drawble: the

RecyclerView new items adding issue

I have a RecyclerView, it has 30 items and when I scroll to the end to load another 30 items, it goes to the first item. I tried to get current visible item then scroll to it when new items are added But it is not that smooth. I tried to scroll to listmap.size() but it will force the RecyclerView

Advertisement