Android - How do you make a button invisible but still active?

I am trying to create a "hot spot" on my tablet that acts like a button but users can not see the button. When I try the following I have a button but when visibility is set to "4" the user cannot interact or see it:

  Button b=(Button)findViewById(;

    public OnClickListener listener=new OnClickListener(){

        public void onClick(View arg0) {
        Intent myIntent = new Intent(MeetingManager.this,GetRoom.class);
           startActivityForResult(myIntent, 0);

Any ideas how I can achieve the above request?


If it is going to be invisible, why does it have to be a button?

You can add an OnClickListener to any view.

Why not use an ImageView with a transparent background and just add the OnClickListener to that?

Need Your Help

CAAnimation delegate in CAAnimationGroup

ios delegates caanimation cabasicanimation

I have grouped 4 CABasicAnimation into CAAnimationGroup. But the problem is that

Best way to accomplish this scenario with viewControllers - iPhone

iphone objective-c cocoa sdk

I'm writing an app that will allow iPhone users to login to their accounts. Once logged in the user can pull information, change passwords, change other types of data via webservices. I'm new to ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.