Near Stream there is a small arrow that takes u to the previous activity when clicked
I want to make the same in my app, I used
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
do I need to use onOptionsItemSelected
?
The arrow is appearing, but nothing happens once clicked.
And I have two Items in my menu, they appear everywhere where I call OnCreateOptionsMenu
this is my item code where I want to to appear only in my last activity, How ?
<item
android:id="@+id/bAbout"
android:title="About"
android:showAsAction="always"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With