Questions tagged [android-recyclerview]

The RecyclerView widget is a more advanced and flexible version of ListView and GridView.

The RecyclerView widget is a more advanced and flexible version of ListView and GridView. This widget is a container for displaying large datasets that can be scrolled very efficiently by maintaining a limited number of views. Use the RecyclerView widget when you have data collections whose elements change at runtime based on user action or network events.

• See how to create a list with RecyclerView.


RecyclerApdater Adapter optimized for RecyclerView

The RecyclerView class simplifies the display and handling of large data sets by providing:

  1. Layout Managers for positioning items
  2. Default animations for common item operations, such as removal or addition of items

enter image description here

Tag Usage:

29237 questions
7
votes
1 answer

How to load all the images in the background of a RecyclerView in Android

Hi I am working on a Recycler view with 1000 records, where i need to display remote images. Iam loading 20 records at a time. 6 records can be shown at a time on the screen (based on the screen size of the android device). The recycler view is…
Murali
  • 165
  • 1
  • 14
7
votes
1 answer

How save the state of RecyclerView row item?

I have a recyclerview which populates data from SQL database. Now each row in the recyclerview has a seekbar which when moved displays it's progress in a textview inside the same row. The problem is when I scroll the recyclerview up or down then…
Bialy
  • 905
  • 2
  • 12
  • 22
7
votes
2 answers

Auto scroll recyclerview slider

I am new to Android development. I am trying to create an auto scroll recyclerview slider which also supports user events such as next and previous buttons and manual scrolling. Something like this: I have implemented the recyclerview and buttons…
Mays Attari
  • 81
  • 1
  • 6
7
votes
2 answers

Exoplayer not playing video only audio plays

ExoPlayer is not showing the video. I can listen the audio but video is not playing. I am using the Exoplayer in the Recyclerview.I only can see the black screen and listen to audio.I am not able to track the problem. I am playing the HLS video in…
Shikha Ratra
  • 697
  • 3
  • 12
  • 28
7
votes
4 answers

Add click listener to Generic RecyclerView Adapter

Edit As It is a genericAdapter not simple one and I know the methods to add click listener. And it is not a good practice to do this in onCreateViewHolder. So that's why I need a better suggestion I have created a Generic Adapter for RecyclerView…
Zar E Ahmer
  • 33,936
  • 20
  • 234
  • 300
7
votes
1 answer

RecyclerView drag-drop - using ItemTouchHelper - How to set scrolling speed faster while dragging?

I tried this code for drag and drop : https://github.com/iPaulPro/Android-ItemTouchHelper-Demo. Here is a video : https://youtu.be/lMsv2jYpbi4 Is there a way to speed up the scrolling during drag-and-drop ?
jhegedus
  • 20,244
  • 16
  • 99
  • 167
7
votes
3 answers

Image flickering while scrolling in RecyclerView

I'm trying to display a list of songs found on the device requesting data directly from the MediaStore. I'm using a RecyclerView and an adapter that uses a CursorAdapter to get data from MediaStore. When adapter's onBindViewHolder is called, the…
fillobotto
  • 3,698
  • 5
  • 34
  • 58
7
votes
1 answer

Updating RecyclerView item ProgressBar without calling notifyItemChanged(int) on adapter

I am trying to update a progressBar which is the part of one of the RecyclerView items. I know I can do it in two ways, Method 1: By refreshing the item row by calling notifyItemChanged(position) Method 2: By accessing the view using the method…
7
votes
5 answers

Distance between RecyclerView too far

Currently a beginner at android development and I've been following some exercises/tutorial here and there and I'm facing a problem where the distance between in items in RecyclerView is too far apart from each other as shown in the picture below.…
azriebakri
  • 1,131
  • 2
  • 11
  • 36
7
votes
2 answers

Focus EditText from add item in RecycleView

I have got an app where I use a RecycleView with CardViews. The CardView contains an EditText now when I add a new CardView to the RecycleView the EditText should be focused and the keyboard should appear. How can I achieve that? I have tried to add…
wake-0
  • 3,918
  • 5
  • 28
  • 45
7
votes
2 answers

create PDF of RecyclerView in FULL length

I want to create a PDF of "full page" of the activity. The view contains a RecyclerView with many items. I can take a full dimensions of my Recyclerview but the file is drawed only of the current view. This is my code: public void tela (){ //…
7
votes
2 answers

Android, Glide shows wrong image for about one second

I'm using Glide library for loading images from URL, which I get from Graph Request (Facebook). It's used in RecyclerAdapter. When I'm scrolling, each ImageView shows wrong picture for about less than one second, then correct one. Here is the…
Panczur
  • 633
  • 1
  • 9
  • 26
7
votes
0 answers

How remove spacing Horizontal GridLayoutManager recyclerview android

I use recyclerview with grid layoutmanager I don't add ItemDecoration GridLayoutManager gridLayoutManager = new GridLayoutManager(TestResultActivity.this, 4, GridLayoutManager.HORIZONTAL, false); …