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

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -