Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid TableLayout with 2 ImageViews in each TableRow
    primarykey
    data
    text
    <p>Colleagues, what can you advise me to set into ImageViews' attributes to get such screen?</p> <p><img src="https://i.stack.imgur.com/Hrq40.png" alt="enter image description here"></p> <p>XML code for this Activity in my tremendous Android application: <strike>I post it here to avoid <strong>Your post does not have much context to explain the code sections; please explain your scenario more clearly.</strong>..... Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</strike> </p> <pre><code> &lt;TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#D63B40" android:layout_weight="0.15" &gt; &lt;ImageView android:id="@+id/img1" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/n" android:background="@null" /&gt; &lt;ImageView android:id="@+id/r1" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/n" android:background="@null" /&gt; &lt;/TableRow&gt; &lt;TableRow android:id="@+id/tableRow2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#88CB5B" android:layout_weight="0.14" &gt; &lt;ImageView android:id="@+id/img2" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/n" android:background="@null" /&gt; &lt;ImageView android:id="@+id/r2" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/n" android:background="@null" /&gt; &lt;/TableRow&gt; &lt;TableRow android:id="@+id/tableRow3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#E8D751" android:layout_weight="0.14" &gt; &lt;ImageView android:id="@+id/3" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/n" android:background="@null" /&gt; &lt;ImageView android:id="@+id/r3" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/n" android:background="@null" /&gt; &lt;/TableRow&gt; &lt;TableRow android:id="@+id/tableRow4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#9554B6" android:layout_weight="0.14" &gt; &lt;ImageView android:id="@+id/4" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/n" android:background="@null" /&gt; &lt;ImageView android:id="@+id/r4" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/n" android:background="@null" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; </code></pre> <p>Image 1, 2, 3, 4 and a, b, c, d are ImageViews.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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