Reputation: 2005
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
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