Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Make only a part of an image button clickable.  RSS feed

 
vibhor sharma
Greenhorn
Posts: 19
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
 
vibhor sharma
Greenhorn
Posts: 19
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
}
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!