The moose likes Android and the fly likes Make only a part of an image button clickable. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Make only a part of an image button clickable." Watch "Make only a part of an image button clickable." New topic
Author

Make only a part of an image button clickable.

vibhor sharma
Greenhorn

Joined: Dec 10, 2010
Posts: 19

I have a click able image button and its working fine , How can i make only a specific part of the image button click-able , such as specified screen would respond to click events and rest of screen doesn't.

I don't want to crop my image.
Manoj Krishnan
Greenhorn

Joined: Jan 21, 2011
Posts: 9
Have you tried this?
http://groups.google.com/group/android-beginners/browse_thread/thread/c344619ed4317445?pli=1
vibhor sharma
Greenhorn

Joined: Dec 10, 2010
Posts: 19


I am implementing my own myClick method which would listen for touch events , i am able to do this for an entire image .However i have an log in button embedded on image, this button should listen for touchable event not an entire screen.



public void myClick(View view)
{
// code which would listen and responds for only specific area of an image.
}
 
 
subject: Make only a part of an image button clickable.
 
Threads others viewed
Image display in PalmOS using J2me
Modifying the ImagePicker Controller
J2ME Polish in IntelliJ IDEA
Help with Timer for splash screen
how to get location of mouse click with respect to picture?
IntelliJ Java IDE