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

Firebase data to RecyclerView shows only one item

I'm retrieving data from firebase and trying to display that in recycler view, every thing is fine but it only shows one item in the list (there are total 14 items) comment if you do not understand the question This is my main activity where i get…
0
votes
1 answer

There is not text in the items of my recyclerviews

I am creating a project based on the recyclerview. I have created a Adapter class within which is the ViewHolder and I have also created the Model Class named as ListItems. After doing everything else when I tried to run the app it is showing all…
0
votes
0 answers

recycleview not showing the last item with AppBarLayout combination

When i open this sample app, i want RecycleView to show the last item on the list. In this .gif examle bellow, i have 200 items but, when i open app, its not showing the last item. AppBarLayout/CollapsingToolbar push down RecycleView so its not…
0
votes
0 answers

How to improve RecyclerView that has complex ViewHolder with EndlessScroll

I am working on project which has a complex recyclerview .its similar to instagram post feed. i use mikepenz/FastAdapter for recyclerview adapter, which has pretty smooth scrolling. but when i starts to append the news items to the adapter the…
inval
  • 380
  • 1
  • 4
  • 11
0
votes
3 answers

Setting different color on some grid items

I want to set different grid item background color based on weather the model for that item has some boolean set to tru or false. So in my onBindViewHolder method in my MyRecyclerviewAdapter I check: if (current.hasWiki()) { …
0
votes
1 answer

Recyclerview v7:27.1.1 wrap_content Not Working

I'm Facing some strange issue while implementing RecyclerView gradle implementation 'com.android.support:recyclerview-v7:27.1.1' Activity JAVA Code: RecyclerView rv_agenda = view.findViewById(R.id.rv_agenda); AgendaAdapter agendaAdapter = new…
0
votes
1 answer

Two recyclerview is not showing in one layout

i am trying to implement two recyclerview in one layout with same adapter. but only one recyclerview is showing. MainActivity.java public class MainActivity extends AppCompatActivity { List ListOfdataAdapter; String HTTP_JSON_URL =…
0
votes
1 answer

getting null object error to use multiple layout in recyclerView

I'm trying to use two layout for my RecyclerView items and I wrote this code for my purpose. It should change layout in odd and even basis numbers public class WordListAdaptor extends RecyclerView.Adapter{ private…
Artin GH
  • 546
  • 2
  • 10
  • 21
0
votes
0 answers

Unable to fix crash on Fabric...in recyclerview method

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.s.b(android.support.v7.widget.RecyclerView)' on a null object reference at…
Aman Srivastava
  • 1,007
  • 1
  • 13
  • 25
0
votes
0 answers

Firebase RecyclerView Adapter App is Crashing: Android

I am working on an Android app. I use Firebase database. But I am stuck with a problem. My app crashes when I use FirebaseUI RecyclerViewAdapter. Here are all my dependencies: compile 'com.google.firebase:firebase-auth:11.0.1' compile…
0
votes
0 answers

How to change RecyclerView layout programmatically?

I need to have a certain layout, for example a CardView if I have only one item in my ArrayList of objects fed to the adapter. However, if I have more than one item, I need to use another layout for the rows of the RecyclerView. I know all about…
Rohan
  • 593
  • 7
  • 22
0
votes
0 answers

Set Which EditText to focus when click "Next" on keyboard (Different Recycler View)

I am creating a recycler view with each item have about 6 edit text. For e.g Item.axml :
0
votes
0 answers

RecyclerView with another RecyclerView of images

I'm using a recyclerview to create my components but each component has a button to take or pick a photo, so I need to add photos in this inner recyclerview. But when I do this doest add in the right place and need to add more of 2 photos to show…
0
votes
1 answer

How to get current loggedIn user by getUid and display its information on RecyclerView?

Below is my database structure I have created a recyclerView in an activity to show all the bookings made by users. The recycler View works fine but the problem is that it shows all the details of bookings made by every user. I want to only…
0
votes
3 answers

RecyclerView.Adapter onBind method not recognizing View items from row xml in android

Creating simple program that takes a list of MAX 4 items, i opted for a RecyclerView instead of ListView for optimization. I added and binded the RecyclerView to my main.xml and MainActivity, created an row.xml that defines how each row inside the…