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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -