Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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" android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:text="@string/new_item"
- android:id="@+id/tvItemDesc"
- android:layout_alignParentTop="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true" />
- <EditText
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/tvItemDesc"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:id="@+id/etItemDesc" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:text="@string/status"
- android:id="@+id/textView2"
- android:layout_below="@+id/etItemDesc"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_marginTop="29dp" />
- <RadioGroup
- android:id="@+id/radioGroup"
- android:orientation="horizontal"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/textView2"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true">
- <RadioButton
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/done"
- android:id="@+id/radioButton"
- android:checked="false" />
- <RadioButton
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/not_done"
- android:id="@+id/radioButton2"
- android:checked="true"/>
- </RadioGroup>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:text="@string/date_and_time"
- android:id="@+id/textView3"
- android:layout_below="@+id/radioGroup"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_marginTop="27dp" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/choose_date"
- android:id="@+id/btnChooseDate"
- android:layout_marginBottom="32dp"
- android:layout_above="@+id/btnAdd"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/choose_time"
- android:id="@+id/btnChooseTime"
- android:layout_alignTop="@+id/btnChooseDate"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/add"
- android:id="@+id/btnAdd"
- android:onClick="addButtonClick"
- android:layout_alignParentBottom="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_marginBottom="28dp" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/cancel"
- android:id="@+id/btnCancel"
- android:layout_alignBottom="@+id/btnAdd"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:text="..."
- android:id="@+id/tvDate"
- android:layout_above="@+id/btnChooseDate"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_marginBottom="31dp" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:text="..."
- android:id="@+id/tvTime"
- android:layout_alignTop="@+id/tvDate"
- android:layout_alignParentRight="true" />
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement