Files
sailing-analytics/mobile/com.sap.sailing.racecommittee.app/res/layout/race_schedule_start_time.xml
T

144 lines
5.6 KiB
XML

<?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">
<RelativeLayout
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="@dimen/selector_header_height"
android:background="@color/sap_gray">
<LinearLayout
android:id="@+id/header_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginStart="@dimen/default_margin"
android:orientation="horizontal">
<ImageView
android:id="@+id/header_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/ic_chevron_left_white_24dp"
android:visibility="gone" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/set_time"
android:textColor="@color/white"
android:textSize="@dimen/textSize_26" />
</LinearLayout>
</RelativeLayout>
<TextView
android:id="@+id/start_countdown"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginEnd="@dimen/default_margin_twice"
android:layout_marginRight="@dimen/default_margin_twice"
android:layout_marginTop="@dimen/default_margin"
tools:text="@string/race_start_time_in"
android:textColor="@color/white"
android:textSize="@dimen/textSize_40"
android:visibility="visible" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/default_margin_half"
android:orientation="horizontal">
<Button
android:id="@+id/start_min_five"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="@dimen/default_padding"
android:tag="5"
android:text="@string/race_start_in_5_minutes"
android:textAllCaps="true"
android:textColor="@color/white"
android:textSize="@dimen/textSize_22" />
<Button
android:id="@+id/start_min_one"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="@dimen/default_padding"
android:tag="1"
android:text="@string/race_start_in_1_minute"
android:textAllCaps="true"
android:textColor="@color/white"
android:textSize="@dimen/textSize_22" />
</LinearLayout>
<View
android:id="@+id/line_top"
android:layout_width="match_parent"
android:layout_height="@dimen/thick_line"
android:layout_below="@id/header"
android:background="@color/black" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/header"
android:orientation="vertical">
<ViewStub android:id="@+id/race_header"
android:layout="@layout/race_content_header"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="match_parent" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/sap_gray_black_30">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true">
<NumberPicker
android:id="@+id/start_date_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:descendantFocusability="blocksDescendants" />
<include
android:id="@+id/start_time_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
layout="@layout/time_picker"
android:layout_gravity="center_vertical" />
</LinearLayout>
<Button
android:id="@+id/set_start_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"
android:layout_margin="@dimen/default_margin_twice"
android:background="@color/sap_blue_1"
android:padding="@dimen/default_padding"
android:text="@string/race_set_start"
android:textAllCaps="true"
android:textColor="@color/white"
android:textSize="@dimen/textSize_22"
android:textStyle="bold" />
</RelativeLayout>
</LinearLayout>
</RelativeLayout>