Note that there are some explanatory texts on larger screens.

plurals
  1. POImage on the top-edge of inner layout
    text
    copied!<p>How can I put that small rounded image on the edge like the following image (that's actual the design i need to replicate):</p> <p><img src="https://i.stack.imgur.com/6EggR.png" alt="enter image description here"></p> <p><strong>Update: So far done like the following:</strong></p> <p><img src="https://i.stack.imgur.com/cMWhM.png" alt="enter image description here"></p> <p><strong>Now how to fix that overlapping issue (form layout overlapping rounded image)?</strong></p> <p><strong>Update: Done!</strong></p> <p><img src="https://i.stack.imgur.com/oV8Qf.png" alt="enter image description here"></p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/back" &gt; &lt;!-- Put everything contained in the white area in this layout --&gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="40dp" android:background="@android:color/transparent" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="30dp" android:background="@color/White" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="60dp" &gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Name:" /&gt; &lt;EditText android:id="@+id/name_editText1" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:hint="Name" android:inputType="textPersonName" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" &gt; &lt;TextView android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Email:" /&gt; &lt;EditText android:id="@+id/email_editText2" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:hint="Email" android:inputType="textEmailAddress" &gt; &lt;requestFocus /&gt; &lt;/EditText&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" &gt; &lt;TextView android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Email:" /&gt; &lt;EditText android:id="@+id/phone_editText3" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:hint="Phone" android:inputType="phone" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" &gt; &lt;TextView android:id="@+id/textView4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Birthday:" /&gt; &lt;EditText android:id="@+id/birth_editText4" android:layout_width="match_parent" android:layout_height="wrap_content" android:editable="false" android:ems="10" android:hint="Birthday" android:inputType="date" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" &gt; &lt;TextView android:id="@+id/textView5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Password:" /&gt; &lt;EditText android:id="@+id/pass_editText6" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:hint="Password" android:inputType="textPassword" /&gt; &lt;/LinearLayout&gt; &lt;Button android:id="@+id/register_button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Register" /&gt; &lt;/LinearLayout&gt; &lt;ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:scaleType="fitXY" android:src="@drawable/signup" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p></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