I try to create a Shopping/ToDoList application where the items are contained in SharedPreferences. When I start the application, and I choose what I want to execute, Shopping list part or ToDoList part, then the java code fetches the existing data from the SharedPreferences and give to the RecycleView to create and show a list. It seems works totally correct,
Tag: android-recyclerview
AndroidRuntime: FATAL EXCEPTION: main Caused by: java.lang.RuntimeException
https://github.com/ThalesCaruso/Lista-de-Mercado enter image description here enter image description here Watched a lot of youtube tutorials but didnt work Answer You’re using As per the Room Declaring Dependencies guide, you need to be using annotationProcessor for Java projects, not implementation:
why my items are not showing in wishlist in android studio
I am working on an application where I want to add items in the wishlist section. I have some data which I am fetching from the firestore in recyclerview on each item I have a heart icon when someone clicks on that icon that particular item should be added to the wishlist section. I am new to android please guide
Incorrect displaying items in RecyclerView while scrolling
Could you please assist in following issue: I have incorrect displaying items in my messenger app. My layout for items: My layout for dialog activity: Class DialogActivity Adapter class In this place I check user name. If user name is my name then I set message and visible to holder.messageMyMessage. Else I set message and visible to holder.messageYourMessage. But sometimes
Firestore – RecycleView – Image holder
I don’t know how to write a holder for an image. I already have 2 texts set, but I don’t know what the holder for the image should look like. Can you help me tell what the writeup for the image should look like in order for it to appear correctly? My code: Answer You can use a library like
Pass data from recyclerView to another in fragment
I want to pass data from recyclerview to another both in fragment, first adapter for display item, and second adapter for basket fragment that want to put selected item in. Adapter I want to take data from: this is adapter for basket fragment that I want to put the data in Now, what I can use to pass data between
recycler view hides message upward when keyboard is open / how to keep recycler View from scrolling when keyboard is on
I am making chat app but when I send message recycler view does not show first 2 messages because it is up I want something like whatsapp if I open keyboard recycler view is shown from start I tried following but it sticks chats to end even after I close keyboard: . following is my code: } following is my
recyclerViewAdapter.getItemCount() returning 0 even when it has objects inside?
I’m building a Fragment with a RecyclerView which displays notices retrieved from my database. Everything works fine, except for this line of code: Problem: recyclerViewAdapter.getItemCount() This statement returns 0 even if the RecyclerViewAdapter has elements present. The full scenario is whenever the fragment loads, the Toast with the appropriate message pops up, but then after a slight delay, the first
How to user RecyclerView inside of NavigationDrawer
I want to use a RecyclerView inside of a NavigationDrawer but I’m not sure how to do it. This is what i want to do: I want to have a List inside the Navigation Drawer where you can add entries with a Button/Textfield and delete them by swiping. If there’s a better way to do this then with NavigationDrawer and
RecyclerView Search FIlter results are below the Toolbar
This might be a stupid question that I’ve tried very hard to find the answer with no success. I have a fragment that contains a recyclerView. The fragment is in the mainActivity which contains my custom toolbar and a bottonNavigationMenu. I’ve also made a search filter view for the recyclerView that works. The problem is this: When I hit on