Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Following example is as like as you required.... may help to desgin your layout.... </p> <pre><code> &lt;RelativeLayout android:layout_width="250dp" android:layout_height="350dp" android:layout_centerHorizontal="true" android:layout_marginTop="30dp" android:background="@color/White" android:orientation="vertical" &gt; &lt;Button android:id="@+id/register_button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:text="Register" /&gt; &lt;RelativeLayout android:layout_width="220dp" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:orientation="horizontal" &gt; &lt;LinearLayout android:id="@+id/linearLayout1" android:layout_width="100dp" android:layout_height="104dp" android:layout_marginTop="60dp" android:layout_weight="1" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18sp" android:text="Name:" /&gt; &lt;TextView android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Email:" /&gt; &lt;TextView android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18sp" android:text="Phone:" /&gt; &lt;TextView android:id="@+id/textView4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18sp" android:text="Birthday:" /&gt; &lt;TextView android:id="@+id/textView5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18sp" android:text="Password:" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearLayout2" android:layout_width="120dp" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignTop="@+id/linearLayout1" android:layout_weight="1" android:orientation="vertical" &gt; &lt;EditText android:id="@+id/name_editText1" android:layout_width="150dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/edit_text_shap" android:ems="10" android:hint="Name" android:inputType="textPersonName" &gt; &lt;requestFocus /&gt; &lt;/EditText&gt; &lt;EditText android:id="@+id/email_editText2" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/edit_text_shap" android:ems="10" android:hint="Email" android:inputType="textEmailAddress" /&gt; &lt;EditText android:id="@+id/phone_editText3" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/edit_text_shap" android:ems="10" android:hint="Phone" android:inputType="phone" /&gt; &lt;EditText android:id="@+id/birth_editText4" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/edit_text_shap" android:editable="false" android:ems="10" android:hint="Birthday" android:inputType="date" /&gt; &lt;EditText android:id="@+id/pass_editText6" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/edit_text_shap" android:ems="10" android:hint="Password" android:inputType="textPassword" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; &lt;/RelativeLayout&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/ic_launcher" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>File name edit_text_shap.xml</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="@android:color/darker_gray" /&gt; &lt;stroke android:width="1dp" android:color="#CCCCCC" /&gt; &lt;corners android:radius="8dip"/&gt; &lt;/shape&gt; </code></pre>
    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.
    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