1

Android renabling listitem in listview after disabling it

view story
linux-howto

http://stackoverflow.com – I have a BaseActivity which extends Activity and all the other activities extends this BaseActivity. What I do is in a state of my application, I want to disable all the items on the screen from the BaseActivity then enable them again by using the following code: private void DisableChildClickEvents(ViewGroup viewGroup, boolean enabled) { for (int i = 0; i < viewGroup.getChildCount(); i++) { View childView = viewGroup.getChildAt(i); childView.setClickable(enabled); childView.setEnabled(enabled); if (childView instanceof ViewGroup) { Disable (HowTos)