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 -

javascript - How to bind ViewModel Store to View? -

javascript - Solution fails to pass one test with large inputs? -