Android 3.3 and its amazing Navigation feature
I hope this article will be read by persons who want to work as android developers, but they considered it is too complicated or the interface is not very friendly.
Android 3.3 comes with new features in order to make app development easier. The best thing in my opinion is the Navigation component, which make easier the view of the entire app.
Now it’s easier to handle the User Interface flow, to handle Up and Back actions properly by default, to be more creative but in the same time to respect the logic standards.
How to use it?
1. Add the dependencies in the project Gradle file:
implementation "android.arch.navigation:navigation-fragment:$nav_version" // use -ktx for Kotlin
implementation "android.arch.navigation:navigation-ui:$nav_version" // use -ktx for Kotlin
2. Create a new folder in “Res” and then add a new xml file(for resource-type select navigation).
3. Go to "Design" option- like at Layout files where you have Design and Text and start to add activities.
You can even choose the animation for the transition between the activities, a future usually of UI paid frameworks.
Just for this article, I created a simple menu, very easy to be customized.
PS- Not related to this topic, but also they even put the icon for Gradle files the nice elephant(which many years I though its a dinosaur).
source of info: