Hide the container that holds the widgets. Or, iterate over the children of said container and hide them that way.
On Sun, Sep 4, 2011 at 6:20 PM, bob <[email protected]> wrote: > Is there an easy way to hide all your widgets? Right now, I just have > a mess like this: > > void hideEverything() { > View[] views = { wv, hscrollViewEightSports, bb, photosButton, > newsButton, scoresButton, schedulesButton, > realtimeButton, > finalScoresButton, statsButton, schoolsButton, > abslay, bigLogo, > hsView, loadingView, pb, boxScoresButton, > playByPlayButton, > eightSports, topStoriesLabel, > readLatestNewsButton, > shareButton, readLatestNewsTop, > headlineImage1, headlineImage2, > headlineImage3, lineSeparator1, > lineSeparator2, lineSeparator3, > lineSeparator4, selectedNewsTick, > selectedScoresTick, > selectedStatsTick, selectedSchoolsTick, > selectedPhotosTick, > navBar, smallTabNews, > smallTabPhotos,viewPhotosTop,findScoresTop, > smallTabScores}; > > for (int ctr = 0; ctr < views.length; ctr++) > views[ctr].setVisibility(View.INVISIBLE); > } > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

