On Sep 28, 12:43 am, Jack Ha <jack...@t-mobile.com> wrote:
>     Drawable x = getResources().getDrawable(R.drawable.x);
>     x.setBounds(0, 0, x.getIntrinsicWidth(), x.getIntrinsicHeight());
>     mEditText.setCompoundDrawables(null, null, x, null);

Thanks Jack - visually, that works exactly as I wanted.

However, I'm trying to hide the cross when the text is empty/blank.
I've tried using Drawable.setVisible() but this doesn't seem to make a
difference.

Any tips?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to