Relative Content

Tag Archive for androidandroid-jetpack-compose

How to update a parent Composable to show a progress in an onboarding process

I would like to implement an onboarding process using a parent Composable showing the current step (e.g. “1 from 5”). The parent knowns nothing about the children, triggering the progress updates (I can not change the existing app architecture). The progress update also has to work on back navigation (e.g. from step 3 to step 2).

Is there a way to detect a HomeButton Press for Versions up of Tiramisu

I’m currently creating a custom home launcher and i have sub pages (for example the app drawer), if i want to leave from there back the the main home screen (on most launchers different pages), the most intuitive way of doing so is the home button. How do I detect the user pressing this?
(!) I don’t want to override it’s behaviour, I want to detect the press of it.