Password Hint Font Not Work In Android
<p>I want to change my password hint font, but I can't do it!
Actually I use a snippet from this website, but it isn't work again!</p>

<p>XML file:</p>

<pre><code>&lt;EditText
    android:id="@+id/password"
    android:layout_margin="10dp"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_below="@id/google_account"
    android:typeface="serif"
    android:hint="@string/password" /&gt;
</code></pre>

<p>Activity file:</p>

<pre><code>EditText password = (EditText) findViewById(R.id.password_text);
password.setTransformationMethod(new PasswordTransformationMethod());
</code></pre>
