I want to make a button invisible, when i click another button then the invisible button will become visible and then perform onClick() actions on the visible butto
onClick()
Here you go:
Button theButton = (Button)findViewById(R.id.theButton); theButton.setVisibility(View.VISIBLE); theButton.setBackgroundColor(Color.TRANSPARENT); phoneButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // DO STUFF } });