I found some similar problems but none of them solved my problem. But basically it’s exactly the same as on the other threads, that my viewPager fragment overlaps the tabLayout: Here is my source code: GroupBookFragment fragment_groupBook.xml fragment_groupBook_krippe fragment_groupBook_krippe.xml adapter_groupBook The weird thing is, whenever I delete RelativeLayout from the child fragments and used the ConstraintLayout only, the content gets
Tag: android-fragments
Use same GPS location code on multiple fragments
I want to make an application that will include five different fragments. In each fragment I need the GPS location of the device but the purpose will be different. In order not to implement FusedLocationProviderClient five times for each fragment, I was thinking of doing this once in MainActivity and sending the results to the displayed fragment. Being a beginner
I want to use denzcoskun/ImageSlideshow in fragment
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 versions 0.0.6 and 0.1.0 can be done in activity and not in fragment. How can I use
BottomSheetDialogFragment behaviour disorder when added nested fragment in Android
I’ve a BottomSheetDialogFragment inside a RecyclerView, when is clicked a button BottomSheet is showing. BottomSheetDialog expanding when scrolling down and collapsing when scroll finished on top normally. But when I place the RecyclerView inside a fragment and lay the fragment to BottomSheetDialog; BottomSheet behaviours not working on the fragment, only works RecyclerView scrolling. On the other hand the behaviours work
Android NavigationDrawer and Toolbar in all fragments, plus TabLayout into one
I would like to create an Android app that uses a navigation drawer which loads different fragments, all of which include a toolbar/appbar and one that also has a TabView with ViewPager2, something like this: So I started a new Java project with Android Studio and chose the Navigation Drawer Activity template that creates 3 different fragments. This is my
Working on Android Music Player Project, and ran into the issue where my app crashes on start up:
I am trying to add a player using Sliding Up Panel but the app crashes on startup. If you want to see my full code; https://github.com/Kailash8460/poptune.git MainActivity.java activity_main.xml MainFragment.java Here there is no issue on SongsFragment, ArtistFragment and AlbumFragment files, because I have run this application before adding the sliding up panel and that was successfully run but after adding
Why my bookmarked words doesn’t saved to sqlite database if i want to add them from another fragment?
The main problem is that when i add bookmark codes from direct recyclerview it works perfectly fine but when i add those codes to another fragment it just only show a toast that bookmark is added or deleted but that bookmarked word doesn’t show in favorite list. Here is my Database codes My RecyclerView codes My Detalis Fragment codes My
Fragment Inside a Fragment Not Working with ScrollView
When I am Using Fragment Inside a Fragment with ScrollView It is not working. In My Case the FirstFragment is fine. the fragment that is inside is not showing in full screen and lot of contents in BooksFragment are disappear this is My FirstFragment ‘s XML : </androidx.constraintlayout.widget.ConstraintLayout> This is My FirstFragment ‘s JAVA : This is My BooksFragment’s Xml:
How to open URL from ListView inside fragment?
Wanna make to open website when I click it from ListView. I made it with some youtube videos. Mixed up those youtube videos and of course, It’s not working. What should fix or add more code? I put my every codes to understand it. Need you guys help a lot. Two upper codes are for layout. And last 3 codes
How to ask for permissions in an onClick event from a button inside a dialog fragment
As soon as my app opens up for the first time, a dialog fragment should come up (in the MainActivity), explaining why some permissions are needed, and there is an Accept button at the end. I have set an onClick listener to this button, where I want to show the default popup to ask for the permissions. To do that,