What is getCompoundDrawables() in Android? -


how getcompounddrawables() used in android:

if(medittext.getcompounddrawables()[2] == null)     medittext.setcompounddrawableswithintrinsicbounds(0, 0, r.drawable.ic_face, 0); 

i wanted check whether there drawable in edittext @ end of it. if condition giving correct result?

yes correct way find out whether compound drawable set or not.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -