Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
@SolidlSnake People love to be searched for. At least we will know that we will be in price as long as there are such encoders :)
playButton = (Button) findViewById(R.id.play);
playButton.setVisibility(1);
playButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
//when play is clicked show stop button and hide play button
playButton.setVisibility(View.GONE);
stopButton.setVisibility(View.VISIBLE);
}
});
In the handler, add hiding after clicking. Seriously. There is nothing more to tell here.
Or are you having a hard time finding the properties you need? Or do you not yet know how listeners work?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question