Suppose I want to change text size. I'm doing it in code and it looks like this:
_textInputLayout.EditText.SetTextSize(Android.Util.ComplexUnitType.Dip, 40);
When I write text in the entry it looks like 40dip text. But when entry is empty hint text looks like 16-18dip.
Is there any way to change hint text size?
Changing the final hint size / floating label size is possible via a style and calling
SetHintTextAppearance
using something like the following:-Where
MyTextInputLayout
is something along the lines of:-However the
textSize
from this style is only applied to the final destination, when you start to enter some text in.From what I can see, and including the properties on the object, it doesn't appear to be possible to change the starting font size of the hint unfortunately at the moment?
Where as
EditText
is exposed, and you can alter things there. TheHint
portion is not handled at all by it, and instead by theTextInputLayout
. There appears no object exposed to get access to customize this specifically for theHint
.