Android: LinearLayout with text and Icon
<p>I have this Layout:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:azeoo="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"&gt;

&lt;RelativeLayout
    android:id="@+id/opening_today_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:paddingLeft="16dp"
    android:paddingRight="16dp"&gt;

    &lt;TextView
        android:id="@+id/opening_today"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:maxLines="1"
        android:ellipsize="end"
        android:text="A standard line" /&gt;

    &lt;ImageView
        android:layout_toRightOf="@id/opening_today"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:paddingLeft="8dp"
        android:src="@drawable/ic_arrow_drop_down" /&gt;

&lt;/RelativeLayout&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>The result is:</p>

<p><a href="https://i.stack.imgur.com/Xg581.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xg581.png" alt="enter image description here"></a></p>

<p>But if I put a long text for "opening_today" like for exemple "A very very very long line with a lot of texts with ellipsize end", the ImageView disappears:</p>

<p><a href="https://i.stack.imgur.com/vZAcp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vZAcp.png" alt="enter image description here"></a></p>

<p>So, how can I do to <strong>keep</strong> the ImageView even the text has a big size ?</p>