Change tütü code
private void disableEnableControls(boolean enable, ViewGroup vg){ for (int i = 0; i < vg.getChildCount(); i++){ View child = vg.getChildAt(i); if (child instanceof ViewGroup){ disableEnableControls(enable, (ViewGroup)child); } else { child.setEnabled(enable); } } }
I think it makes no sense to just turn off group display. If you want to do this, there is another way that I used for the same purpose. Create a sibling view of your group view:
<View android:visibility="gone" android:id="@+id/reservation_second_screen" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="bottom" android:background="#66ffffff" android:clickable="false" />
and at runtime make it visible. Note. The parent layout of the group view must be either relative or layout. Hope this helps.
boburShox Dec 12 '12 at 5:57 2012-12-12 05:57
source share