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
-1
votes
2 answers

Recycle-view scrolling cause value change

Recycle-view data loss focus when i scrolling view, My API and other things working fine and data change when i click on my adapter button but when i scroll my recyclview data its loss my changed data and back to the previous one. My…
-1
votes
1 answer

Recycleview scrolling child overlaps

As can be observed by the gif when scrolled the the eariler child remain in the place this started code worked well when used in the activity but when placed in fragment this issue occurs. Below are files any suggestion or change is much…
-1
votes
1 answer

How can Change BackgroundColor item RecyclerView With using Condition

how can I change color items with use condition for in recyclerview? my code does not work. the recyclerView have a absent item and I want when absent count is 3, Item position changes. RecyclerView Adapter: public class itemHolder extends…
user9512415
-1
votes
1 answer

Change main layout from Recycler item button click

I have this problem when I have to set the visibility of layout from Recycler item button click. How can I change "some other layout" params from RecyclerAdapter onBindViewHolder method?
-1
votes
1 answer

How to refresh the first tab on action bar spinner item selected

I am trying to refresh the 1st tab on spinner item selected but it showing the error No view found exception showing when I am trying to call the same fragment. Refresh Same Fragment Code: DashBoardFragment currentFragment = new…
-1
votes
1 answer

RecyclerView within RecyclerView is not scrolling

I have a layout SwipeRefreshLayout as parent and within that I am using RecyclerView within RecyclerView. Inner recyclerview is not scrolling. I have tried multiple solution available on this website but not resolve my problem. main.xml
-1
votes
1 answer

My application closes suddenly before showing RecyclerView

I am working in a recyclerView i am trying to make a recyclerView that has 2 layout but the problem is that when i run the emulator and click the button to show items in the recyclerview the application closes suddenly here's the code of the…
-1
votes
1 answer

Android Recyclerview that extends LinearLayout to a Grid

I want to create a RecyclerView (or any other view for that matter) that can have a LinearLayoutManager at first and then expand all of it to a GridLayoutManager. Something like the first part of this.
Alex Newman
  • 1,369
  • 12
  • 34
-1
votes
1 answer

How to get data from specific rows only in RecyclerView?

I'm stuck on a little problem. When I click on a row in my RecyclerView, I'd like to change its color to some other color (i.e.: red). Then, if I click this row again, I would like to set its color back to the normal one (i.e.: white). Then, if I…
-1
votes
2 answers

Respond to buttons click in RecyclerView

I have a RecyclerView where the user has to click the elements to cast a vote to that specific player. Current Layout As it's not that much intuitive, I'd like to add Buttons on the right side of each element to let the user understand that he…
FET
  • 942
  • 4
  • 13
  • 35
-1
votes
2 answers

How can i fix NullPointerException error on my recycler?

i'm trying to create RecycleView in my activity, but the app crashes at launch and the log says Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void…
-1
votes
1 answer

Implementing RecyclerView

I am trying to implement RecyclerView, but it does not get imported in main activity. Here is my code: package com.example.recycler_view; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import…
-1
votes
2 answers

Could not find RecyclerView

I am new to android development. I am creating a recycler view in my mail activity. I have defined the activity layout as:
-2
votes
1 answer

RecyclerView select multi item when user select single item

I create recycler view and inflate it many elements like text view and image view the problem is when user press on any one position to bookmark it the item selected good but I found that there another item bookmarked automatic what the…
-2
votes
1 answer

How to delete value on variable

I am new to Android and I have a question. I have a recyclerview that can be clicked and will send a query. When clicked, it will get a number/ID of each position that is clicked, like this: fno = arrivals.get(position).flightno; codeCity =…