Top "Android-jetpack" questions

Android Jetpack is a Google's set of libraries, tools and architectural guidance to build Android apps and provides common infrastructure code.

Dynamic ActionBar title from a Fragment using AndroidX Navigation

I am using the new Navigation component from Android Jetpack. The root Activity setup is quite simple: override fun onCreate(…

android android-jetpack android-architecture-navigation
Android P visibilityawareimagebutton.setVisibility can only be called from the same library group

I'm trying to use the new Android P FloatingActionButton that's part of the com.google.android.material.floatingactionbutton.FloatingActionButton and …

android kotlin android-9.0-pie android-jetpack
Is it possible to set startDestination conditionally using Android Navigation Architecture Component(Android Jetpack)?

I am using Navigation from Android Jetpack to navigate between screens. Now I want to set startDestination dynamically. I have …

android android-jetpack android-architecture-navigation
New navigation component from arch with nested navigation graph

I have one case and wish to implement it by arch navigation component. For example I have 2 Nav Graphs (main …

android android-architecture-components android-navigation android-jetpack
Safeargs library doesnt generate direction class

I use navigation library and safeargs for passing data. I define argument to fragment like that. <fragment android:id="@+…

kotlin android-navigation android-jetpack
How to get a result from fragment using Navigation Architecture Component?

Let's say that we have two fragments: MainFragment and SelectionFragment. The second one is build for selecting some object, e.…

android android-architecture-components android-jetpack android-architecture-navigation
Action is unknown to this NavController

I'm providing data transfer between fragments in two different ways, first is working normal, while a safe data type cause …

java android android-architecture-components android-navigation android-jetpack
how to instantiate ViewModel In AndroidX?

I want to initialize ViewModel in Activity using androidx library I have tried what documentation says but it is not …

android kotlin viewmodel android-jetpack kotlin-android-extensions
An Annotation argument must be a compile time constant

i have seen this question. Similar error.But in my case it is different. While working with Room i was …

android kotlin android-room android-architecture-components android-jetpack
Fragments destroyed / recreated with Jetpack's Android Navigation components

I'm trying to implement Navigation with Jetpack's architecture components in my existing app. I have a single activity app where …

android android-fragments android-jetpack android-architecture-navigation android-jetpack-navigation