Here is the top answer How to add “UP” back button in fragment You can use app:navigationIcon=”?attr/homeAsUpIndicator” for that back navigation icon. For navigation:
Complete source to Create a Custom Button using XML ShapeDrawables using Android activity_main.xml button_default.xml button_disabled.xml button_pressed.xml custom_button.xml MainActivity.java styles.xml