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

315 lines
13 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"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/start_time"
android:layout_width="match_parent"
android:layout_height="@dimen/selector_header_height">
<TextView
android:id="@+id/start_time_caption"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginStart="@dimen/default_margin"
android:text="@string/set_time"
android:textColor="?white"
android:textSize="@dimen/textSize_26" />
<ImageView
android:id="@+id/start_time_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:src="@drawable/ic_chevron_right_grey600_24dp" />
<TextView
android:id="@+id/start_time_value"
android:layout_width="@dimen/setup_text_width"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_toEndOf="@id/start_time_caption"
android:layout_toLeftOf="@id/start_time_icon"
android:layout_toRightOf="@id/start_time_caption"
android:layout_toStartOf="@id/start_time_icon"
android:gravity="end"
android:textColor="?white"
android:textSize="@dimen/textSize_22"
tools:text="14:00" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/thin_line"
android:layout_alignParentBottom="true"
android:background="?black" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/start_procedure"
android:layout_width="match_parent"
android:layout_height="@dimen/selector_header_height"
android:layout_below="@id/start_time">
<TextView
android:id="@+id/start_procedure_caption"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginStart="@dimen/default_margin"
android:text="@string/start_procedure"
android:textColor="?white"
android:textSize="@dimen/textSize_26" />
<ImageView
android:id="@+id/start_procedure_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:src="@drawable/ic_chevron_right_grey600_24dp" />
<TextView
android:id="@+id/start_procedure_value"
android:layout_width="@dimen/setup_text_width"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_toEndOf="@id/start_procedure_caption"
android:layout_toLeftOf="@id/start_procedure_icon"
android:layout_toRightOf="@id/start_procedure_caption"
android:layout_toStartOf="@id/start_procedure_icon"
android:gravity="end"
android:textColor="?white"
android:textSize="@dimen/textSize_22"
tools:text="Fix Line Start (RRS26)" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/thin_line"
android:layout_alignParentBottom="true"
android:background="?black" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/start_mode"
android:layout_width="match_parent"
android:layout_height="@dimen/selector_header_height"
android:layout_below="@id/start_procedure">
<TextView
android:id="@+id/start_mode_caption"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginStart="@dimen/default_margin"
android:text="@string/start_mode"
android:textColor="?white"
android:textSize="@dimen/textSize_26" />
<ImageView
android:id="@+id/start_mode_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:src="@drawable/ic_chevron_right_grey600_24dp" />
<ImageView
android:id="@+id/start_mode_flag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_margin="@dimen/default_margin_half"
android:layout_toLeftOf="@+id/start_mode_value"
android:layout_toStartOf="@+id/start_mode_value"
android:focusableInTouchMode="false"
tools:src="@drawable/flag_papa_48dp" />
<TextView
android:id="@+id/start_mode_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/start_mode_icon"
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_toLeftOf="@+id/start_mode_icon"
android:layout_toStartOf="@+id/start_mode_icon"
android:gravity="end"
android:singleLine="true"
android:textColor="?white"
android:textSize="@dimen/textSize_22"
tools:text="Papa" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/thin_line"
android:layout_alignParentBottom="true"
android:background="?black" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/start_course"
android:layout_width="match_parent"
android:layout_height="@dimen/selector_header_height"
android:layout_below="@id/start_mode">
<TextView
android:id="@+id/start_course_caption"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginStart="@dimen/default_margin"
android:text="@string/course"
android:textColor="?white"
android:textSize="@dimen/textSize_26" />
<ImageView
android:id="@+id/start_course_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:src="@drawable/ic_chevron_right_grey600_24dp" />
<ImageView
android:id="@+id/start_course_symbol"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerVertical="true"
android:layout_margin="@dimen/default_margin_half"
android:layout_toLeftOf="@+id/start_course_value"
android:layout_toStartOf="@+id/start_course_value"
tools:src="@drawable/course_triangle_48dp" />
<TextView
android:id="@+id/start_course_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_toLeftOf="@+id/start_course_icon"
android:layout_toStartOf="@+id/start_course_icon"
android:gravity="end"
android:singleLine="true"
android:textColor="?white"
android:textSize="@dimen/textSize_22"
tools:text="O3" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/thin_line"
android:layout_alignParentBottom="true"
android:background="?black" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/wind"
android:layout_width="match_parent"
android:layout_height="@dimen/selector_header_height"
android:layout_below="@id/start_course">
<TextView
android:id="@+id/wind_caption"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginStart="@dimen/default_margin"
android:text="@string/wind"
android:textColor="?white"
android:textSize="@dimen/textSize_26" />
<ImageView
android:id="@+id/wind_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:src="@drawable/ic_chevron_right_grey600_24dp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_margin="@dimen/default_margin_half"
android:layout_toLeftOf="@+id/wind_value"
android:layout_toStartOf="@+id/wind_value"
android:src="@drawable/wind_off" />
<TextView
android:id="@+id/wind_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_toLeftOf="@id/wind_icon"
android:layout_toStartOf="@id/wind_icon"
android:gravity="end"
android:text="@string/wind_unknown"
android:textColor="?white"
android:textSize="@dimen/textSize_22" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/thin_line"
android:layout_alignParentBottom="true"
android:background="?black" />
</RelativeLayout>
<Button
android:id="@+id/start_race"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_margin="@dimen/default_margin_twice"
android:background="?sap_blue_1"
android:paddingBottom="@dimen/default_padding"
android:paddingLeft="@dimen/default_padding_twice"
android:paddingRight="@dimen/default_padding_twice"
android:paddingTop="@dimen/default_padding"
android:text="CONFIRM SETUP"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="?white"
android:textStyle="bold" />
</RelativeLayout>