So currently I\'m putting an Easter egg inside my app and I want the Button
to be invisible, but when clicked(Rick roll). So far I can make it work when I say:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button b = (Button) findViewById(R.id.button1);
final CheckBox cb = (CheckBox) findViewById(R.id.checkBox1);
b.setBackgroundColor(Color.TRANSPARENT);
b.setOnClickListener(new OnClickListener() {
public void onClick(View arg0) {
// TODO Auto-generated method stub
cb.setChecked(true);
to this code button is invisible but it worked ;))