When an EditText is in password mode, It looks that its font is different.
When we change typeface in xml , It dosent work.
There is a solution :
We should change it from java like this
<EditText
android:id="@+id/create_password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/input"
android:hint="@string/create_password"
android:inputType="text"
/>
loginPasssword = (EditText)findViewById(R.id.create_password);
loginPasssword.setTypeface(Typeface.DEFAULT);
loginPasssword.setTransformationMethod(new PasswordTransformationMethod());
0 Comment(s)