I’m trying to use carousel in fragment. I’m using the following library https://github.com/denzcoskun/ImageSlideshow for image slider. In Activity the image slider works, but in fragment it doesn’t work. And there was no particular error in Logcat and Log. It also confirmed that both version…
Tag: android
how to handle multiple views in RecyclerView adapter
the problem that I implement a ReyclerView with a custom ItemClickListener inside the adapter: and here is the whole code (for Adapter): so the problem that when I have overridden the ItemClickListener inside the activity to control the views inside the list-item( I will attach the code of the activity and th…
Recycler view inside full screen alert dialog does not showing items
I have a recycler view inside my full screen alert dialog, but for some reason it doesn’t display any of the items inside the ArrayList passed to the adapter. I tried: Initializing the adapter after adding the items inside the ArrayList Use notifyItemInserted instead of using notifyDataSetChanged Checki…
Any ideas on how to solve Duplicate class with android jetified?
I’m getting the following error when trying to build an android application with two third-party dependencies. Does anyone know how solve this issue? I have a minimal android project if anyone can help me solve this: https://github.com/mohammedhammoud/geidea-stario10-duplicate-class-deps-error Answer Th…
the menu is not displayed in the xml file already tried everything, nothing works
The main problem is that the menu bar is not displayed in my layout file. I’ve done a few searches but haven’t been able to find a solution or a reason as to why it is behaving this way. Any help would be appreciated. Thanks. my menu file XML my layout file Where am I doing wrong? I checked some
My activity_main.xml is not showing my contacts
In my Android Studio layout file for my MainActivity class, there is a layout that used to show my contacts but it doesn’t work anymore. This is how the layout shows: This is what shows in the emulator (note: I already have added contacts). I’m not sure if it has to do with the layout, the MainAct…
Where does one add a functionality in the MainActivity.java file for android?
I am currently learning Android Development and am confused about where to add certain functionality in the MainActivity.java file. Some context: I am designing a basic coffee app in Android using Java. I have added a checkbox for toppings in the XML file. When I click the order button on my app, I should be …
Room database reset to default values which was set by prepopulating database when clearing app from background
I have a database which is prepopulated with some tables which is working fine. I have prepopulated my db. like this the problem I am facing is that. when user adds his own data it got inserted correctly and displayed on my screen. when I move app to the background and remove it from there and reopen the appl…
Custom button with a selection
I don’t know if this has been asked before. I am going to be building a calculator for my dad. He asked me if there is any way to have customization with the buttons. I have not done any code yet. I plan on trying a few things. My research has come up with nothing. This is what I am
In Android Jetpack compose how to achieve GestureDetector.SimpleOnGestureListener…..?
I want to observe onFling Function to detect Velocityx and Velocity Means Swiping force/Velocity. In android we attach this to the android view.But donot find a way how to call this in Jetpack compose or alternative function for this in jetpack compose…? Answer Please take the Animation-in-Compose codel…