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
Post a Comment