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

137 lines
5.3 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="?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="?white"
android:textSize="@dimen/textSize_26" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/selector_header_height">
<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"
tools:text="@string/race_start_time_in"
android:textColor="?white"
android:textSize="@dimen/textSize_40"
android:visibility="visible"
android:layout_centerVertical="true" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/default_margin_half"
android:orientation="horizontal"
android:layout_centerInParent="true">
<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="?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="?white"
android:textSize="@dimen/textSize_22" />
</LinearLayout>
</RelativeLayout>
<View
android:id="@+id/line_top"
android:layout_width="match_parent"
android:layout_height="@dimen/thick_line"
android:layout_below="@id/header"
android:background="?black" />
<RelativeLayout
android:layout_below="@id/header"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?sap_gray_black_30">
<LinearLayout
android:id="@+id/start_picker"
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:padding="@dimen/default_padding"
android:text="@string/race_set_start"
android:textAllCaps="true"
android:textSize="@dimen/textSize_22"
android:textStyle="bold"
style="@style/AppTheme.Dark.Button"/>
</RelativeLayout>
</RelativeLayout>