Note that there are some explanatory texts on larger screens.

plurals
  1. POStop views overlapping when device is horizontal : Android
    text
    copied!<p>I have the following XML:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout android:padding="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;TextView android:textSize="14.0sp" android:textStyle="bold" android:textColor="#ff449def" android:layout_gravity="top|left|center" android:id="@id/name" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt; &lt;TextView android:layout_gravity="left" android:id="@id/eventvenue" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/name" /&gt; &lt;TextView android:layout_gravity="bottom|left|center" android:id="@id/datetime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/eventvenue" /&gt; &lt;TextView android:layout_gravity="left" android:id="@+id/datetime2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/datetime" /&gt; &lt;ImageView android:layout_gravity="right" android:id="@id/customlistrowlogo" android:padding="5.0dip" android:layout_width="80.0dip" android:layout_height="80.0dip" android:scaleType="fitXY" android:cropToPadding="true" android:layout_alignTop="@id/name" android:layout_alignBottom="@id/datetime2" android:layout_alignParentRight="true" android:contentDescription="logo" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>When the application is in vertical mode if the text in one of the textviews is too long then it will wrap on to the next line and not cover the image.</p> <p>However when i am in horizontal mode then the text wont wrap on to the next line but instead gets covered by the image.</p> <p>VERTICAL :: </p> <pre><code>---------------------------- | image | |text text text tex image | |t wraps around tex image | | | | | | | | | | | | | | | | | | | | | | | ---------------------------- </code></pre> <p>HORIZONTAL::</p> <pre><code>--------------------------------------------------------------- | | | text image | | text text text text text text text text text teimage | | | | | | | | | | | | | | | | | --------------------------------------------------------------- </code></pre> <p>unlike in the vertical one where the text drops to the next line in horizontal mode the text gets hidden behind the picture and doesnt go to the next line</p>
 

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