Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid table layout one for both (landscape and portrait view)
    text
    copied!<p>I want to create the following layout which should be 100% in landscape form as displaying in portrait form.</p> <p><a href="http://www.freeimagehosting.net/uploads/b12bb68569.png" rel="nofollow noreferrer">alt text http://www.freeimagehosting.net/uploads/b12bb68569.png</a></p> <p>here is my code which i tried but not working</p> <pre><code>&lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:stretchColumns="0"&gt; &lt;TableRow&gt; &lt;TableLayout android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;TableRow&gt; &lt;TableLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"&gt; &lt;TableRow&gt; &lt;TextView android:id="@+id/reviewItemEntityName" android:layout_height="wrap_content" android:text="12345" android:textColor="@color/maroon" /&gt; &lt;ImageView android:id="@+id/reviewItemStarRating" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/title_1_star" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;/TableRow&gt; &lt;TableRow&gt; &lt;TextView android:id="@+id/reviewItemDescription" android:layout_width="0dip" android:layout_height="wrap_content" android:text="Description comes here" android:textSize="12sp" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/arrow_nxt" android:layout_gravity="center_vertical" android:layout_alignParentRight="true" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&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