android - How to customize dashboard view according to user settings -


i'm creating dashboard little different. in dashboard there 6 buttons views default. , have 1 setting page check lists of these buttons.

problem dashboard views should according users preference settings.user select items in setting page ,those wants visible in dashboard. unchecked items should not visible in dashboard.

please , in advance.!

    playbutton = (button) findviewbyid(r.id.play);     playbutton.setvisibility(1);     playbutton.setonclicklistener(new onclicklistener() {     @override     public void onclick(view v) {              //when play clicked show stop button , hide play button              playbutton.setvisibility(view.gone);              stopbutton.setvisibility(view.visible);          }     }); 

this solution taken answer. more details go link. in setting take input user , apply accordingly.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -