Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid - Rounded Linear Layout corner overlapped by fill_parent TextView
    primarykey
    data
    text
    <p><img src="https://i.stack.imgur.com/5WcSv.png" alt="enter image description here"></p> <p><strong>This is what I need to the top of my layout</strong></p> <p><img src="https://i.stack.imgur.com/lpJmq.png" alt="enter image description here"></p> <p><strong>This is what I actually have</strong></p> <p>There would be a simple option that I'm not calculating at the moment.</p> <p><strong>Drawable for rounded corners</strong></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;solid android:color="#E9E9E9"/&gt; &lt;stroke android:width="4dip" android:color="#B1BCBE" /&gt; &lt;corners android:radius="10dip"/&gt; &lt;padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" /&gt; &lt;/shape&gt; </code></pre> <p><strong>Layout</strong></p> <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/home_root" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/rounded_layout" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" &gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/filter_title" android:background="@android:color/black" android:textColor="@android:color/white" android:padding="10dp" android:textSize="20sp" /&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="15dp" &gt; &lt;Spinner android:id="@+id/sp_intorno_a_me_proximity" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:spinnerMode="dialog" /&gt; . . . &lt;EditText android:id="@+id/et_intorno_a_me_username" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:textSize="20sp" android:digits="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" android:hint="@string/agentNumber" /&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginTop="20dp" android:layout_marginBottom="10dp" android:weightSum="1" &gt; &lt;Button android:id="@+id/btn_intorno_a_me_close_search" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="0.5" android:text="@string/annulla" style="@style/HelianButtonRed" android:textColor="@android:color/white" /&gt; &lt;Button android:id="@+id/btn_intorno_a_me_search" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="0.5" android:text="@string/find" style="@style/HelianButtonGreen" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre> <p>I have already tried to move the drawable to the first LinearLayout child.</p> <p>How can I prevent the text view to hides the rounded corners?</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. 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