Skip to content

Instantly share code, notes, and snippets.

@chrisegb
Created April 18, 2020 21:43
Show Gist options
  • Save chrisegb/c042473289620c42e88f9a05a7159792 to your computer and use it in GitHub Desktop.
Save chrisegb/c042473289620c42e88f9a05a7159792 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<DatePicker
android:id="@+id/datePicker"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:datePickerMode="calendar"
android:layout_gravity="center"
android:layout_marginTop="30dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:scaleX="1.2"
android:scaleY="1.2"/>
<Button
android:id="@+id/setDateButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="37dp"
android:text="Set date to memories"
android:textColor="#fff"
android:backgroundTint="@color/colorAccent"
/>
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment