Questions tagged [android-recyclerview]

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

0
votes
0answers
9 views

GridView not showing correct height when parent item resized

Why is it that whenever my GridView height inside a CardView is stretched to beyond its contents? Even though none of the android:layout_height instances are set to match_parent. XML <?xml ...
0
votes
2answers
16 views

Unable to attach adapter for recycler view in fragment

In my app I am using recycler view in fragment. That recycler view data comes from database. I get all data perfectly but all data overlap each other and getting an error in log cat.I am using card ...
0
votes
3answers
17 views

Crashing when adding an image to recycler view in API 23 and below

I am dynamically trying to add images in to a recycler view by giving my ImageView a bitmap (I have also tried to convert it to a drawable). When I call the adapter with the updated list I am ...
0
votes
1answer
16 views

Do not apply requestFocus on EditText that is inside CarouselView

I have a EditText in the RecyclerView item that, once the item is selected, I want to display the keyboard and Focus on the EditText, but I do not do anything. I use the CarouselView library, which ...
1
vote
0answers
20 views

Check if all items in RecyclerView have the same value (google Firestore)

I need to chceck if all items on adapter have a boolean value = true Then based on result i have to change floatingActionButton color. I have no idea how to do it. Here is my Adapter: private ...
1
vote
1answer
53 views

RecyclerView Bugs?

I have a Note-App. In the Main Activity the Notes are going to be listed with a RecyclerView. To apply changes in the database I use FirestoreRecyclerOptions. But I have a big problem. First, ...
1
vote
2answers
43 views

notifydatasetchanged is not working on adapter

From this adapter i am showing a dialog for payment but after payment submission it not get updated. how can i update the views? public class PersonDebtDetailsAdapter extends RecyclerView.Adapter<...
0
votes
1answer
12 views

How to run intent on adapter from fragment to activity in android studio

I would like to move layout from recyclerview in adapter, and i want to move layout using fragment to activity and I create intent on an adapter from fragment to activity, here is my Adapter : public ...
0
votes
1answer
14 views

get key position in onBindViewHolder firebase database

I want to get key position in database. getting error: getRef(position) : Cannot resolve method 'getRef(int)' on final String post_key = getRef(position).getKey(); this is my code CustomPostAdapter ...
0
votes
0answers
13 views

I wanted to show a series of ImageView from Firebase

I wanted to show a series of ImageView from Firebase using RecyclerView I have errors when i put model.getImage2(),model.getImage3(),model.getImage4() in setDetails() is there a way to put 4 images ...
2
votes
2answers
42 views

How to add padding to last view in RecyclerView, only if the RecyclerView is scrollable?

I'd like to add bottom padding to the last view in a RecyclerView, but only if the RecyclerView is scrollable - in other words, if the last adapter item is completely visible with no scroll, do not ...
0
votes
1answer
17 views

Why set/update RecyclerView.Adapter inside NestedScrollView temporary freezing?

I have NestedScrollView, which contains horizontal adapter and vertical adapter. When I set adapter or update adapter, it always temporary freeze (few seconds - with profile it takes longer) and it ...
0
votes
1answer
23 views

First item of Recyclerview duplicate twice

i'm trying to display images from a particular folder (3 images) and store them in Recyclerview using code below , But the first item of Recyclerview repeated twice ,appears in the first and last ...
0
votes
1answer
24 views

android.view.InflateException Binary XML file line #0: Error inflating class <unknown> Caused by: java.lang.reflect.InvocationTargetException

android.view.InflateException Binary XML file line #0: Error inflating class Caused by: java.lang.reflect.InvocationTargetException employee_layout.xml file <?xml version="1.0" encoding="utf-8"?&...
0
votes
0answers
22 views

Fragment transaction is lagging when adding (or re entering) a fragment while adding data to a recyclerview

I have some lag related issues with my fragment transactions, when switching to a fragment that asre showing recyclerviews with data. The more data and complex it is, the more the transaction is ...
0
votes
0answers
30 views

Item return in the list after deleting it on Swipe

I'm having an issue that i'm trying to solve for days. I have a filter method in my RecyclerView that search for certain items by writing something in an edittext. The RecyclerView is opening in an ...
0
votes
0answers
36 views

RecyclerView Doesn't Display All Items, But Only Two

I want to display values I got from Retrofit call on RecyclerView row item . I parse the JSON objects and store them in Sqlite DB. I could manage to display 2 of 5 String values on a TextView, however,...
0
votes
0answers
25 views

Android RecyclerView Date

Attach is a ui of a recycler view of of containing transaction base on dates i need a sample json for this ui to populates how it looks and how to go about the dates separator especially a sample code ...
-2
votes
2answers
22 views

Select position of CardView in RecyclerView and Change Fragment in RecyclerView [on hold]

* EASY PART * At the moment I have set up a CardView inside a RecyclerView. What i need to do is to change the color of the 2nd cardview to yellow, and the 3rd cardview to red (At the moment they ...
0
votes
3answers
38 views

After Clicking any button all other button are disabled in RecyclerView

enter image description here Please Refer the Above Image public class complaintAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { private Context context; String hello, status, ...
-1
votes
1answer
28 views

How to add animation to recyclerView on Android [on hold]

In my application i use recyclerView for show list of items and i want when scroll up and down show me items with fade animation. I write below codes but i don't know how can i add animation. Please ...
0
votes
0answers
7 views

recycler view section where data called from the JSON

Friends, I am trying to make the Section Recycler view using this dependency io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:1.2.0 I am calling data from the JSON please ...
1
vote
0answers
18 views

Fragment change & Select Position of CardView in RecyclerView

* EASY PART * At the moment I have set up a CardView inside a RecyclerView. What i need to do is to change the color of the 2nd cardview to yellow, and the 3rd cardview to red (At the moment they ...
0
votes
0answers
21 views

How To Dynamically Create ImageViews While Keeping Aspect Ratio

So I am having trouble with a texting app I am making, my main problem is that I have to dynamically ImageViews that I later add onto a Linear Layout and eventually onto a RecyclerView like So. ...
0
votes
4answers
42 views

Android RecyclerView NullPointerException

Currently i'm working a project, where i need to implement a RecyclerView/CardView. From MainActivity i call fragments in a switch case, where all fragments work. Whenever i press on the Fragment ...
0
votes
1answer
38 views

Recycler view doesn't show first item until refresh

I've got an app which saves a number and the date it was recorded in a recycler View, however when the array is empty and then I try to save my number, the RecyclerView does not show the item. The ...
1
vote
2answers
31 views

Fragment Recyclerview onCreateView, onViewCreated or onActivityCreated?

Should i initialize my recyclerview in onCreateView, onViewCreated or onActivityCreated? What's the difference between those 3, i searched for explanations but some people say to use onCreateView and ...
0
votes
1answer
18 views

Check radio buttons status in Recycle View Adapter and applying changes to it from MainActivity

In my MainActivity method checkAnswer and showSolution are have to be modified because I added RecycleView adapter to the project and moved all view items to the QuestionAdapter. I do not understand ...
0
votes
1answer
30 views

I have a problem loading widgets in android studio

I do not know why this problem happened I opened my android studio and it does not load the view of my RecyclerView and some other widgets, since I cleaned the cache also used the Rebuild Project but ...
1
vote
1answer
33 views

How to change an another item's state in a RecyclerView in android

I have a RecyclerView. Every layout contains expandle view within itself. With item click expandle view of clicked item is expands. And if I'll click on two items there is will be two items with ...
0
votes
1answer
62 views

how to read all value from room data base and show into recyclerview?

I am using room database for storing json data from URL its working fine but while accessing data from data base to show on recyclerview its give one result at time and if i am open app second time ...
0
votes
0answers
51 views

Retrofit2 Api Call Error not showing the Result in Recycler view

This is the API INPUT: center_id:4 tabID:952888062222222 patient_search: 98 OUTPUT: { "status": true, "result": [ { "patient_id": "3", ...
2
votes
3answers
68 views

Bug: exchange between fragments

I will try to explain at best, adding references and images in which I think it is difficult to explain in words the error I encountered. Working with the fragments and the Navigation Drawer I've ...
0
votes
2answers
39 views

RecyclerView ItemDecoration broken with AndroidX

I have a compiler issue when using DividerItemDecoration with a RecyclerView in an existing project we are updating to use AndroidX libraries. The project unfortunately uses DataBinding, which may be ...
0
votes
0answers
21 views

DiffUtil - item inserted/removed, notify existing items

When an item is added or removed using DiffUtil, inside android.support.v7.util.AdapterListUpdateCallback only the notifyItemRangeInserted(1, 1) or notifyItemRangeRemoved(1,1) respectively is invoked, ...
0
votes
4answers
61 views

RecyclerView is loading twice product on click event in recyclerView in android

i have applied recyclerView in fragment in which i am showing product from api that is working fine. i have performed click listener on recyclerView, when i click the product and go to next fragment. ...
0
votes
0answers
4 views

Recycler View Horizontal scroll and stack from bottom

I'm trying to implement a recyclerview with horizontal scrolling and a stacklayoutmanager. I want the item to stack from bottom like in tinder. I tried some libraries like HirayClay's library doesn't ...
-3
votes
0answers
26 views

Please give me idea to develop Bus Seat Layout like Upper and Lower Deck based on Row and Column wise or any code for this [on hold]

where Zindex=0 for Lower deck, Zindex=1 for Upper deck I am using API for getting all this values Update: Please check out this code on github https://github.com/hiteshsahu/Ticket-Booking-...
0
votes
2answers
65 views

RecyclerView Adapter does not fill up with my array of data

It seems like when I try to push my 2 json objects to my RecyclerView it shows only once, I have used the debugger but still cant find the bug Im parsing a JSONArray of 2 objects and showing it into ...
0
votes
1answer
24 views

RecyclerView onBindViewHolder not painting my views

Im sorting when clicking my items, but after they are sorted the fill color of the favorite icon is not set or disapears, this is what I'm doing @Override public void onBindViewHolder(@NonNull ...
0
votes
2answers
20 views

Android: RecycleView not getting populated

I know it had been asked multiple times but I can't find the solution for this. Basically My RecycleView is not being populated. No method of the adapter gets called (onBindViewHolder, ...
0
votes
3answers
73 views

my adapter of recycler view returning null

I am trying to use a RecyclerView with an adapter to call a specific person. In the adapter I am using a call button and taking a reference from PlaceCallActivity. The problem is that ...
0
votes
1answer
27 views

I am trying to load a RecyclerView from clicking a button in my current RecyclerView

What I want to do is click a button in my current RecyclerView that will display the corresponding RecyclerView with the data I am looking for. Is it possible to do this? I want each button on each ...
0
votes
1answer
46 views

kotlin nested recyclerview add data

We are trying to design a nested recyclerview we get the idea that TWO adapters are used. What we are not understanding is the data source construction. We are using SQLite DB for a data source. Our ...
0
votes
0answers
15 views

How to listen and react to changes to a RecyclerView adapter's data in a fragment/activity?

So, I have a custom PlaceAutocompleteAdapter on a screen with an EditText and some other views that are hidden when the RecyclerView is shown. When a place is clicked in the Suggestions list, the ...
0
votes
0answers
69 views

No Data with RecyclerView, Data Binding and ViewModel

New to Android development and trying to wrap my head around the latest Architecture Components. Using Android Studio 3.2, Room, LiveData, ViewModel, Data Binding and RecyclerView and I’ve been ...
0
votes
0answers
23 views

Recyclerview add one item from bottom to top

I have a recyclerview and a button in my main activity and three layout ressource files (right.xml, mid.xml and left.xml [They're relative layout]). I have an arrayList and each time I push the ...
0
votes
1answer
24 views

Checking the checkbox in recyclerview from a different activity

[Asking question for the first time on Stack Overflow] I am making an application where the user will be shown with a list of locations in a recyclerView. RecyclerView has generic rows and each row ...
0
votes
0answers
25 views

What is the use of angle quotes when extedning a JAVA class to its nested class? (example inside)

I came across a syntax that I can not understand and I can't find more info by searching. In the example below the CarAdapter class extends to RecyclerView.Adapter but furthermore there is something ...
0
votes
0answers
21 views

How to blend recyclerView with alpha mask? [Resolved]

I have a RecyclerView with a vertical LayoutManager. I want the contents of the RecyclerView to be visible in accordance with the mask. My alpha mask Here's how it should work. Pay attention to the ...