android - I want to when the word of "a" set in the TextView (txt61) ,INVISIBLE the (edt9) and (text) -


why setvisibility doesn't work in code.i want when word of "a" set in textview (txt61) ,invisible (edt8) , (text12)

textview text=(textview)findviewbyid(r.id.text); textview text12=(textview)findviewbyid(r.id.text12);  final textview txt61=(textview)findviewbyid(r.id.txt61); final edittext edt9=(edittext)findviewbyid(r.id.edt9); final edittext edt8=(edittext)findviewbyid(r.id.edt8); final edittext edt7=(edittext)findviewbyid(r.id.edt7); final edittext edt6=(edittext)findviewbyid(r.id.edt6); string f=txt61.gettext().tostring();  if(f.equals("a")){     edt8.setvisibility(view.invisible);     text12.setvisibility(view.invisible); }  if(f.equals("b")){    edt9.setvisibility(view.invisible);     text.setvisibility(view.invisible); } 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -