android - 4个Android按钮是标准的吗?前任。后退键、菜单键

标签 android

Android 手机配备的物理按钮是标准的吗?特别是返回、菜单、主页和搜索按钮?在我的应用程序中,我假设每个人都有一个后退按钮,所以我不会费心放置一个“软”按钮来返回上一个屏幕。

由于某种原因,我找不到任何官方文档。

http://www.androphones.com/2010-android-phones.php似乎所有手机都至少有返回、菜单和主页按钮。

我应该假设所有手机都有一个后退按钮,还是我必须始终在我的应用中编写一个代码?

最佳答案

CDD 描述了兼容的要求:

http://source.android.com/compatibility/index.html

(参见左侧的“当前 CDD”)

在这种情况下:

7.2.3。导航键

The Home, Menu and Back functions are essential to the Android navigation paradigm. Device implementations MUST make these functions available to the user at all times when running applications. These functions MAY be implemented via dedicated physical buttons (such as mechanical or capacitive touch buttons), or MAY be implemented using dedicated software keys, gestures, touch panel, etc.Android 4.1 supports both implementations

关于android - 4个Android按钮是标准的吗?前任。后退键、菜单键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3524758/

相关文章:

java - 运行测试时 Robolectric PowerMock java.lang.NoClassDefFoundError 错误

android - 如何将 webView Android 中的内容居中?

java - 使用 Json 在 Android 客户端和 WCF 服务之间传递 DateTime 作为参数

android - Android 上的蓝牙打印

android - 如果您将此 ComposeView 添加到 AppCompatActivity,请确保您使用的是 AppCompat 版本 1.3+

android - 了解 MauiImage BaseSize

android - 谷歌云消息 : How to show an icon and group messages

java - 将 Eclipse ADT 项目制作到 android Studio 时缺少 gradle.properties 文件

Android SDK - 不在触摸中心缩放

android - 数据库更新后更新 fragment TextView