java - Android development toggling TextView visibility -
im having trouble setting textview invisible/visible.
basicly want happen when on/off button has been clicked.
what did kind of like
textview.setvisibility(textview.visible); textview.setvisibility(textview.invisible);
when try executing emultor says app has stopped unexcpetedly
are building xml or programmatically?
i make xml file when activity runs change property. sure use setcontentview(r.layout.main);
before try textview findviewbyid(...)
.
call .setvisibility(view.gone);
on textview hide it.
call .setvisibility(view.visible);
on textview show it.
i have example this. can see code here: https://github.com/ethankhall/morse-messenger/blob/master/src/com/kopysoft/morsemessenger/translate.java
Comments
Post a Comment