Back button on ActionBar/Toolbar | Android Studio | Kotlin
ฝัง
- เผยแพร่เมื่อ 13 ก.ย. 2024
- This tutorial is about how to add back button in ActionBar/Toolbar and go to previous activity on pressed.
We will create a button in MainActivity to move to NewActivity, and add back button in action bar of New Activity to move to previous activity(NewActivity).
Buy Me a Coffee: paypal.me/atif...
Source Code: devofandroid.bl...
Feel free to comment in case of any problem
Chanel:
/ mohammadatif1
Websites:
technifysoft.com/
devofandroid.b...
Apps/Games on PlayStore:
play.google.co...
If u like this video, Like, Comment, Subscribe to support us...
Super clara la explicacion, gracias
why did you write this line ( actionBar.setDisplayHomeAsUpEnabled(true)) twice ???
Thank you so much
you're welcome :)
THANKS
You're welcome
good! thx but for fragments how do you do ?
When I tried to run application on devices,activity which appeared first is second activity not first activity.
Hpw can I edit it
I have the same problem - did you fix it? if so, how?
Hi, when i press back, my app finish() and close
I look my error, i finish() my last activity
So is it resolved?
Yes, thanks :)
Thanks
THANKS
You are welcome