Category "android-recyclerview"

How to trigger other CardView element in recyclerview than clicked?

I have a method in adapter using recyclerview I basically display some elements of cardViews. How to trigger method on other element where usually I use cardVie

material-1.5.0-alpha03\res\values-v31\values-v31.xml:3:5-94: AAPT: error: resource android:color/system_neutral1_1000 not found

<?xml version="1.0" encoding="utf-8"?> <resources> <color name="m3_ref_palette_dynamic_neutral0">@android:color/system_neutral1_1000</c

How to make visible a element when the RecyclerView is loaded?

I'm making an social app and I want to implement a system where when you click on the comment button a Input dropdown... The problem is that it doesn't matter w

Attempt to read from field 'android.view.View androidx.recyclerview.widget.RecyclerView$ViewHolder.itemView' on a null object reference

I am making an app that gets data from sql and puts it in a recycle view i first tried it in a list view but i found it easier in a recycle view it is basically

Recyclerview getting refreshed after come back from another screen - Android navigation

I am having a product listing page. The recyclerview is filled with data from the Firebase firestore. When I click on any product, it will go to the details pag

Is there a way to drag and drop only when a specific button is clicked on recyclerview item?

I'm using the ItemTouchHelper for drag and drop. As I see, ItemTouchHelper only provides the ability to drag over any part of the item. But I need to implement

How to select all items listed in Recyclerview using androidx.recyclerview.selection?

I am using androidx.recyclerview.selection for selecting items in a RecyclerView. I am trying to build an edit fragment in which it pre-populates the old views

Know whether a view is completely visible in a recycler view from its adapter

I saw a lot of posts that show the currently entirely visible item in the recycler view but, from the activity. But, I want to know about that from the adapter.

How to move the snap position from center to left of RecycleView using SnapHelper?

I have an RecycleView that contains ImageViews and my question is how can i move the snap to be on the left side of the RecycleView instead of the center? Whe

Recyclerview recreating dynamic chips on scroll

I am creating a RecyclerView which has an item with dynamic chips. I am looping through an array to set the text of the chip, this works fine but when I scroll

How to make RecyclerView be always up to BottomSheet and under AppBarLayout?

I have a layout with AppBarLayout which height is set dynamically by adding some margins if the device has the notch, BottomSheetLayout and a RecyclerView. The

RecyclerView is not going to the orignal starting position

Recently I have added saving and restoring functionality in my recycler view so when I navigate between different fragments the recycler view maintains its posi

RecyclerView is not going to the orignal starting position

Recently I have added saving and restoring functionality in my recycler view so when I navigate between different fragments the recycler view maintains its posi

How to deal with viewholder and flow in recyclerview?

I would like to use my variable flow to save integer and keep him. Then every viewholder in recyclerview observe flow and react if it is clicked. For example: I

I want to hide my appBarLayout and BottomNavigationView on scroll of fragment recycler?

I want to hide my appBarLayout and BottomNavigationView at the same time when I scroll up the recycler and show again when I scroll down the recycler. In my cas

Recycler chat Pagination add new message at top

I am working on a chat app where I need to show reverse pagination and show the user's previous chat when the user scrolls up. I am first loading data from SQL

How to configure XML file so RecyclerView doesn't overlap the rest of the content?

What my layout file currently does: My layout file after building an app looks like on the picture and before building What I want it to do: I want this info ic

Recycler View List Sort position saving notepad app

In my program I added code to move the list items around but for example if I move shopping list above Test 123 and fully close the app the positioning resets

Next focus on custom view inside RecyclerView

I have RecyclerView that represent forms. These RecyclerView are made of multiple type of View. Each of them has a base_layout and specific View depending on th

ViewModel updates on screen rotation

I've created a simple project to study Kotlin and Android architecture https://github.com/AOreshin/shtatus The screen consists of RecyclerView and three EditT