android - 改变 ActionBar 的方向

标签 android android-actionbar right-to-left android-menu

我在我的项目中使用 ActionBar。我想更改 ActionBar 项目的方向意味着在屏幕右侧找到选项卡图标和 Logo ,并在屏幕左侧找到菜单项。我用谷歌搜索,但没有找到任何有用的东西,同时我在 API 14 中阅读了主题和样式的 xml 资源,但我再次没有找到任何解决方案。

最佳答案

操作栏现在支持从右到左的方向。它在新的 API 级别 17 中由 添加

android:supportsRtl attribute to the element in your manifest file and set it “true"

在这里查看有关从右到左管理布局的更多信息 RTL Layout Support

关于android - 改变 ActionBar 的方向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12143370/

相关文章:

Android-向布局添加 View 导致布局位于 ActionBar 前面

java - SWT 文本字段从右到左的外观

c# - 我可以从文化代码中获取文本方向吗?

android - 模仿 youtube/gmail 应用程序的抽屉导航

java - 将父 Activity 的自定义对话框覆盖到所有 View (包括 Android 中的子 Activity)

android - 在 NestedScrollView (Android Studio) 中启用中间滚动

php - 如何修复 'Value name of type java.lang.String cannot be converted to JSONObject'

android - 软键盘关闭时自动折叠 ActionBar SearchView

iphone - ios/xcode 使文本书写方向从右到左

android - Linux 蓝牙找不到具有 UUID 的 Android 服务