java - Spinner for date of birth (Android) -
i creating registration form application. want prompt user enter date of birth through 3 spinners (dd-mm-yy).
this xml sign up/registration form:
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/ic_signup" android:gravity="center_vertical" android:orientation="vertical" > <edittext android:textcolor="#ffffff" android:id="@+id/edittextemail" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="email" /> <requestfocus /> <edittext android:textcolor="#ffffff" android:id="@+id/edittextfirstname" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="first name" /> <edittext android:textcolor="#ffffff" android:id="@+id/edittextlastname" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="last name" /> <edittext android:textcolor="#ffffff" android:id="@+id/edittextpassword" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="password" android:inputtype="textpassword" /> <edittext android:textcolor="#ffffff" android:id="@+id/edittextconfirmpassword" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="confirm password" android:inputtype="textpassword" /> <edittext android:textcolor="#ffffff" android:id="@+id/edittextage" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="age" /> <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" android:orientation="horizontal" > <textview android:id="@+id/mynumber" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="number +961" android:textsize="20sp" android:color="@android:color/white" /> <edittext android:id="@+id/edittextnumber" android:layout_width="wrap_content" android:layout_height="wrap_content" android:hint="number" android:textcolor="#ffffff"/> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:orientation="vertical" > <button android:id="@+id/buttoncreateaccount" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginbottom="60dp" android:background="@drawable/ic_create" /> </linearlayout> </linearlayout> </linearlayout>
you can see there "age" section (edittext) delete , replace spinner one. should spinner section like?
Comments
Post a Comment