0
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 to: But it didn’t work out so well.
myButton.setOnClickListener(new OnClickListener(){
public void onClick(View v){
myLayout.setVisibily(View.VISIBLE);
if (myLayout.isShown()){
myLayout.setVisibility(View.INVISIBLE);
}
}
});