Mark
04/26/2024, 2:40 PMStylianos Gakis
04/26/2024, 2:54 PMChrimaeon
04/26/2024, 2:59 PMChrimaeon
04/26/2024, 3:02 PM> In some cases, the action bar may be overlayed by another bar that enables contextual actions, using an ActionMode. For example, when the user selects one or more items in your activity, you can enable an action mode that offers actions specific to the selected items, with a UI that temporarily replaces the action bar. Although the UI may occupy the same space, the ActionMode APIs are distinct and independent from those for ActionBar.https://developer.android.com/reference/android/app/ActionBar
Stylianos Gakis
04/26/2024, 3:03 PMChrimaeon
04/26/2024, 3:04 PMChrimaeon
04/26/2024, 3:05 PMStylianos Gakis
04/26/2024, 3:05 PMeygraber
04/26/2024, 3:10 PMMark
04/26/2024, 3:12 PMMark
04/26/2024, 3:12 PMStylianos Gakis
04/26/2024, 3:13 PMStylianos Gakis
04/26/2024, 3:13 PMMark
04/26/2024, 3:14 PMeygraber
04/26/2024, 3:14 PMMark
04/26/2024, 3:16 PMStylianos Gakis
04/26/2024, 3:17 PMMark
04/26/2024, 3:20 PMMark
04/26/2024, 3:22 PMStylianos Gakis
04/26/2024, 3:26 PMSo each screen would be responsible for including the TopAppBar? Hmm, transitions would look terrible no?It depends, but if you want it to be persistent then yeah there is no way to do it without using alpha dependencies. If you are down to use the alphas for animation and want to play with shared element transitions then you can have each screen have their own top app bar and make it look “persistent” by making it a shared element. Video for reference: https://x.com/GakisStylianos/status/1776910738616959118
eygraber
04/26/2024, 3:28 PMMark
04/26/2024, 3:46 PMCompositionLocalProvider
so that both the top app bar and screen to communicate through that.eygraber
04/26/2024, 4:26 PM