java - 导航栏中的底部按钮是什么,您有时会看到它用于更改设置

标签 java android

Image

那个黄色圆圈按钮如何调用以及如何让它显示?

最佳答案

这是传统的溢出按钮。这是必需的,以便旧应用程序可以在没有硬件菜单按钮的新设备上运行。

  • If you set either minSdkVersion or targetSdkVersion to 11 or higher, the system will not add the legacy overflow button.

  • Otherwise, the system will add the legacy overflow button when running on Android 3.0 or higher.

  • The only exception is that if you set minSdkVersion to 10 or lower, set targetSdkVersion to 11, 12, or 13, and you do not use ActionBar, the system will add the legacy overflow button when running your app on a handset with Android 4.0 or higher.

http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html

考虑设计您的应用,这样您就不需要遗留溢出。

关于java - 导航栏中的底部按钮是什么,您有时会看到它用于更改设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26866012/

相关文章:

java - 验证来自 Android 应用程序的后端调用

java - JHipster API 认证

java - 使用java中的Scanner类专注于用户输入

java - 如何使用终端命令在 Red Hat linux 中打开 chrome 浏览器?

android - 升级到 Android Studio Artic Fox 和 AGP 7.0.0 后,自定义 View 不再在 Layout Preview 中呈现

android - 在 RecyclerView 中按下时更改图像按钮

java - 如何在 YMDHMS (ISO 8601) 中获取两个日期/时间之间的持续时间

java - 通过使用正则表达式打开文件来解析字符串行

android - 如何在 Android.mk 中获取环境变量值?

android - 我如何获得可穿戴设备预览?