<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:background="@drawable/dialog2_bg">

    <LinearLayout
        android:id="@+id/byDate"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="30dp"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp"
        android:layout_marginBottom="10dp"
        android:gravity="center_horizontal"
        android:orientation="vertical">

        <TextView
            android:id="@+id/dtm"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_marginBottom="10dp"
            android:text="@string/select_reschedule_time"
            android:textColor="@color/gradient_end"
            android:textStyle="bold"
            android:textAppearance="?android:attr/textAppearanceSmall" />

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:padding="5dp" >
            <EditText
                android:id="@+id/txtDtm"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_toLeftOf="@+id/btnDtm"
                android:layout_marginRight="10dp"
                android:layout_marginLeft="5dp"
                android:padding="5dp"
                android:background="@drawable/dropdown_background"
                android:editable="false"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:layout_centerVertical="true"/>
            <ImageButton
                android:id="@+id/btnDtm"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="5dp"
                android:background="@drawable/transparent_bg"
                android:src="@drawable/icon_calendar"
                android:elevation="5dp"/>
        </RelativeLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp"
        android:layout_marginBottom="30dp">
        <Button
            android:id="@+id/btnCancel"
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:layout_weight="0.5"
            android:layout_marginRight="2dp"
            android:background="@drawable/button_background"
            android:text="@string/btnCancel"
            android:textColor="@color/fontColorWhite"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:gravity="center_vertical|center_horizontal"/>
        <Button
            android:id="@+id/btnReschedule"
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:layout_weight="0.5"
            android:layout_marginLeft="2dp"
            android:background="@drawable/button_background"
            android:text="@string/btnReschedule"
            android:textColor="@color/fontColorWhite"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:gravity="center_vertical|center_horizontal"/>
    </LinearLayout>
</LinearLayout>