0

Declared Resource String in string.xml file.

<string name="beta">&#946;</string>

When I try to set this text to TextView it Displays properly β,

but if when I set this in to Button then it Displays B.

Why its behavior is different for different Views ??

Rohit Singh
  • 14,672
  • 7
  • 83
  • 77
Bapusaheb Shinde
  • 761
  • 2
  • 12
  • 15

1 Answers1

3

Because in Button textAllCaps property is true by default, do it false then it will show β in button also:

<Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textAllCaps="false"
        android:text="@string/beta" />
Divy Soni
  • 784
  • 8
  • 21