android-architecture-navigation

is it normal if my image from camera in ImageView disappear after segue to another fragment using navigation component?

若如初见. 提交于 2021-01-25 01:46:46
问题 I try to capture an image using camera then the image result will be placed on my ImageView in a fragmentA like the code below, so it it NOT fetching an image path from Server then place it in ImageView using Glide Library, I take an image from camera. val image_uri = Uri.fromFile(photoFile) photoImageView.setImageURI(image_uri) and then, I move to next destination using this code (from fragmentA to fragmentB) val toFragmentB = AFragmentDirections.actionGlobalBFragment() findNavController()

Multi-module Navigation with Architecture Components

不想你离开。 提交于 2020-12-27 08:02:28
问题 So I have this structure for my modules in my current app. I haven't found any official documentation on multi-module navigation yet but I found this article regarding this so here's how my gradle files are: Feature 1 - Detail ... implementation project(":base") implementation project(":feature-2-detail") ... Feature 2 - Detail ... implementation project(":base") implementation project(":feature-1-detail") ... Feature 3 - Detail ... implementation project(":base") implementation project("

How to use Dynamic Feature module with BottomNavigationView?

寵の児 提交于 2020-12-26 08:33:24
问题 Adding dynamic feature using a navigation graph like the one below and works fine with viewPager2, or another fragment, but not with a BottomNavigationView . Layout <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:id="@+id/nav_host_container

How to use Dynamic Feature module with BottomNavigationView?

左心房为你撑大大i 提交于 2020-12-26 08:31:38
问题 Adding dynamic feature using a navigation graph like the one below and works fine with viewPager2, or another fragment, but not with a BottomNavigationView . Layout <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:id="@+id/nav_host_container

Navigation Architecture component- How to refresh a fragment?

南笙酒味 提交于 2020-12-08 05:58:31
问题 I have a ListFragment that has a recyclerview and onClick on any items opens the DetailsFragment. The details fragment contains another recyclerview on the bottom that shows "MORE ITEMS". Now onClick on any of these items should open the DetailsFragment for that particular item. Basically the fragment needs to be refreshed. In the past, I would just replace fragment using fragmentManager. How do I go about refreshing the fragment? How can I create an action that points to the same fragment?

Navigation Architecture component- How to refresh a fragment?

落花浮王杯 提交于 2020-12-08 05:57:06
问题 I have a ListFragment that has a recyclerview and onClick on any items opens the DetailsFragment. The details fragment contains another recyclerview on the bottom that shows "MORE ITEMS". Now onClick on any of these items should open the DetailsFragment for that particular item. Basically the fragment needs to be refreshed. In the past, I would just replace fragment using fragmentManager. How do I go about refreshing the fragment? How can I create an action that points to the same fragment?