15 new features in Android 14 for developers…
<h1>1. Predictive Back Gesture in action</h1>
<p>Already in Android 13, we were warned that in the next version of Android, we should expect updates of the <em>Back Gesture</em> and <em>Predictive Back Gesture</em> with animation in the form of a preview screen where we will move. Animation for that preview is still not working. If you want it to work, you should activate it in the developer’s settings.</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:600/1*uztUlmDhVjQQUMxo2if5Pg.gif" style="height:1300px; width:600px" /></p>
<p>Also, the ability to create personal transition animations inside the application was added. For that, a method <a href="https://developer.android.com/reference/kotlin/androidx/activity/OnBackPressedCallback#handleOnBackProgressed(androidx.activity.BackEventCompat)" rel="noopener ugc nofollow" target="_blank">handleOnBackProgressed()</a> was added in <a href="https://developer.android.com/reference/kotlin/androidx/activity/OnBackPressedCallback" rel="noopener ugc nofollow" target="_blank">OnBackPressedCallback</a>. This method is called with the progress of the <em>Back Gesture</em>, as well as the <a href="https://developer.android.com/reference/kotlin/androidx/activity/OnBackPressedCallback#handleOnBackPressed()" rel="noopener ugc nofollow" target="_blank">handleOnBackPressed()</a> and <a href="https://developer.android.com/reference/kotlin/androidx/activity/OnBackPressedCallback#handleOnBackCancelled()" rel="noopener ugc nofollow" target="_blank">handleOnBackCancelled()</a> methods, which are called at the end of the <em>Back Gesture’s</em> animation and its cancellation, respectively. On the screen, you can see an example of implementing your custom animation using the Jetpack AppCompat 1.8.0 library.</p>
<p><a href="https://medium.com/@sagar.ajudiya/whats-new-in-android-14-for-developers-53f4466f21c3"><strong>Learn More</strong></a></p>