Note that there are some explanatory texts on larger screens.

plurals
  1. POTwo Linear Layouts display
    text
    copied!<p>I have two lenear layouts in my xml &amp; first has layout height &amp; width as a fill_parent. Now on below part i want to display second layout also with first layout as it is. is it possible ? My xml code is as following </p> <pre><code>&lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#e0ffff" &gt; &lt;TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; &lt;TableRow&gt; &lt;ImageView android:layout_width="100px" android:layout_height="100px" android:layout_marginLeft="20dip" android:layout_marginTop="20dip" android:src="@drawable/Catlog" &gt; &lt;/ImageView&gt; &lt;ImageView android:layout_width="100px" android:layout_height="100px" android:layout_marginLeft="30dip" android:layout_marginTop="20dip" android:src="@drawable/Mycatlog" &gt; &lt;/ImageView&gt; &lt;ImageView android:layout_width="100px" android:layout_height="100px" android:layout_marginLeft="40dip" android:layout_marginTop="20dip" android:src="@drawable/Events" &gt; &lt;/ImageView&gt; &lt;/TableRow&gt; &lt;TableRow&gt; &lt;ImageView android:layout_width="100px" android:layout_height="100px" android:layout_marginLeft="20dip" android:layout_marginTop="20dip" android:src="@drawable/Lerningprofiles" &gt; &lt;/ImageView&gt; &lt;ImageView android:layout_width="100px" android:layout_height="100px" android:layout_marginLeft="20dip" android:layout_marginTop="20dip" android:src="@drawable/Profile" &gt; &lt;/ImageView&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#0F304C" android:orientation="horizontal" android:weightsum="0.05" &gt; &lt;ImageView android:layout_width="100px" android:layout_height="100px" android:layout_marginLeft="20dip" android:layout_marginTop="20dip" android:src="@drawable/Profile" &gt; &lt;/ImageView&gt; &lt;/LinearLayout&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload