I need to know how a first click on the button performs an action, a second click on the same button performs a different action
Would that be possible?
I tried: But it did not work very well.
myButton.setOnClickListener(new OnClickListener(){
public void onClick(View v){
myLayout.setVisibily(View.VISIBLE);
if (myLayout.isShown()){
myLayout.setVisibility(View.INVISIBLE);
}
}
});