Phạm Khánh Đoan
New member
How do I put the back button on my Android toolbar?
Answer
Add Back Button in Action Bar
Answer
Add Back Button in Action Bar
- Create action bar variable and call function getSupportActionBar() in the java/kotlin file.
- Show back button using actionBar. setDisplayHomeAsUpEnabled(true) this will enable the back button.
- Custom the back event at onOptionsItemSelected.