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
  • 16,950
  • 7
  • 90
  • 88
Bapusaheb Shinde
  • 839
  • 2
  • 13
  • 16

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
  • 824
  • 9
  • 22