I've been trying to put a Lock Symbol in the textview
of an activity
.
However what I have used from this website did not seem to work.
<TextView
android:id="@+id/lockTextView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="\uD83D\uDD12"/>
EDIT
As you see from my example I had wanted to set the 'unicode' representation of the lock symbol as text in the 'TextView' in the xml. However, the only way to show the lock symbol was by setting it in code.
I am looking for a way to do this in the xml OR an explanation why this way acts different from setting it in code.