Skip to content
Advertisement

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

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

Advertisement