In android if I have a linear layout object, and it has a bunch of stuff inside it like textviews, more linear layouts which contain more linear layouts. How can you just disable (.setEnabled(false);
) everything in that given linear layout?
Thanks
In android if I have a linear layout object, and it has a bunch of stuff inside it like textviews, more linear layouts which contain more linear layouts. How can you just disable (.setEnabled(false);
) everything in that given linear layout?
Thanks
Something like that:
for(int i = 0; i < ((LinearLayout) YourLinearLayout).getChildCount(); i++){
((View)((LinearLayout) YourLinearLayout).getChildAt(i)).setEnabled(false);
}