535 lines
27 KiB
XML
535 lines
27 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:osmand="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/activity_background_color"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dashboard_map_toolbar"
|
|
android:background="?attr/actionModeBackground"
|
|
android:minHeight="@dimen/dashboard_map_toolbar"
|
|
app:contentInsetLeft="54dp"
|
|
app:contentInsetStart="54dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:gravity="center_vertical"
|
|
android:maxLines="1"
|
|
android:text="@string/appearance_on_the_map"
|
|
android:textColor="@color/color_white"
|
|
android:textSize="@dimen/dialog_header_text_size"
|
|
osmand:typeface="@string/font_roboto_medium"/>
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/app_mode_text_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="@dimen/content_padding"
|
|
android:layout_marginRight="@dimen/content_padding"
|
|
android:drawablePadding="6dp"
|
|
android:ellipsize="end"
|
|
android:gravity="center_vertical"
|
|
android:maxLines="1"
|
|
android:textAllCaps="true"
|
|
android:textColor="@color/color_white"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
tools:drawableRight="@drawable/ic_action_car_dark"
|
|
tools:text="car"/>
|
|
</LinearLayout>
|
|
|
|
</android.support.v7.widget.Toolbar>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.github.ksoichiro.android.observablescrollview.ObservableScrollView
|
|
android:id="@+id/scroll_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/action_bar_image_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/action_bar_image_height"
|
|
android:background="?attr/actionModeBackground">
|
|
|
|
<ImageView
|
|
android:id="@+id/action_bar_image"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginLeft="@dimen/action_bar_image_side_margin"
|
|
android:layout_marginRight="@dimen/action_bar_image_side_margin"
|
|
tools:src="@drawable/img_help_markers_direction_device_night"/>
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/bg_color"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingStart="@dimen/content_padding">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
|
android:layout_marginEnd="@dimen/content_padding"
|
|
android:layout_marginRight="@dimen/content_padding">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:text="@string/active_markers"
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"/>
|
|
|
|
<TextView
|
|
android:id="@+id/active_markers_text_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textColor="?attr/contextMenuButtonColor"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
tools:drawableRight="@drawable/ic_action_arrow_drop_down"
|
|
tools:text="Two"/>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/content_padding"
|
|
android:layout_marginRight="@dimen/content_padding"
|
|
android:paddingBottom="@dimen/content_padding_small"
|
|
android:paddingTop="@dimen/content_padding_small"
|
|
android:text="@string/active_markers_descr"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/list_item_divider"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/bg_color"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="4dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/distance_indication_row"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:text="@string/show_direction"
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"/>
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
android:id="@+id/distance_indication_switch"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical|end"
|
|
android:layout_marginLeft="@dimen/bottom_sheet_content_margin_small"
|
|
android:layout_marginStart="@dimen/bottom_sheet_content_margin_small"
|
|
android:background="@null"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:focusableInTouchMode="false"/>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginStart="@dimen/content_padding"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginRight="@dimen/content_padding"
|
|
android:paddingBottom="@dimen/content_padding_small"
|
|
android:paddingTop="@dimen/content_padding_small"
|
|
android:text="@string/distance_indication_descr"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/top_bar_row"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:paddingEnd="@dimen/content_padding_small"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding_small"
|
|
android:paddingStart="@dimen/content_padding">
|
|
|
|
<ImageView
|
|
android:id="@+id/top_bar_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
|
tools:background="@drawable/ic_action_device_top"
|
|
tools:src="@drawable/ic_action_device_topbar"/>
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:text="@string/shared_string_topbar"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
osmand:typeface="@string/font_roboto_regular"/>
|
|
|
|
<RadioButton
|
|
android:id="@+id/top_bar_radio_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:clickable="false"
|
|
android:focusable="false"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/widget_row"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:paddingEnd="@dimen/content_padding_small"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding_small"
|
|
android:paddingStart="@dimen/content_padding">
|
|
|
|
<ImageView
|
|
android:id="@+id/widget_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
|
tools:background="@drawable/ic_action_device_top"
|
|
tools:src="@drawable/ic_action_device_widget"/>
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:text="@string/shared_string_widgets"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
osmand:typeface="@string/font_roboto_regular"/>
|
|
|
|
<RadioButton
|
|
android:id="@+id/widget_radio_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:clickable="false"
|
|
android:focusable="false"/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/list_item_divider"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/bg_color"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/show_arrows_row"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:text="@string/show_arrows_on_the_map"
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"/>
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
android:id="@+id/show_arrows_switch"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical|end"
|
|
android:layout_marginLeft="@dimen/bottom_sheet_content_margin_small"
|
|
android:layout_marginStart="@dimen/bottom_sheet_content_margin_small"
|
|
android:background="@null"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:focusableInTouchMode="false"/>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginStart="@dimen/content_padding"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginRight="@dimen/content_padding"
|
|
android:paddingBottom="@dimen/content_padding_small"
|
|
android:paddingTop="@dimen/content_padding_small"
|
|
android:text="@string/show_arrows_descr"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/list_item_divider"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/bg_color"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/show_guide_line_row"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:text="@string/show_guide_line"
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"/>
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
android:id="@+id/show_guide_line_switch"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical|end"
|
|
android:layout_marginLeft="@dimen/bottom_sheet_content_margin_small"
|
|
android:layout_marginStart="@dimen/bottom_sheet_content_margin_small"
|
|
android:background="@null"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:focusableInTouchMode="false"/>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginStart="@dimen/content_padding"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginRight="@dimen/content_padding"
|
|
android:paddingBottom="@dimen/content_padding_small"
|
|
android:paddingTop="@dimen/content_padding_small"
|
|
android:text="@string/show_guide_line_descr"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/list_item_divider"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/bg_color"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/one_tap_active_row"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:text="@string/one_tap_active"
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"/>
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
android:id="@+id/one_tap_active_switch"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical|end"
|
|
android:layout_marginLeft="@dimen/bottom_sheet_content_margin_small"
|
|
android:layout_marginStart="@dimen/bottom_sheet_content_margin_small"
|
|
android:background="@null"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:focusableInTouchMode="false"/>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginStart="@dimen/content_padding"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginRight="@dimen/content_padding"
|
|
android:paddingBottom="@dimen/content_padding_small"
|
|
android:paddingTop="@dimen/content_padding_small"
|
|
android:text="@string/one_tap_active_descr"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/list_item_divider"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/bg_color"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/keep_passed_row"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:text="@string/keep_passed_markers"
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"/>
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
android:id="@+id/keep_passed_switch"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical|end"
|
|
android:layout_marginLeft="@dimen/bottom_sheet_content_margin_small"
|
|
android:layout_marginStart="@dimen/bottom_sheet_content_margin_small"
|
|
android:background="@null"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:focusableInTouchMode="false"/>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginStart="@dimen/content_padding"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginRight="@dimen/content_padding"
|
|
android:paddingBottom="@dimen/content_padding_small"
|
|
android:paddingTop="@dimen/content_padding_small"
|
|
android:text="@string/keep_passed_markers_descr"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/list_item_divider"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.github.ksoichiro.android.observablescrollview.ObservableScrollView>
|
|
|
|
<ImageView
|
|
android:id="@+id/app_bar_shadow"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top"
|
|
android:scaleType="fitXY"
|
|
android:src="@drawable/bg_shadow_list_bottom"
|
|
android:visibility="gone"/>
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|