Category "android-fragments"

Last navigation gets resubmitted

Okay, so I'm not sure, what exactly triggers that. But I have a suspicion. Sadly it will get hard to make a MWE, since it is a very complex app with lots of fra

Can I change topLevelDestinationIds from AppBarConfiguration?

I have CountriesFragment and this fragment is launching first (start destination) I hid the back button using this code NavigationUI.setupWithNavController(mate

How to resolve the error "LifecycleOwners must call register before they are STARTED"

I am using registerForActivityResult for google sign in implementation in my development. Everything was working fine until I upgraded my fragment dependency t

Currently doing the fragments and navigation pathway of the android kotlin course and having some troubles with the letter list fragment

When I populate the nav_graph.xml with the two fragments the words fragment displays fine but the letters fragment just displays a default item list of 1 to 9.

Should I turn my Activities into Fragments?

I went to the YouTube Academy for Kotlin Android Development and created a semi complex app with Google FireBase, I have hit a roadblock in some code using an E

How to prevent bottom sheet from animating corner shape to square?

I've designed my bottom sheet like this <style name="ShapeAppearanceOverlay.BottomSheet" parent=""> <item name="cornerSize">30dp</item>

Android Programming - Navigation Drawer Multiple Instances of Same Fragment

I am trying to make a weather app where each location that the user adds, it will be shown in the Navigation Drawer. I would like to have multiple items in the

How to clear navigation Stack after navigating to another fragment in Android

I am using The new Navigation Architecture Component in android and I am stuck in clearing the navigation stack after moving to a new fragment. Example: I am

Fragment navigation and menu. How to remove latest fragment? Check description

I was incapable of finding an answer for the following context: Let's say we have a menu and a nav graph instanced in the main activity. We have 3 fragment: Hom

BottomNavigationView is not show though layout preview shows

I intended to show BottomBar with three menus (dedicated fragments for each). The BottomBar doesn't show up in the UI, though the same previews perfectly below

Change MPPieChart Legend Text Color based on choosed theme

Scenario: I made an app that switches programmatically Theme between light and dark mode.It's based on fragment and I set every views via XML calling "?attr/myt

How can I change CardViews background color based on user's option in Kotlin?

I have 2 fragment pages. The first of these pages is the page where the user is given options. The other page is the page that is displayed according to the opt

Why the fragment only shows on create and after tab switch?

So, in the current state, I can see the fragment inside, showing when I boot up the virtual phone; however, as soon as I switch to different fragment, from my d

Create BaseFragment and extend this Fragment in ChildFragment

I don't know whether this is repeated question or not, But I didn't found any solution. The problem is, there is a screen which has similar views in all the sc

How to hide bottom nav bar in fragment

I have bottom nav bar define in the Main activity. I have three fragments linked with BottomNavigation bar in fragments I have recycler view so I want to hide B

Floating Action Button is duplicated in fragment

In a project, there was a FloatingActionButton in one of the activities. I attempted to add a Fragment in that activity and move the FAB inside that Fragment. E

how implement search view from menu in fragments?

I am trying to implement search in my fragment but its not working. no results shown up with search text. Also all the items are gone from the view when search

BottomNavigationView with navigation component - selected fragment not showing

I'm currently migrating to android navigation component and cannot get the fragment transitions to work when a new item is being selected in the BottomNavigatio

google map fragment set on click Listener dose not work

i want create a google map fragment in a full screen project and then when i touch google map fragment call some function but when i touch google map fragment s

Change recyclerview rows after being created

I have a viewPager which contains two fragments. First for showing list of products and another one for showing list of selected products. In the second fragmen