Android actionBar and androidactionbar
Today, when I was working on a company project, I used a new project,
GetActionBar (). setDisplayHomeAsUpEnabled (true );
This amazing thing is that a small arrow to the left appears on the actionBar.
Pressing it is equivalent to back, and the corresponding event is ActionBar. DISPLAY_HOME_AS_UP.
In the past, projects were mixed in 2.0, which is false by default after 4.0.
You must manually add getActionBar (). setDisplayHomeAsUpEnabled (true) to oncreate.
In general, the relationship between father and son activity is used.
Press this key to return to the parent.
ActionBar details, leave remarks: http://blog.csdn.net/liu149339750/article/details/8282471
How can I customize the display position of ActionBar in Android development?
The actionbar position is fixed.
How does Android make a return activity button on the Actionbar?
Click finish in the event to delete this activity. The previous activity will naturally come out,
Another silly way is to upload an action when A jumps to B, and directly jump to this action when B returns.