Comment désactiver / activer tous les enfants sur LinearLayout dans Android

Est-il par voie de programmation que tous les enfants d'une certaine mise en page?

Par exemple j'ai cette mise en page avec deux enfants:

<LinearLayout android:layout_height="wrap_content"
        android:id="@+id/linearLayout1" android:layout_width="fill_parent">
        <SeekBar android:layout_height="wrap_content" android:id="@+id/seekBar1"
            android:layout_weight="1" android:layout_width="fill_parent"></SeekBar>
        <TextView android:id="@+id/textView2" android:text="TextView"
            android:layout_width="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge"
            android:layout_height="wrap_content"></TextView>
    </LinearLayout>

et je veux faire quelque chose comme:

LinearLayout myLayout = (LinearLayout) findViewById(R.id.linearLayout1);
myLayout.setEnabled(false);

Afin de désactiver les deux textviews.

Aucune idée de comment?

source d'informationauteur user733284