I have a horizontal recycler view. There are some buttons. I will provide my code below. So the problem is that when I click on a button, does not happen anything. It just thinks that I did not click to it. I have another recycler view, but vertical and the code is pretty similar, but the second one works. I
Tag: android-recyclerview
recyclerview uploads items multiple time on refresh
I have implemented a recyclerview, where I want to show the groups that have been created in the app. Right now I am refreshing the recyclerview using the swipeRefreshLayout, but everytime I refresh the recyclerview, it prints out the same group multiple times according to how many times I refresh it. Can anyone help me solve this problem? Below is
How to show a RecyclerView (with data fetched from API) as a list item in another RecyclerView in android?
Want to achieve: a chatbot that returns weather forecast as a RecyclerView inside that chat item (which is in the outer RecyclerView) when the user inputs the word ‘weather’. I want the weather info to be the actual chat item. I have MessageAdapter and WeatherAdapter which deal with messages and weather forecast info respectively and I have difficulty handling the
Getting onSwipe event from a nested RecyclerView to the parent Fragment
I’m developping an app in which my main activity hosts different fragments via a SectionsPageAdapter. My question is about one of those fragments that roughtly looks like the image bellow: My innerRecyclers lists differents items that I want to be able to remove by swiping and make the user validate the deletion via a DialogFragment. I was able to implement
Why is the RecyclerView inflating over the ToolBar?
I’m having an issue with my app when I inflate an recyclerview. Inside the recyclerview, some cards are inflated and when it comes out to the screen, the toolbar disappears and the settings button can’t be used. Using the latest SDK and libraries versions. activity_main.xml: linha.xml -> here I get the cardview which I use to show the items on
Android RecyclerView First and Last Item click works after Double click on First load
I have a recycerview. it has item click event in onCreateViewHolder method and an imageview click event on onBindViewHolder method. Surprisingly while recyclerview loads for the first time first and last item click works after second click then after it works on every click if it is not scrolled.Again when i scroll the recyclerview then same happen for the first
I can’t get the text from edittext in recycler view java by using recycler view adapter with .get(position)
I am new to java programming. I am trying to create a chatting application and now i want to get the the text in a specific RecyclerView layout EditText. I have used the below code as the recycler view adapter code. But it is showing error on getting the mImagenames.get(position) in line 60. I need mImageNames.get(position) work correctly. Any help
Why is my recyclerview greyed out? Anyone?
Am using the right dependencies and as you can see my xml is properly arranged, someone hep out Answer That can happen due to various reasons 1. Dependency issue: Check your app’s build.gradle if you have one of the dependencies. if not, add them and rebuild the project. If your project is in appcompat: implementation ‘com.android.support:recyclerview-v7:28.0.0’ If your project is
How to prevent activity to restart after changing its orientation
I’m new to android development using KOTLIN, i have activity that contain fragments like the image below (Image 1), the problem is whenever i try to change the orientation from potrait to landscape, the activity return to the previous activity (Like restart it). I’ve tried to add android:configChanges=”orientation|screenSize|keyboardHidden” to my AndroidManifest.xml, it works perfectly but some says that it’s not
Showing xml for correct view
When a user logs in to my app, they can either click the view students button or daily grading button. The view students will display a student’s image and their name. The daily grading will display …