mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
2 files changed
+9
-19
No files matched your search
@@ -32,15 +32,6 @@ public class MainActivity extends AppCompatActivity {
|
||||
NavHostFragment navHostFragment = (NavHostFragment) supportFragmentManager.findFragmentById(R.id.nav_host_fragment);
|
||||
|
||||
// Animation
|
||||
if (navHostFragment != null) {
|
||||
MaterialSharedAxis exitTransition = new MaterialSharedAxis(MaterialSharedAxis.Z, true);
|
||||
exitTransition.setDuration(500);
|
||||
navHostFragment.setExitTransition(exitTransition);
|
||||
|
||||
MaterialSharedAxis reenterTransition = new MaterialSharedAxis(MaterialSharedAxis.Z, false);
|
||||
reenterTransition.setDuration(500);
|
||||
navHostFragment.setReenterTransition(reenterTransition);
|
||||
}
|
||||
|
||||
BottomNavigationView bottomNavigationView = findViewById(R.id.bottom_nav);
|
||||
|
||||
|
||||
Reference in new issue
Block a user