Android EditText setHint's font size dynamically -


i've been struggling setting size of hints in edittext. hint's font size becomes large , layout starts horrible!

edittext dummy = new edittext(); dummy.sethint("some hint"); 

how dynamically , programmatically change hint's font size w.r.t priorly set max_hint_size (in pixels)?

found you

edittextpassword.sethint(html.fromhtml("<font size=\"16\">" + "password " + "</font>" + "<small>" + "(at least 12 charcters)" + "</small>" )); 

see accepted answer here


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -