动作条后退按钮和Android后退按钮的区别 [英] Difference between actionBar back button and android back button

查看:176
本文介绍了动作条后退按钮和Android后退按钮的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么动作条之间的区别后退按钮和Android后退按钮?因为它似乎在ActionBar后退按钮至极被调用:

What is the difference between actionBar back button and android back button? Because it's seems that the ActionBar back button wich is called with:

ActionBar actionBar = getSupportActionBar();
    actionBar.setDisplayHomeAsUpEnabled(true);

时的工作方式更好?
例如:当我preSS在ActionBar后退按钮动画是有的,但如果我preSS默认后退按钮他们不是

is works way better... example: when I press the ActionBar back button the animations are there, but if I press the default back button they aren't.

我可以从preference活动更改主题:如果我回去的动作条后退按钮的颜色瞬间变,但与德默认我必须重新启动应用程序....

I can change theme from a preference activity: If I go back with the ActionBar back button the colors instantly changed, but with de default i have to restart the app....

我怎样才能使我的dafault后退按钮行为类似于acitonbar吗?

how can I make my dafault back button to behave like the acitonbar one?

推荐答案

在ActionBar后退按钮,实际上是一个向上按钮,它应该带你到你的应用程序的导航层次更高的水平。后退按钮需要你,你看最后的地方。

The ActionBar "back" button is actually an "Up" button and it should take you to higher level on your app's navigation hierarchy. The back button takes you to the last place you were looking at.

另一个伟大的提示,以更好地undertand这是向上按钮应始终把您在您的应用程序的地方,而后退按钮可能会带你到另一个应用程序。

Another great tip to better undertand this is that the "Up" button should always take you to a place on your app, while the back button might take you to another app.

您可能需要阅读这篇文章,以更好地理解上的差异:的http://开发商.android.com /设计/模式/ navigation.html

You might want to read this article to better understand the difference: http://developer.android.com/design/patterns/navigation.html

这篇关于动作条后退按钮和Android后退按钮的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆