Questions tagged [android-recyclerview]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

position doesn't work depends on getItemCount in RecyclerView (Kotlin)

override fun getItemCount(): Int { return ekipListesi.size } override fun onBindViewHolder(holder: KisilerVH, position: Int) { holder.binding.kisiAdiTextView.text = ekipListesi[position] println(...
drSefa's user avatar
  • 1
0 votes
0 answers
9 views

After switching to a different fragment outside the adapter, the current fragment is taking old adapter instance. How to clear the old adapter instanc

we have an adapter class(E.g. AdapterA) which creates different fragments using CreateFragment method when user clicks the different Tabs of Tablayout. Based on the fragment, the menu options are ...
Tech solutions's user avatar
0 votes
0 answers
10 views

Why android Recyclerview automatically update without adapter notifyDataSetChanged() method called? when data is coming from web socket background

I am showing list of data by recyclerview. so when data is comming from web socket then adding new items in existing list so my recyclerview update automatically. i am not explicitly calling ...
Deepak Parmar's user avatar
0 votes
0 answers
11 views

How to use SearchView on a RecyclerView List

For my app I use a recyclerview list that displays Pizza Restaurants that include its name, location, and rating. In it I want to use a search view that can look up the restaurant by its name. Every ...
SRBeginnerDev's user avatar
0 votes
0 answers
6 views

create a multiple layout viewholder for recycleview in kotlin for PagingDataAdapter

I am working on a chat application and i need a recycle view that inflate multiple typle of layout. in kotlin I'm not able to achive that with PagingDataAdapter. mainly I am using room for live data ...
Ipshita Sardar's user avatar
1 vote
1 answer
28 views

CardView animation effect to recyclerview in android - Swipe effect

I want to create and implement this effect on my recycler view card effect. I have searched a lot on Google but no success. If anyone know how to create this card view and implement this animation ...
Rohit Kumar Sehrawat's user avatar
0 votes
1 answer
25 views

I can't update the data about an item in the database

I'm new to android development, please help. I have a RecyclerView – it has a list of items opposite each of which there is an opportunity to add it to favorites. When clicking on the ImageButton, the ...
Денис Белозёров's user avatar
1 vote
1 answer
17 views

Android tableview cells not aligned

I am creating tables in Android Studio. The table header is created with the following code: <TableLayout android:layout_width="match_parent" android:layout_height="...
Armin Brkić's user avatar
1 vote
1 answer
17 views

Java RecyclerView adapter incorrectly coloring 14th item specifically, regardless of variable values

I have a leaderboard that colors your name depending on your rank. For every 10 € spent, there is a new color. The last rank is a gradient color. It colors everything as it should, except for the 14th ...
Snoopher's user avatar
0 votes
3 answers
37 views

How can I reduce space between the recyclerview cardviews that are generated dynamcially?

I have created a horizontal scrolling for recylerview elements to scroll left to right and vice versa like this The number cardviews in the recyclerview will increase dynamically. As you can see in ...
vilnius19's user avatar
0 votes
0 answers
16 views

How to correct intercept scrolling gesture in child of horizontal RecyclerView

One part of my main screen in Android App is horizontal recycler view with 'products' elements. In each 'Product Item' view I have another view with several photos. And I want to user can scroll this ...
alena_fox_spb's user avatar
0 votes
3 answers
40 views

I can't see my recycler view in android studio

I m doing a instagram clone in android studio with kotlin. I am using firebase. The problem is I can't see comment recycler view in post detail screen. I checked my commentList it is true. So my ...
Emre Dursun's user avatar
0 votes
0 answers
24 views

RecyclerView Not showing as I am expecting ANDROID STUDIO JAVA [duplicate]

I am using fragment to change the App Ui (Ex: Favourite, Home, Setting fragments in the MainActivity). Home fragment is responsible for loading the images using recyclerview (Using Picasso library) ...
Prateek Jangra's user avatar
0 votes
1 answer
19 views

how can I remove the recyclerview swapping indicator or at least change it's color to white so user won't see it?

I have created 3 recyclerview and each of them swap horixontally from right to left and left to right but while swapping, it shows a Grey colour indicator below the cardviews for sometime when I start ...
vilnius19's user avatar
0 votes
0 answers
27 views

Using multiple lists for a single recyclerview adapter in kotlin

I'm making a notes app that has 6 lists and 6 adapters for every list and users can add sections in every list and they can add items in the sections.. the problem is I'm using one adapter for the ...
Mohamed Anwer's user avatar
0 votes
0 answers
34 views

Adding N number of textview dynamically inside view holder item while the recyclerview is setting up

In this part of my app, I am trying to add n (number) of textview based on number of orders to the linearlayout inside recycler view item, but the problem is textviews some times not showing, and I ...
Dr Mido's user avatar
  • 2,438
0 votes
1 answer
15 views

Smooth Zoom and Pan all items in RecyclerView

I have a RecyclerView with a vertical LinearLayout. The content consists of a list of images. Users should have the ability to zoom and pan, affecting all the images simultaneously. When a user zooms ...
johngray1965's user avatar
0 votes
0 answers
10 views

Syncing Data Between Two RecyclerViews in Android BottomsheetDialogueFragment

I have a bottomsheet fragment and I have implemented two recyclerviews in it. The bottomsheet takes the argument of a arraylist of a custom datatype "UserMedicalData". This custom type has ...
Aysha's user avatar
  • 1
0 votes
1 answer
39 views

Programatically change background color of widgets in Android?

I want to change the background color of items in my RecyclerView programmatically by if else conditions. I followed the answer of this questions, but it does not work anymore. getResources().getColor(...
Cool_Coder's user avatar
  • 4,922
0 votes
0 answers
26 views

Xamarin getting data from TextView that is offscreen

I want to add functionality in my app to save changes. All the fields that can be changed are in RecyclerView. Initially my idea was to gather data from all the TextView-s after the user finished with ...
Kiril's user avatar
  • 41
0 votes
0 answers
20 views

Horizontal recyclerview inside another horizontal recyclerview doesnt show sometimes

I have list of events inside recyclerview and each event has tags which are again recyclerview inside each event. The problem is sometimes it doesnt show on a device and when app is restarted it ...
Hassan Rana's user avatar
0 votes
0 answers
35 views

How to update items using list adapter in ChildEventListener

I am working on a project. And I am trying to show a list of object in which data is fetched from Firebase Realtime Database. When I change the data on Firebase console/make some changes in database, ...
Rishabh Aggarwal's user avatar
0 votes
0 answers
18 views

I have a full screen android DialogFragment with a RecyclerView and an extended RelativeLayout. How do I pass the RV to the extended RL no static?

I want to have access to the RecyclerView in the Extended RelativeLayout so I can scroll etc the RV from the extended RelativeLayout. Thanks I don't know how to pass the RV in the constructor of the ...
Johnny S's user avatar
1 vote
1 answer
23 views

recyclerview is not initialized when the activity is reloaded

I'm new to android application development and I appreceiate some help. there is a recycler view in my activity which is initialized in a handler which notifies the activity about the bluetooth ...
shayan's user avatar
  • 11
0 votes
1 answer
24 views

Badge attached to CardView doesn't show

I want to create and attach a badge to a CardView inflated from xml layout inside a RecyclerView.ViewHolder: override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MenuItemViewHolder { ...
perissf's user avatar
  • 16k
-1 votes
0 answers
15 views

RecyclerView is inside a NestedScrollView. scroll bar appears

My RecyclerView is inside a NestedScrollView. The scroll bar appears, but it disappears after 2 seconds and reappears when scrolling the list `<androidx.constraintlayout.widget.ConstraintLayout ...
Юлия's user avatar
0 votes
2 answers
36 views

NPE when trying to show a Badge in RecyclerView item

I want to create and attach a badge to a CardView inflated from xml layout inside a RecyclerView.ViewHolder: override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MenuItemViewHolder { ...
perissf's user avatar
  • 16k
1 vote
2 answers
22 views

Is there a way to get last selected position with current selected position from recyclerview android kotlin?

I'm currently using recyclerview to build a custom calendar for an android app. This app is contains elements about schedule management, and that raised a demand to make multiple date selection via ...
Euna J's user avatar
  • 31
1 vote
0 answers
37 views

Put mp3 files from raw folder into Recyclerview

i have mede an android app that can read music file from device now i want to read music file from raw or asset folder insted can you please help me i am an extra beginer i have watched many youtube ...
Bra Him's user avatar
  • 21
0 votes
4 answers
39 views

How to save the state of the RecyclerView after turning the screen?

I ran into such a problem that when I rotate the screen, the data that I added to my list disappears. I tried to solve this problem through onSaveInstanceState() and onRestoreInstanceState(), or ...
k4bn's user avatar
  • 3
0 votes
0 answers
27 views

How to implement partial swipe to show button and full swipe to dismiss in recycler view Android?

I want to implement partial swipe and full swipe functionality in recycler view item like what we see in notifications. Partial swipe will show the button under the item. Full swipe will dismiss the ...
Ashish M's user avatar
  • 773
0 votes
1 answer
33 views

How to make vertical list navigation on andoid?

Can you please tell me how to implement this behavior? Under AppBar has a horizontal menu that allows you to go to the desired category, list location, and it is also automatically selected when ...
Treasure Receiver's user avatar
0 votes
1 answer
42 views

Text not shown below images in recycler view of Kotlin Android app

I have created an Android app in Android Studio, written in Kotlin. One of the pages shows an overview of bicycles with their name below. Works like a charm in Android Studio, all emulators I tested ...
cootje's user avatar
  • 450
0 votes
0 answers
26 views

Recyclerview inside Jetpack Compose Column is not getting onScrolled events

I have this Column that wraps the entire screen. There is also an AndroidView(RecyclerView) as it's child. The issue is that when I make the Column scrollable, then the recyclerview adapter is not ...
Hessam-Emami's user avatar
0 votes
0 answers
15 views

paging from firebase realtime database to recycler view

the pagination works fine but when i get to the last item i want to stop loading more,it loads the same data again and again.If u can in the first load database method i want to load only the new data ...
DeATHuMmEr1911's user avatar
0 votes
1 answer
22 views

Using recyclerview for a short list of items, do not want to remove or reuse items

I have to use a Recyclerview but for such a small number of items it doesn't make sense to recycle views. It would be better to just add new views into the list and let them stay in the view heirachy....
user1743524's user avatar
0 votes
0 answers
10 views

Constraint layout is not aligning widget properly with layout_constraintEnd_toStartOf for list item

I am using layout_constraintEnd_toStartOf tag for aligning widget to the right of another in constraint layout, but it is overlapping the first widget. Below is my Layout item XML: <?xml ...
Rakuten Innoeye's user avatar
2 votes
1 answer
55 views

Reorder items in recyclerview with snake effect

I am trying to implement a reordering of my icons in a recyclerview by following this guide The problem is that for same row, it is working as expected.But when i drag the item from one row to another ...
Alex's user avatar
  • 1,836
1 vote
2 answers
34 views

How to set properly a recycler view in a fragment

I wonder how am I supposed to set properly my Recycler View in my fragment, the dashboardViewModel "observe" the text field but I have not find how to observe the Recycler View, so I just ...
Fred37b's user avatar
  • 832
0 votes
1 answer
32 views

What is the function of holder.itemView.setSelected in onBindViewHolder

I created inintClickListners function and that is called onCreateViewHolder. Below is the code I created initClickListeners(ViewHolder holder){ holder.itemView.setOnclickListener( v -> { Data data ...
osj0524's user avatar
0 votes
0 answers
12 views

Troubles with getting data from Room DB and inserting it to RecyclerView (Kotlin)

Good day dear developers, first sorry for my bad English, I'm just a beginner in coding and trying to write my first app. I need to show list of elements (images and statuses) in recyclerView and ...
Fik Bar's user avatar
0 votes
0 answers
30 views

recycler view shows the data twice and when i go back and reopen the chat activity it show the correct data

I am creating a chat application using SQL database. When i am sending data the data showing many times in recyclerview and showing worng data but when i am going back and reopen the chat activity it ...
mm m's user avatar
  • 55
0 votes
0 answers
27 views

Room database is not importing and exporting

I am writing a program to backup and restore a room database in Android Studio. I have a recyclerview to load a user list. I am supposed to backup and restore the user list from the recyclerview to ...
Anesu Mazvimavi's user avatar
0 votes
1 answer
16 views

How to set bottom view always below to its top view even the top view 's height is bigger/smaller than screen?

[I have 3 layouts inside relative layout like this]1 My target is to make layout 3 always below layout 2 which is a Recycler view. It is perfectly working when the list item size is small, but when it ...
Rj Stha's user avatar
  • 15
0 votes
0 answers
26 views

Proper handling of functions on individual elements of a RecyclerView that contains many elements

I am creating a book-themed application in Android. Briefly within my application I have three sections where a user can enter books, specifically: Daleggere, Incorso, Letti (in Italian, but ...
Edoardo Cecchini's user avatar
0 votes
0 answers
5 views

how to number recycleView elements

How can I number my elements in the RecycleView? I want my elements to be numbered when added as by index, and so that when deleted I can have its number as a position and when deleted the number of ...
Влад Лось's user avatar
0 votes
0 answers
60 views

How to handle this permission error on ACTION_OPEN_DOCUMENT or related APIs in kotlin/android?

Please, consider that I'm new at Kotlin and Android development. I have an app that users can add a pet with an image. But, when I try to bind the image in the main activity in a RecyclerView reading ...
Henrique Branco's user avatar
0 votes
2 answers
46 views

When Logging in with fake/template email app crashes and when logging in with actual google email it doesn't crash

I have a Firebase database where I have stored the credentials through signup and Google sign-in. When I am signing in through real Google email it goes smoothly and also it doesn't show the current ...
Sarmad Ali's user avatar
0 votes
0 answers
16 views

KOTLIN: every time adding new item to recyclerview, the timer created again and and the old one still running in background

class FutureAppleAdapter(futureAppleList: ArrayList, private val activity: Activity) : RecyclerView.Adapter<FutureAppleAdapter.FutureAppleHolder>() { private var futureAppleList: ArrayList<...
Mahmoud Gewily's user avatar
0 votes
0 answers
15 views

MVVM Architecture Screen Rotation Issues

I have been trying to make a simple program where I will get data from Retrofit API calling into RecyclerView using MVVM architecture with JAVA, but I am not getting any data from Retrofit API into ...
Himanshu Satone's user avatar

1
2 3 4 5
586