I have defined a font for a EditText and now the EditText hint also shows that font, but i need to use a different font for EditText hint, is there a way to achieve this?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
No need to use reflection. You can achieve it by creating your own
TypefaceSpan
.Use it as:
EditText uses
textview_hint
layout to showErrorPopup
popup message.so try as to set different typeface for Hint as:EDIT: Because
EdiText
internally show Hint popup usingErrorPopup
.See following link for more help:
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.1_r1/android/widget/Editor.java#Editor.invalidateTextDisplayList%28%29