Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your <code>@+id/black_strip_top</code> is above <code>@+id/image</code> but that not means that <code>@+id/image</code> will be below <code>@+id/black_strip_top</code>. It looks a riddle but is basically your problem. This is a possible solution:</p> <pre><code>&lt;RelativeLayout android:id="@+id/layout" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;ImageView android:id="@+id/black_strip_top" android:layout_width="wrap_content" android:layout_height="2dp" android:layout_alignLeft="@+id/left_strip" android:layout_alignRight="@+id/right_strip" android:background="@color/black" /&gt; &lt;ImageView android:id="@+id/black_strip_below" android:layout_width="wrap_content" android:layout_height="2dp" android:layout_alignLeft="@+id/left_strip" android:layout_alignRight="@+id/right_strip" android:layout_below="@+id/image" android:background="@color/black" /&gt; &lt;ImageView android:id="@+id/left_strip" android:layout_width="2dp" android:layout_height="wrap_content" android:layout_alignBottom="@+id/image" android:layout_alignTop="@+id/image" android:background="@color/black" /&gt; &lt;!-- android:src="@drawable/left_strip" --&gt; &lt;ImageView android:id="@+id/right_strip" android:layout_width="2dp" android:layout_height="wrap_content" android:layout_alignBottom="@+id/image" android:layout_alignTop="@+id/image" android:layout_toRightOf="@+id/image" android:background="@color/black" /&gt; &lt;!-- android:src="@drawable/right_strip" --&gt; &lt;ImageView android:id="@+id/image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/black_strip_top" android:layout_toRightOf="@+id/left_strip" android:scaleType="fitXY" android:src="@drawable/app_icon" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>Other option could be to use a <code>GridView</code> instead of <code>RelativeLayout</code></p>
    singulars
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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