【问题标题】:How to write text in Hebrew on the button如何在按钮上用希伯来语写文字
【发布时间】:2013-09-04 13:54:24
【问题描述】:

这是我在 main.xml 中的按钮

<Button
    android:id="@+id/checkInButton"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:text="@string/checkIn"
    android:textDirection="anyRtl"
    android:textStyle="bold" />

是否有任何属性可以使其成为 RTL,即从右到左?

【问题讨论】:

  • stackoverflow.com/questions/7874125/… 如果有帮助,请检查一下
  • 您希望它在哪个最低版本的 Android 上运行?答案各不相同。
  • 通常,当您使用 utf-8 中的字符串资源时,您会简单地看到它工作正常。您的应用程序中是否存在某些特定问题?您运行哪个版本的 Android?

标签: android button layout right-to-left hebrew


【解决方案1】:

Google Android Developers 有一些指令可以帮助您解决这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-01-31
    • 2018-10-02
    • 2013-08-07
    • 1970-01-01
    • 2013-02-05
    • 2023-03-23
    • 2011-06-06
    • 1970-01-01
    相关资源
    最近更新 更多