How to disable/enable all children on LinearLayout in Android
<p>Is there way by programming that all the children of a certain layout? </p>

<p>For example i have this layout with two children: </p>

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

<p>and i want to do something like:</p>

<pre><code>LinearLayout myLayout = (LinearLayout) findViewById(R.id.linearLayout1);
myLayout.setEnabled(false);
</code></pre>

<p>In order to disable the two textviews.</p>

<p>Any idea how?</p>
