drawable - How to programmatically set drawableRight on Android Edittext? -


i know set drawableright in xml. required programmatically because change per condition.

you can use function below:

edittext.setcompounddrawableswithintrinsicbounds(0, 0, r.drawable.drawableright, 0); 

the order of params corresponding drawable location is: left, top, right, bottom


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -