I am using this code with NavigationGraph Fragment
<fragment
android:id="@+id/editProfileFragment"
android:name="com.uvm.ui.editprofile.EditProfileFragment"
android:label="FragmentFour"
tools:layout="@layout/edit_fragment_profile" >
<action
app:popExitAnim="@anim/nav_default_pop_exit_anim"
app:exitAnim="@anim/nav_default_exit_anim"
app:enterAnim="@anim/nav_default_enter_anim"
app:popEnterAnim="@anim/nav_default_pop_enter_anim"
android:id="@+id/action_editProfileFragment_to_profileFragment"
app:destination="@id/profileFragment" />
</fragment>
and then
navController.navigate(R.id.editProfileFragment);
using for navigation of fragment. its working fine and fragment replace as well but enterAnim, exitAnim etc properties not working. fragment replacing without animation. how could i resolved this?
one more query is that is NavigationGraph replace fragment or add fragment? and how could i get total count of stack?