简体   繁体   中英

Back button in Android like in Gmail app?

In Android ICS and JellyBean, the native Gmail app has a Back button "<" right by the Gmail icon when not in the startscreen/inbox. Is there a way I could integrate this in my app?

Yes. It's part of the ActionBar component. Take a look at the Navigating up section.

You can use Android Action bar if your target is API Level 11 and higher.
Otherwise I recommend you to use the ActionBarSherlock which is compatible to most of the devices in the market.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM