Sonali8890
Sonali8890

Reputation: 2005

How to change font style of label in TextInputLayout wrapping with EditText android

I am using TextInputLayout wraps with EditText and i I am using custom fonts. I am able to set typeface on edittext and its working but same font is not working for TextInputLayout Label. How to set font type on TextInputLayout Label?

I have already tried Change font of the floating label EditText and TextInputLayout
But not working at all.

Any suggestion will be helpful.

Upvotes: 2

Views: 2797

Answers (1)

Austyn Mahoney
Austyn Mahoney

Reputation: 11408

As of Design Library v23, you can use TextInputLayout#setTypeface().

This will set the typeface on both the expanded and floating hint.

Feature request where it was discussed on b.android.com.

Upvotes: 2

Related Questions