I’m trying to display the \u25BA unicode character in a textview, but doing
<TextView android:id="@+id/arrowright" android:layout_width="20dp"
android:layout_height="240dp" android:gravity="center" android:text="\u25BA"
android:textSize="14sp" android:textColor="#000000" />
only displays an empty rectangle. This works with other character such as “\u2605”.
Is the set of characters android can display limited?
XML does not allow you to use
\uunicode escapes, use proper encoding, probably UTF-8 or escape it using&...;escaping.Yes, the characters are limited by what the current Font supports. Use a font browser to check if the desired character is supported or not.