Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Ask Question
<Button android:text="Play"
android:id="@+id/play"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom = "true">
</Button>
</RelativeLayout>
I tried it with :
playButton.setVisibility(1);
}
});
android
Join Stack Overflow to learn, share knowledge, and build your career.
editedour
This site uses cookies to deliver Aug 24 '16 atand
services 3:27to show you relevant ads and job listings. By using our site, you
Jorge B.
acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Your use of
319 2 10 28
Stack Overflow’s Products and Services, including the StackSign Up Network, is subject to these policies and terms.
Overflow
asked May 30 '11 at 7:26
Rishi
1,339 7 29 53
10 Answers
¿No encuentras la ✕
respuesta? Pregunta en
Stack Overflow en
español.
Try the below code - to learn, share knowledge, and build your career.
This site uses cookies to deliver our services and to show you relevant ads and job listings. By using our site, you
acknowledge that you have read and understand our
playButton.setVisibility(View.INVISIBL , , and our . Your use of
Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.
or -
playButton.setVisibility(View.GONE);
playButton.setVisibility(View.VISIBLE)
Hidde:
BUTTON.setVisibility(View.GONE);
Show:
BUTTON.setVisibility(View.VISIBLE);
@Override
public void onClick(View v) {
String curText = ((TextView)v).get
if(curText.equals("Play")){
((TextView)v).setText("Stop");
}
if(curText.equals("Stop")){
((TextView)v).setText("Play");
}
}
Try View.INVISIBLE .
FindViewById<Button>(Resource.Id.Butto