Android-recyclerview Questions
Ad
RecyclerView doesn't refresh after Firebase update
I have a recyclerview and for each item, you can start the editactivity (for result) to update your text with firebase. the problem is
How to make a RecyclerView only with documents that have in their array a number larger than X
My database is as follows:
How to get Firebase database saved data according to date?
I stored my data on firebase according to auto-created id. but now i need to get only today's added data from the database and populate a recycle
RecyclerView scrolls to bottom whenever I load the data from Firebase
Basically, whenever i load data into my recyclerview it automatically scrolls to the bottom of the recyclerview here what my function
Can someone explain this recycler view adapter for me, the class header and such
Im trying to create an app with a recyclerview, and i am trying to figure out the following code from an android example. like what is the onclick
Binding an Int-List to a view (which is already in a bound outer recycler view)
I am from the c# world and am taking my first steps in the kotlin/android environment. i am a bit spoiled by the mvvm binding in c# and
recyclerview inside nestedscrollview loading slow
I have recyclerview inside my nestedscrollview, when my recyclerview loads, i have no problem with scrolling, its very smooth but its loading very
How to change the background color of selected item in RecyclerView
I created a kotlin mobile app. in my app i use the recyclerview with adapter. i want to changing the background color of item
When I try to display an image taken from the camera on a recyclerview, the image appears multiple lines
I am working on a scavenger hunt app that displays a list of the items to photograph in a recyclerview. the list is loaded from from firebase.
OnClickListener for the Recycler View returns nothing
I'm a beginner and i'm trying to build a simple voice recorder app. i've already posted on the website concerning the access of external storage.
Ad
Firebase data to recyclerview shows Error - RecyclerView: No adapter attached in android
Hello i wantto get images from firebase into memory. when i debug my code it returns view first, then gets back to
memory usage increases when scrolling in recyclerview
I'm using recyclerview to list around 120 layouts that include 1 imagebutton,1 textview and 1 button. the initial memory usage when i first launch
Clickable on items in RecyclerView
I can't click on items in recyclerview. for example, as shown in the code, i gave tittle a click feature, but i can't click right now. in the same
In Firebase recycler adapter onBindViewHolder and onCreateViewHolder never called?
I am writing an android application where i needs to show a list of data using recycler view . i am using firebase realtime database with
Add dynamic view to specific RecyclerView.Adapter
I'm currently testing my code for situations where a recyclerview.adapter needs additional information to be displayed in it. using
My recycler view doesn't show all items that it has, how can I fix it?
I have something wrong with recyclerview. it doesn't show all items. for example, recyclerview has 12 items, but it shows like 10 with a half
Using DiffUtil and custom adapter cause Inconsistency detected
Currently i tried to use diffutil to notify the items of recyclerview in my project. meanwhile, i wrote a custom adapter which could add
How to remove values from Firebase when item is selected in recyclerview?
My app is displaying user's classes in a recylerview. when a user selects a specific class, it opens up another activity that displays the details
RecyclerView ItemDecoration - How to draw a different width divider for every viewHolder?
Currently my divider is only drawing one width:
When I set image from Url to recycleView it slows down, how can I fix it?
I have a recycleview with 50 block. the block has two imageview. i should set two images to every block from different url. and when i start my
RecyclerView - Shifting layout when creating item divider
I'm implementing a vertical divider for each of my viewholders using itemdecoration. how would i make it so the layout draws the dividers first,
Ad
Images in RecyclerView items are not shown without scrolling first
I do some request from a wordpress page api to get some content and for every content, i get a picture. and i display them on
Getting error android.view.InflateException when try to inflate custom view class android
I started to receive error: android.view.inflateexception: binary xml file line #2: binary xml file line #2: error inflating
How to use recyclerview-selection by setting the key as a string?
Using the android library androidx.recyclerview.selection, i have tried to implement multiple selection in recyclerview
Error CS0115 '...OnBindViewHolder(Object, int)': no suitable method found to override
I'm binding this library:
Recyclerview is blank when getting data from firebase
I am getting data from firebase and displaying it in a recyclerview. when i run it, nothing shows up and i don't get any errors. the debugger
How to integrate dialogflow in android apps
I want to integrate my chatbot(created by dialogflow) to my apps and i have create the xml files but i didn't find a way how to match between
Should I use broadcast receiver inside a recycler view row to update download progress of that item?
I've a recycler view which does download list items. i can think of two ways to update the state of a row at nth pos - i can
Text dissapears when image is loaded from picasso - Android
I have a recycler view which loads an image and a text. when the image is loaded from the url though picasso other elements is the recycler view
on bind view holder does not run in adapter
I have a strange problem. i want to show some products in a recyclerview. i pass a list to the adapter to show. in the constructor of
Decoding a JSON array
I have a database with a column named "items" , i put my jsonstring in that column. i want to grab data from array in a for loop but it is not
RecyclerView - How do I pass the position of onBindViewHolder to my ViewHolder class?
I am trying to setup onclicklisteners inside my viewholder class, but i need the position of each. how can i pass the position from
Ad
Nested recycler view's unable to show two independent lists
I have a vertical chat recycler-view i am trying to show multiple horizontal recycler-view's in which contain a
RecyclerView for users is empty
I'm trying to show the users from their primary key in a recyclerview using firebase realtime database but everytime i try the recyclerview is
How to manage multiple instances of mediaplayer?
I have one mediaplayer for each item in the recyclerview, each item has is own play/pause button. what i'm trying to do
Get Negative Position in RecyclerView
Why sometimes negative number returns the position in recyclerview ? for get position : holder.getadapterposition()
How can I locate two text blocks in one item in RecyclerView?
I already created recyclerview with view holder and with one list. but i need one textview on start and the second on the end. how can i do it?
App stopped when reaching the end of RecyclerView Android
The app works fine when i scroll through the cards in the recyclerview but as soon as the recyclerview comes to the last card the app crashes.i
How to make SwipeRefreshLayout work when the RecyclerView is empty
I noticed the swiperefreshlayout works when my recyclerview is filled with data but not when the
How to refresh only one section of list in recyclerview
I have complex recyclerview where i'm using adapter with 5 viewholders. i created custom sections similar to contact
How to load image from an arraylist?
I can't get the layout.xml to show all of the images, it only shows the image that i added into the
RecyclerView list item does not show when entries are made to the Room database
I am trying to rewrite an existing app in kotlin for the purpose of learning and getting used to the language. the app allows the user to enter
What is this recycler view or listview it contains four buttons?
I want to create a expandable list with four child buttons in a row. and also click working on that buttons. what can i use in android studio. i
Ad
recyclerview is flipping upside down after button is clicked
I have a recyclerview that is taking data from firebase the recyclerview had edit text inside it when i click the fab button a for loop iterate
Recycler view item decoration and view elevation
I use recycler view decoration to add margin before specific items. my items - mostly materialcardview - have an important elevation :
Admob Banner Ads in Recyclerview
I'm new to android and with the help of my friend i started making a news app and we got stuck in adding admob banner ads in recyclerview. i gone
Make image as marked when clicked on in a recyclerview
I have a horizontal recyclerview with images and text, when i click on any item , i want it to be shown as marked. i don't want to select multiple
Load user data in a new activity after selecting it from a recycler view
My application currently shows a recycle view containing the names of users registered in the system using firebase. now i need to make this
How to get the data of a recycler item in a recycler adapter from firebase onClick?
I have an app that displays cardviews in a recycler adapter. each cardview gets its data from firebase. my app shows classes a user can sign up
Items in a RecyclerView are getting the data of previous items
The application has a database with items that have columns of locations marked as integers which are displayed in a recyclerview. if any
Is it possible to animate constrained height changes of the recycler view when adding/removing items?
I would like to achieve the behavior when adding or removing the items to/from the recycler view, it changes its height according to the content
Any object that extends specified class as parameter in function
I'm building base activity where i have a method to init recyclerview. i want this method to have parameter which is an object/class
Unresolved Reference: context inside RecyclerView adapter class Kotlin
I am new in using classes in kotlin. how would i be able to solve this unresolved references: context? i tried the same code on my mainactivity.kt
Changing Recyclerview background color makes toolbar disappear - Why so
I am trying to change my recyclerview background colour and it is working fine in android oreo and android q , i tried to test my app in kitkat
Ad
How can I update item of recyclerview from dialogfragment?
In my app i get some data from server in json. then i fetch fields from json and fill my recyclerview list with custom adapter. this list is
Error inflating class android.support.v7.widget.RecyclerView when starting activity
I am trying out recyleview in android for the first time. i followed this tutorial
Setting up onItemClickListener to RecyclerView items in Android
I am trying to set up an onitemclicklistener to recyclerview items to open up a new activity when you click on an item in the recyclerview.
How to convert an array from firestore to string to display in a viewholder textview
I am puzzled as to why this is not working. i have an array (daysofweek) inside a document in firestore that i need to display in a view holder in
How to filter FirebaseRecyclerOptions with SearchBar
I am building a fragment in which i have a searchbar for users and a recyclerview to display them. my question is how to change
Implement Searchbar to firebase recyclerview to search for nodes android studio
I'm trying to implement a search bar which will search the nodes and not the child. i've been able to achieve search if a node has a child then
How to get particular child key from firebase runtime database and set data on recyclerview android
I have a datasnapshot with all keys of firebase runtime database. here is my log:- e/mydata: datasnapshot { key = income,
Change TextView in MainActvity from RecyclerAdapter using Kotlin
I want to change the text in a textview (id: dailytotaltextview) in mainactivity, when i click a button in a recyclerview. but i get an error
Previous layout get clicked from overlaped layout in Activity
I have two reletive layout. first has spinner and recyclerview and second has a imageview. second layout overlap first layout on button click. but
Handle setOnClickListener and setOnLongClickListener in Kotlin adapter
I'm trying to use setonclicklistener and setonlongclicklistener in adapter to pass the click to the activity. i've searched a lot of and i only
Android Firebase RecyclerView get Item
I have a recyclerview that populates from firebase(so it uses firebase own recycler adapter), i want to get information about the objects
Ad
Recyclerview not working when a Cardview is moved off screen
I am trying to show firebase data in a cardview. i created my adapter and everything... when i run the app it works fine until i add
Error with RecyclerView: No adapter attached; skipping layout
I can't get my code work i'm trying to get a list of my database activities. a lot of research here and none of the answers helped me
How to shift accessibility focus on RecyclerView's first element on some action?
I am new with android accessibility - talkback. i am aware of basic things like contentdescription,
How can I fix the position of buttons in a RecylerView layout? I don't want the buttons to scroll along with the image in RecyclerView
I am using a recyclerview and i want to stop scrolling of the complete layout on scrolling left or right. if it is not possible, is there
Position in recylerview changes while scrolling
Seems like position in recylerview changes while scrolling. what i want to do is like this. adapter.java
how to use item decoration in a recyclerview within a dialog with rounded corners and transparent background
I am using a dialog and in this dialog i am using a recyclerview and i am also setting a custom background drawable with rounded corners for that
Item overlap in recyclerview
I want to overlap first item on second item in recycler view . this is what i want to achieve:
Type mismatch error on custom interface call
I'm redesigning an app i've been working on with kotlin for the purpose of getting used to the language. in my recyclerview adapter, i have
How to make recyclerview hight same as tallest item when multiline text present?
I am using recyclerview where item can have multiline text.the problem arise when one item has single line text and other has multiple lines of
How to center items in a Recyclerview?
I am using recyclerview with cardview items inside it. i set the gridlayoutmanager to show 2 items at each row and i want it to be centered on
Load Geofirestore documents results into RecyclerView
I use geofirestore to find the nearest location, it worked but i need to load the documents that i got into
Ad
Error while trying to implement ClickListener in Recyclerview
I am bumbing my head on trying to implement a clicklistener in an adapter for a dialogfragment. i am getting the error on the codeline:
RecycleView doesen't show any value
My recyclerview doesn't show any value in alert dialog. i am confused and don't know where should i looking for a problem in my code. i hope some
Recyleview inside fragment is empty when comming back from other fragment
I'm working on an app with fragments (an app with only activity but multiple fragments). the problem i have is that when i go to a
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,
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
How do I handle my data model class to get Firebase Firestore data into recyclerView?
I have a firestore database like this:
Start Another Class From adapter Using Intent?
I want to use intent and want to move to another viewpager class and i am using the intent to do this like private void
Handle empty recycle viewr within fragments
I am trying to make an application where using recycle view and volley to get data from server and also i used navigation drawer and
Mess while changing a Special item color
I want to change the color of a special item in a recyclerview i used the following code for this request but when there are too many
ClassCastException custom ViewHolder cannot be cast to another Viewholder
My project should create multiple views based on user input (user send text, take a photo or record a video) similar to whatsapp chat activity,
How to use Paging library instead of ordinary adapter and recyclerview?
It will be the longest post and i won't be angry if this question will be closed or down voted, because i can't solve this problem by myself and i
Ad
Converting from RecyclerView Adapter to FirestoreRecyclerAdapter
I need to retrieve a photo from my firebase storage database and i'm using firestorerecycleradapter. i have the code on how it would be done if i
Empty RecyclerView on Switching between Fragments
I am trying to implement tablayout in a fragment which is already part of bottomnavigationview, i am facing
Get RecyclerView item click count
I am using recyclerview in my android app and i want to show ads in my app, i know how to show ads but what i want to do is get recyclerview item
Resizing and positioning RecyclerView items
I am using recyclerview to show items in grid layout. below is the image of emulator and the desire results i need to achieve. left side
RecyclerView disappears when the layout is changed
I've got a fragment with a recyclerview in it, it works fine, and only has the recyclerview. original xml that works:
Updating fragment TextView from adapter class
I am using a fragment to show a recyclerview with items. and i have a adapter class for the recyclerview. every time the user
How to redraw parent Fragment of RecyclerView when its content changes
I've built a very simple online shop. i navigate through the app by using a bottomnavigationview (there is one activity containing the navbar and
Recyclerview items text look different on different devices
I am working on an activity that has three recyclerviews. my issue is that the output is different on different devices. i am
Why my data do not show up in the recyclerview?
I have been trying to figure out why no data is transferred to the recyclerwiew. up to now still no luck. on some occasions, i even
How to use RecyclerView into another RecyclerView's adapter in Android?
In my application i have one list and into this this i have another list!(i know this is bad idea for ui but i should develop this!) for show
Fetching Shared Preferences String Value in Recyclerview Adapter
I want to fetch string value from shared preferences and show it in recylerview adapter. any help will be appreciated this is my code
Ad
GoogleMap inside the Recyclerview row
I have a requirement where i have to show some location with the map view beside them. so i am planning to put the map view inside the row of
How to scale an image with the size of a bitmap in RecylerView adapter
I have taken a picture from camera and now i want to add it in a recyclerview, but when i start to scale that bitmap with the size of
Ad
Blog Categories
Ad