android - Visible and invisible with a checkbox -


i have screen 5 lines.each line has 3 edittexts.after 5th line there checkbox , below line 3 edittexts.i like,the 6th line invisible when firstly open app,and when users checks checkbox,the line appear.is possible?thanks

  final checkbox checkbox = (checkbox) findviewbyid(r.id.box);             checkbox.setonclicklistener(new onclicklistener() {                 public void onclick(view v) {                     // perform action on clicks, depending on whether it's checked                     if (((checkbox) v).ischecked()) {                        ?????????????                     } else {                        ???????????                     }                 }             }); 

in layout xml file add

android:visibility="gone" 

to view have hidden @ startup.

then in code:

myhiddenview.setvisibility(view.visible); 

to make visible.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -