I'm not sure, when using drawableRight/Left/etc if you can differentiate a click on the drawable itself versus a click on the text.
Just put together a simple layout (LinearLayout, RelativeLayout, FrameLayout, your choice) with the EditText and an ImageView and then you can detect just clicks on the image. You might want to look into the HelloViews tutorial: http://developer.android.com/intl/de/resources/tutorials/views/index.html On Tue, Mar 2, 2010 at 18:20, AbsoluteBeginner <[email protected]> wrote: > Hi all, > > I want to build a simple view which just contain an EditText and a > search button (image like a magnifying glass) next to it. > I'm an absolute beginner to android and have not much idea on how can > I do this. > I try to put an image with property "android:drawableRight" and get a > similar interface. but the problem is how can I detect the click on > that image? > > Is there any component I can use perhaps? > > Thanks. > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > [email protected]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

