My Android application has a form that the user has to fill in. I was looking for something like this. This http://img688.imageshack.us/img688/4162/photocr.jpg. I mean where the Edit Text look neat like this. Any suggestions on how we can replicate this in Android. I have seen a couple of Applications in Android that have a UI like this. Any suggestions will be welcome.
Kind Regards,
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/round_linearlayout"
android:orientation="vertical" >
<EditText
android:id="@+id/first_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/first_name_hint_text"
android:singleLine="true"
android:textColor="#778BB0"
android:textColorHint="#778BB0"
android:textSize="13sp"
android:textStyle="bold" />
<EditText
android:id="@+id/last_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/last_name_hint_text"
android:singleLine="true"
android:textColor="#778BB0"
android:textColorHint="#778BB0"
android:textSize="13sp"
android:textStyle="bold" />
<EditText
android:id="@+id/email_address"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/email_address_hint_text"
android:singleLine="true"
android:textColor="#778BB0"
android:textColorHint="#778BB0"
android:textSize="13sp"
android:textStyle="bold" />
<EditText
android:id="@+id/password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/password_hint_text"
android:singleLine="true"
android:textColor="#778BB0"
android:textColorHint="#778BB0"
android:textSize="13sp"
android:textStyle="bold" />
<Button
android:id="@+id/already_have_an_account"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="@android:color/transparent"
android:padding="20dp"
android:text="@string/already_have_an_account"
android:textColor="@color/hyperlink" />
</LinearLayout>
Edited the answer to what you want.
Used to get text as follows
This works for me very well. Let me know if you have any issues.