java - CheckBoxPreference List -


i'm trying write android app. have settings activity, has preferences. currently, i'm want have similar hierarchy this:

 - group 1 (checkbox):       option 1       option 2  - group 2 (simple category, no checkbox):       option 3       option 4 

in hierarchy, how can categories, if group 1 checkbox isn't checked, both options 1 , 2 disabled, , option 3 disabled too.

thanks in advance!

i don't need might :

if (yourcheckboxview.ischecked()){              youroptionview.setvisibility(view.visible);             // or             youroptionview.setenabled(true);          } else {              youroptionview.setenabled(false);             // or             youroptionview.setvisibility(view.gone);          } 

is want ? if so, want full code ? , type of view options ?


Comments

Popular posts from this blog

java - Checkbox item adds to spinner -

php - mySQL problems with this code? -

C# MVC AngularJS -