Questions tagged [recyclerview-layout]

RecyclerView is a more advanced and flexible version of ListView. It was introduced with the Android L Developer Preview, but is also available as part of the Support Library.

RecyclerView is a more advanced and flexible version of ListView, introduced in the Android L Developer Preview but also backported to the Support Library. It is a container for large sets of views that can be recycled and scrolled very efficiently.

Yo use a RecyclerView, an adapter (extending RecyclerView.Adapter) and a layout manager (extending RecyclerView.LayoutManager) must be provided. By default, RecyclerView provides LinearLayoutManager, which shows the items in a vertical or horizontal scrolling list.

Official Documentation

Tag Usage:

436 questions
0
votes
1 answer

No adapter attached, skipping layout in RecyclerView

My recyclerView turns out to be blank when i try to load data from JSON. In logcat, it says, "No adapter attached; skipping layout" This is my activity public class MainActivity extends AppCompatActivity { private RecyclerView news; private…
Ishan hrx
  • 403
  • 8
  • 19
0
votes
1 answer

LinearLayoutManager - repetition in a circle

Is there any easy way to make LinearLayoutManager to be as a circle (repetition items in a circle)? I investigated it and found only way to make own custom LayoutManager, so it would be cool to find a way with less code
0
votes
3 answers

Android - RecyclerView notifyDatasetChanged not updating layout view

I have an Adapter for a RecyclerView. The adapter has a property size, that can be either SMALL or LARGE. Depending on the property, the layouts loaded for viewholders will be different. I have a button to change this property, however after I set…
0
votes
1 answer

Automatically scrolling TextView inside a RecyclerView

My current problem is the following: I have a RecyclerView and each element of this RecyclerView has a TextView. I want that the TextView scrolls automatically. What if tried so far: Customize TextView: public class ScrollCustomTextView extends…
0
votes
1 answer

How to find Recycler view position in android?

I have on vertical Recyclerview and inside each row one horizontal Recyclerview. I am using this structure for category product listing. now there is one API (Lets say API-1) which is giving me list of category, and i am getting category id in that…
0
votes
2 answers

Recyclerview item row background color issues

I am using recyclerview to list items from sql, I have issues with the background color of item rows... I have tried changing it and nothing happens. Here is my row layout
0
votes
1 answer

Using Picasso Images not showing in Recycler view

I am trying to show images from a Firebase database in recycler view in android studio but the images are not displaying. I am not sure where I have gone wrong or what the problem is. Main Activity.xml
0
votes
0 answers

How to add EditText items to RecyclerView?

I am making a Notepad app in Android and I want to create a note in one activity then save it to another activity that contains a RecyclerView. Currently, it only saves one note and every time I create another note it saves over that…
0
votes
4 answers

Cannot Fix a header above RecyclerView in Android

I need to show a header above a RecyclerView but with the code below, the header is not fixed and gets scrolled with the recycler view. Does anyone has a solution for his problem? fragment_history_detail.xml [[First Try]]
0
votes
1 answer

Changing the View Position of item in RecyclerView on scroll in Android

I am using below adapter for recyclerview in chat application but on scrolling I automatically position changed. I used getItemViewType() I think that this provide problem. public class MessageAdapter extends…
ankit
  • 2,591
  • 2
  • 29
  • 54
0
votes
1 answer

Getting wrong item selected from filtered list using recyclerview

I have a RecyclerView & EditText. I can select the item from RecyclerView & gets correct item unless it is not filtered. On entering in EditText, RecyclerView list gets filtered & when I select any item from the list it shows me actual list item…
VVB
  • 7,363
  • 7
  • 49
  • 83
0
votes
1 answer

Recycler View showing wrong data when scrolled fast.Have Added Images For The Same

I have a RecycleView where i have three different views for cells. Data is shown perfectly when RView is loaded for the first time. As I start to scroll, it changes the view color. Tried different ways but not able to resolve it. original…
0
votes
1 answer

Multiple RecyclerViews with a shared ViewPool does not reuse/recycle Views efficiently

I have two RecylerViews in a LinearLayout with vertical orientation inside a ScrollView. Both RecyclerViews want to display a list of 6 strings in TextViews. The arrangement is such that at the start, the TextViews of just the first RecyclerView…
amitsaurav
  • 531
  • 1
  • 5
  • 18
0
votes
4 answers

Chat message box as wide as text content

So i want to have chat message container as wide as the message is. I want to achieve something really similiar to this kind of chat message: http://img.creativemark.co.uk/uploads/images/805/15805/img3File.png Here is my layout, with which i am…
wegtis
  • 303
  • 2
  • 4
  • 12
0
votes
2 answers

Android RecyclerView Grid Background

I have an array of images with their respective ids. I want to change the background of the RecyclerView grids by fetching images from this array using their ids. In this image grid it has dark blue background, and I want to change each grid's…