11 questions
3
votes
0
answers
99
views
Fragments, Predictive back animation customization
To implement Predictive Back feature in an app, that uses Fragments and Navigation Component, there are 2 options:
Option A: Use Transition API.
Just set animator animations directly into nav_graph ...
0
votes
0
answers
65
views
How do I prevent an activity from finishing on back gesture, minimizing it instead, while keeping the predictive back animation?
I want to minimize an activity instead of finishing it. I also want to keep the predictive back animation. Minimizing used to be easy enough with overriding onBackPressed, however with the predictive ...
0
votes
1
answer
266
views
How to enable predictive back gesture animation between composable screens when using Compose Destinations?
I'm using Compose Destinations for navigation between composable screens. Is it possible to enable predictive back gesture animations between screens using Compose Destinations?
0
votes
1
answer
139
views
Predictive back gets stuck if an edit text has focus during the back gesture
I'm currently trying to implement predictive back in my app and I ran into a bug.
This appears to be an Android 14 or Samsung OS bug. The conditions of the bug appears to be:
predictive back is ...
1
vote
0
answers
303
views
Predictive back issue when DialogFragment navigates to a Fragment
I am in the middle of adding full support for predictive back to my app however I encountered a weird bug while doing so.
In one area of my app I have a Fragment FragA that shows a DialogFragment ...
1
vote
0
answers
254
views
Android Predictive back gesture animation with jetpack navigation: IllegalArgumentException when selecting an item after cancelled Back Progress
This is the simplified version of my implementation of predictive back animation using jetpack navigation lib.
MainActivity:
class MainActivity : AppCompatActivity() {
private lateinit var ...
3
votes
1
answer
363
views
Navigation component, Fragments and predictive back: some clarification
I'm trying to implement the predictive back gesture in an app based over fragments and navigation component. While it works out of the box for bottom sheets and activities, it doesn't work with ...
1
vote
2
answers
921
views
Android 14 predictive back background color mismatch
I am implementing predictive back in my android app and am facing a problem. In the left screenshot below, the redder color is my android:windowBackground and I am in the process of doing a predictive ...
1
vote
1
answer
2k
views
Android 14 Predictive Back crashes with setVisibility=true while transition is not collecting or finishing ActivityRecord
Sometimes during back transition using back gesture on Android 14 with predictive back enabled, my app is crashing with the following crash log:
ActivityTaskManager system_server ...
2
votes
2
answers
1k
views
Android 14 predictive back gesture - blinking white background color
According to the docs, we simply should update 'androidx.activity:activity' version in the build.gradle and add android:enableOnBackInvokedCallback="true" to the Manifest to make predictive ...
1
vote
2
answers
1k
views
How to disable Predictive Back gesture while swipping left or right in Xamarin Forms Android?
In my Xamarin Forms Android application I'm trying to disable this Predictive back gesture while we swipe left or right from edge of the screen, the app will go back or forward and it messes with the ...