title: Button in TabWidget
body: <p>I am trying to place a button in the TabWidget, meaning that I want to see all the tabs and the most right one will be a button.<br/>
  I couldn't do it with the xml (and it will be helpful if someone would tell me how) so I've added the button by code.
  The problem is that the button is not clicked, I hear the click sound from the device but nothing happens, I don't see that the <code>OnClickListener</code> is called.<br/>
  Can you please look at the code and tell me what I am doing wrong?<br/>
  This code is at the <code>onCreate()</code> of my activity.</p>
  
  <pre><code>TabWidget tabWidget = (TabWidget)findViewById(android.R.id.tabs);
  
  Button button = new Button(this);
  button.setBackgroundResource(R.drawable.settings);
  button.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT));
  button.setClickable(true);
  button.setOnClickListener(new OnClickListener() {
  
      @Override
      public void onClick(View v) {
          LogWrapper.d(TAG, "************************************");
          startActivity(new Intent(MyActivity.this, SettingsActivity.class));
      }
  });
  tabWidget.addView(button);
  </code></pre>