Skip to content

Instantly share code, notes, and snippets.

@sidishere
Created December 24, 2019 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidishere/7b6818f763bdb84ea0e358696cd5b475 to your computer and use it in GitHub Desktop.
Save sidishere/7b6818f763bdb84ea0e358696cd5b475 to your computer and use it in GitHub Desktop.
<?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:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="vertical" >
    <EditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter your name" />
    <EditText
android:id="@+id/dob"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter you date of birth DD/MM/YYYY" />
    <TextView
android:id="@+id/message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="16dp"
style="@style/TextAppearance.AppCompat.Body2"
android:layout_marginTop="16dp" />
    <TextView
android:layout_marginTop="120dp"
android:layout_width="240dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
style="@style/TextAppearance.AppCompat.Body1"
android:textSize="16dp"
android:gravity="center"
android:text="Are you curious to know the day on which you were born!?" />
    <Button
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Show birth day"
android:onClick="sendDOB"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment