Questions tagged [android-recyclerview]

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

0
votes
0answers
7 views

Android: How to add every item that i've searched for to RecyclerView? (TextChangeListener and Room Database)

I want to search in database using EditText, and then add items to RecylerView. I have problem with adding several items, because of TextChangedListener and adapter.notifyDataSetChanged. I can add ...
0
votes
0answers
21 views

Sorting Firebase Recyclerview after a button click

I have a recyclerview that contains data, the data was random at first, then I want to sort the data depends on what button the user clicks. I'm using the orderByChild() method, but I don't know how ...
0
votes
0answers
12 views

Creating chatapp using FirebaseRecyclerPagination

I'am trying to create a chat app using Firebase as database. I want to implement FirebaseRecyclerPagination because I don't want to load all the chat right away I want it to load by a certain number ...
0
votes
1answer
25 views

Is auto-clicking of buttons in recycle view a bug in android development?

For my android project, I have used the recycle view in a layout which has 10+ view-holders each has a button and a text. Whenever I click the button in the first item or view-holder, the 8th item is ...
0
votes
0answers
15 views

How to: Implement Onclick Listener to recycler-view calling info from MySQL via retroFit

I have a recycler-view successfulyl set up which pulls info from MYSQL server via RetroFit. The final stage is to implement an on-click listener so when the user clicks on the recycler-view card it ...
0
votes
0answers
32 views

How to make a RecylerView like WhatsApp Chat activity?

I building an app which should have a layout almost identical to the one used in WhatsApp in the chat activity. it should have a text input, camera & video recording option. Items should be ...
0
votes
1answer
17 views

Is there any way to put recyclerview and linearlayout in swiperefreshlayout?

If I put only RecyclerView into SwipeRefreshLayout I have buttons above RecyclerView. And if I put all into SwipeRefresh I have buttons disappear <android.support.v4.widget.SwipeRefreshLayout ...
0
votes
1answer
16 views

Catch Animation Event of SmoothScroll in RecyclerView [Android]

I have a GridLayout RecyclerView with a PageSnapHelper attached that essentially acts like a Vertical Linear RecyclerView (I inherited the code, not sure why this was done). The goal is to highlight ...
0
votes
2answers
36 views

Android Picasso Recyclerview Image downloading slow

I have endless recyclerview that almost mimics Instagram list/feeds. Where Image is loading into full screen width Imageview. I am using Picasso to load images. Here is my code: public class ...
0
votes
0answers
19 views

RecyclerView -update LayoutInflater with different layout (or change binded layout's parameters)

I'm creating image gallery using recyclerView with gridLayoutManager and linearLayoutManager with a possibility to change item's size after user's gesture(pinch in that case).However I have no idea ...
0
votes
0answers
22 views

Debugging Help: Null pointer in recycler-view

I am attempting to take data received from mySQL database and display it in a recycler view with an onclicklistener. The recycler view just shows the title and when the user clicks on the view it ...
0
votes
0answers
11 views

bounce effect on dragging not working in recyclerview android

I have a recyclerview which scrolls horizontally. I have disabled scrolling the recyclerview when user click on an item. Now if the user try to scroll the list when its lock I want to show a bounce ...
3
votes
1answer
27 views

How can I keep the soft keyboard up when switching to the next EditText in a recycler view?

The problem I am facing is when the user clicks the next button on the keyboard, the program should focus onto the next EditText on the screen and keep the keyboard open until there are no more ...
0
votes
2answers
26 views

recycler view item decoration, getItemOffsets is only called on the last added item

I have an item decoration attached to my recycler view. It should add a large amount of padding on only the last item. This works fine. However, as I add new items, getItemOffsets is called only for ...
0
votes
0answers
9 views

Recyclerview dragging stops if i move it one line

Im creating a Tasklist for an app and i want to make them drag and droppable. I*ve tried it multiple times but everytime i drag an item by just one line the dragging automatically stops. here's my ...
0
votes
3answers
29 views

How to get data from Firebase and display it in a recyclerview? [duplicate]

I develop a chat app. I try to get data from firebase database and display it in a recyclerview, but it doesn't work. I searched it on Google and I tried a lot of options, but it displays nothing. ...
0
votes
0answers
15 views

android.widget.Scroller add fast scroll behaviour

How can I enable fast scroll behaviour for android.widget.Scroller? I have android.widget.Scroller working fine but I want to achieve fast scrolling behavior like in recycle view. I am not using ...
0
votes
0answers
13 views

How can I handle an event on editText and image view in adapter

I'm setting a list from firestore in a recyclerView with an adapter to handle the item. My objective is to update the information of the list. When the user click on the name in the listView it will ...
1
vote
3answers
34 views

How to send item position Adapter to fragment and fragment to activity

I have problem in my code i want first Adapter click item position in fragment and then this position want from fragment to MainActivity i have implement some design in my main_activity.xml so i want ...
-1
votes
0answers
23 views

Resize RecyclerView after changing item's visibility

I use data-binding very much. I tried to implement search in RecyclerView list by changing visibility of items based on user's query. I thought if item does not match user's query, I'll hide that ...
0
votes
1answer
26 views

How to load image with picasso in android for an item before item appears?

I have a recycler view that each item of it has an image that picasso loads that image. When I scroll the recycler view before picasso loads the image, I show a placeholder but in most of the cases, ...
0
votes
0answers
20 views

Retrieving an image url from sqlite onClick in a RecyclerView list

I need to retrieve data of a clicked RecyclerView item from SQLite, and show it in a new Fragment. That data includes an image URL, which also needs to be presented in that Fragment. Couldn't find ...
1
vote
0answers
36 views

Parsing things from API's xml to recycler view

How can I take items from this xml inside <elem></elem> and use it in RecyclerView? How can I modify my parse to take all things inside this one and what should I do with them? Add it to ...
0
votes
0answers
34 views

SearchView in Not Showing Anything Using SQLite [duplicate]

I am working on android studio application and I have implement the searchview on myviewpager class; With searchview I have to show data as I write anything or letter in the searchview; It brings that ...
0
votes
1answer
48 views

how to show a bounce effect when scrolling is disabled in a recyclerview?

I have a recyclerview which scrolls horizontally. I have disabled scrolling the recyclerview when user click on an item. Now if the user try to scroll the list when its lock I want to show a bounce ...
0
votes
0answers
33 views

how to properly make a vertical recycler view inside a scroll view that will not slow the fragment to appear?

I want to make UI like this: as you can see, there is a vertical recycler view there. that recycler view is inside scroll view. so I want to make the screen can be scrolled down as much as item data ...
-2
votes
0answers
20 views

No data display at cardview, no data go in for the adapter with use asynctask [on hold]

the recyclerview.setadapter(madapter); is not hit when debug app enter image description here enter image description here
0
votes
1answer
30 views

Getting EditTexts Values From RecyclerView

I am building app which user is required fill some data in order to post something, so a fragment consists of edit texts ,radio buttons and spinner along with recyclerview which dynamically renders a ...
0
votes
3answers
26 views

Adding an onClick to a part of a RecyclerView item

I've been working on an online shop type of application, and I've hit a bump: I've been tasked to add a favorites system, but I can't figure out how to enable pressing a button that's part of the ...
0
votes
1answer
17 views

How to update recyclerview items dynamically at specific position from service class?

I'm having a animation item in recycler view here i'm trying set it's visiblity to visible and invisible from service for that i have successfully created methods and recycler view is getting ...
0
votes
3answers
22 views

Update TextView in Fragment when RecyclerView's data changes

In my Fragment, I have 2 views. A Textview and a RecyclerView. The Textview essentially displays the current size of the RecyclerView. So, when a row is removed in the adapter class, I need to update ...
1
vote
1answer
37 views

EditText losing its content on RecyclerView. How to restore its content?

I have a EditText in RecyclerView. When I edit the content of a EditText and scroll up/down, that same content is displayed in another line. Also, If I return to the same position, the EditText is ...
0
votes
0answers
8 views

updating recycler view adapter with diff utils, isnt working correctly when adding an item

I'm using diff utils to update my recycler view (live data from view model returns a list), I have an item decoration that adds a large amount of padding to the last element in the list but as diff ...
0
votes
1answer
36 views

How to set RecyclerView OnClickListener in Fragments?

I'm trying to start a new Fragment that shows the details of the item that was clicked on in the RecyclerView. I've tried this in Activities and it worked perfectly but I'm trying to convert it to use ...
0
votes
1answer
17 views

How to set a case inside onClick method to get RecyclerView items position

I have a view with a button and a recyclerview. In the adapter of the recyclerview I have a listener for OnClick and OnLongClick events, and the methods in my MainActivity. I have no problems getting ...
0
votes
0answers
18 views

Data not loading on application launch using firebaserecycleradapter in a fragment

So I am working on an application which displays to the user the list of projects he is working on. I am using firebase firestore and firestorerecycleradapter to display the list in a recyclerview. ...
0
votes
2answers
26 views

How to insert view between the items of recycler view?

I need to show embeded slider (marked green) inside of the list of recyclerview items, like on image below: I am thinking that I need to change something in my recyclerview layout manager, but I have ...
0
votes
0answers
11 views

How to display data from firebase in recyclerview? [duplicate]

I develop a chat app. I try to get data from firebase database in a recyclerview, but it shows nothing. What am I doing wrong? This is the main activity: sToolbar = findViewById(R.id.sToolbar); ...
0
votes
2answers
29 views

How to assign id to a certain item of recyclerView android?

I have one visible problem in my application. I found api and train to work with retrofit library. Via this api I get the list of jobs from one site and represent them at recyclerview which is based ...
0
votes
1answer
39 views

Focus/Scroll recyclerView to last Item

My app has main, chat style, activity made of a RecycleView which is filled by a list. the recycle should scroll/focus to the last item of the list after the user insert a new item (text input, photo/...
0
votes
0answers
13 views

Recyclerview onscrolllistener not working when I am switching a fragment in view_pager

I am adding Recyclerview onscrolllistener but its not working when I am switching my fragment. or I opening my previous fragment page. Please help me to resolve this error.. Thanks in advance. ...
1
vote
0answers
19 views

Can Pointer Icons be set on RecyclerView just like other Views?

I have set pointer icons on all the buttons and constraint layouts that I have used but I don't know how to set pointer icons on recyclerview items. how do I implement mouse pointer icons on ...
-2
votes
0answers
33 views

How to send data from ArrayList and create recyclerView item, which will store this ArrayList data?

My app can be described as something like questioner creator. App user can manually make questions My app has an Activity(Activity1) with a few edit text fields. After filling editTexts, info from ...
0
votes
0answers
22 views

RecyclerView DiffUtil.dispatchUpdateTo Completed Notification

I'm currently using the DiffUtil class to calculate and dispatch updates to my adapter using a ListUpdateCallback as follows: inner class NotificationCallback(private val onInsert: () -> Unit) :...
0
votes
0answers
43 views

How to increase RecyclerView performance?

When I use a "heavy" views in RecyclerView, it has lagged when I scrolling and shows strange artifacts like this animation. When I use a "light" views in RecyclerView, it works correctly. That happens ...
-2
votes
0answers
22 views

notifyItemRemoved not updating the list

Using MVVM design pattern in android and showing mutlicolors cards using Recyclerview adapter. When i try to remove a card from the code. It is working. eventsDataModelList.remove(position); ...
0
votes
0answers
35 views

Update the recycler view items after the item is added without refreshing the page

I have a page where the user can add data and below it displays the data that is added in recycler view. I want to refresh the data as soon as the user clicks on the add button the below data ...
0
votes
2answers
41 views

How to filter data in a recycler view

I am fetching data from a server in a recycler view.In a layout file I have an EditText field on top and below it I have a recycler view. I want to filter data based on what I have written in EditText ...
0
votes
0answers
30 views

Is there any library from which we can we get marquee effect in recyclerview(e.g hotstar vip page scrolling images)?

Blockquote i am trying to achieve auto scrolling infinite recyclerview like hotstar have it in hotstar VIP subscription page. i have tried given code. For auto scrolling recycler:- binding....
0
votes
0answers
35 views

How to implement pan and zoom on the entire RecyclerView

I have my own custom view that extends RecyclerView and I use it to render a document with multiple pages. Each item in the adapter is a page. I want to add the ability to zoom and pan the entire ...