android - How to set visibility of TextView? -


i want check! example - if (tv.visible == true) showmessage ("yee it's visible") else ("its not visible"); hope you're understand!

you provide little information, think after...

textview tv = (textview)findviewbyid(r.id.textview); tv.setvisibility(view.invisible); 

you need adjust id own.

edit: can check see if textview invisible by:

if (tv.getvisibility() == view.invisible) {     // something. } 

Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -