title: Lock symbol in a layout
body: <p>I've been trying to put a <a href="http://www.fileformat.info/info/unicode/char/1f512/index.htm" rel="nofollow noreferrer">Lock Symbol</a> in the <strong><code>textview</code></strong> of an <strong><code>activity</code></strong>.
  However what I have used from this website did not seem to work.</p>
  
  <pre><code>&lt;TextView
      android:id="@+id/lockTextView"
      android:layout_width="wrap_content"
      android:layout_height="match_parent" 
      android:text="\uD83D\uDD12"/&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>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.</p>
  
  <p>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.</p>