Android Question [SOLVED] Change DSFloatLabelEditText's hint size

Xenno

Member
Licensed User
Hello,

Anybody have a solution to change size of hint text of DSFloatLabelEditText ?
Despite their default hint text color, EditText and FloatLabeledEditText can show hint text in normal size (see attachment).


TIA,
 

Attachments

  • Capture.JPG
    Capture.JPG
    19.6 KB · Views: 351

Xenno

Member
Licensed User
If you mean "small" hint, when DSFloatLabelEditText has a focus, it's possible to change using setHintTextAppearance
Unlike https://developer.android.com/reference/android/support/design/widget/TextInputLayout talks "added in version 23.4.0", this function works in API 21 also.
Thank you very much! So, now I understand it needs rather complex workaround. I hope I would be sucess to adapt your solution without XmlLayoutBuilder. I am still a beginner; I use the Designer a lot and set some properties of the views in there and in code.


Cheers.
 
Upvote 0
Top