OsmAnd/OsmAnd/res/layout/fragment_coordinate_input_dialog.xml

176 lines
6.4 KiB
XML
Raw Normal View History

2017-09-25 18:20:47 +02:00
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
2018-02-16 11:02:37 +01:00
xmlns:android="http://schemas.android.com/apk/res/android"
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">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
2020-03-04 15:12:06 +01:00
<com.google.android.material.appbar.AppBarLayout
2018-02-16 11:02:37 +01:00
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:background="@color/route_info_bg_dark">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.Toolbar
2018-02-16 11:02:37 +01:00
android:id="@+id/coordinate_input_toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/dashboard_map_toolbar"
2020-05-28 09:03:40 +02:00
android:padding="0dp">
2018-02-16 11:02:37 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical">
<ImageButton
android:id="@+id/back_button"
style="@style/Widget.AppCompat.ActionButton"
2020-05-28 09:03:40 +02:00
android:layout_width="@dimen/toolbar_height"
android:layout_height="@dimen/toolbar_height"
android:contentDescription="@string/access_shared_string_navigate_up"
2018-02-16 11:02:37 +01:00
tools:src="@drawable/ic_arrow_back"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/toolbar_text"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
2020-05-28 09:03:40 +02:00
android:layout_marginLeft="@dimen/content_padding"
android:layout_marginStart="@dimen/content_padding"
android:layout_marginRight="@dimen/content_padding"
android:layout_marginEnd="@dimen/content_padding"
2018-02-16 11:02:37 +01:00
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="1"
android:text="@string/coordinates"
android:textSize="@dimen/dialog_header_text_size"
osmand:typeface="@string/font_roboto_medium"
tools:textColor="@color/color_white"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/options_button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackground"
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="1"
2020-02-24 15:17:23 +01:00
android:paddingLeft="@dimen/content_padding"
android:paddingRight="@dimen/content_padding"
2018-02-16 11:02:37 +01:00
android:text="@string/shared_string_options"
android:textAllCaps="true"
2019-07-01 16:22:27 +02:00
android:textColor="@color/active_color_primary_light"
2018-02-16 11:02:37 +01:00
android:textSize="@dimen/default_list_text_size"
2020-02-24 15:17:23 +01:00
osmand:typeface="@string/font_roboto_medium"
android:paddingEnd="@dimen/content_padding"
android:paddingStart="@dimen/content_padding" />
2018-02-16 11:02:37 +01:00
</LinearLayout>
2020-03-04 15:12:06 +01:00
</androidx.appcompat.widget.Toolbar>
2018-02-16 11:02:37 +01:00
<include layout="@layout/coordinate_input_data_area"/>
2020-03-04 15:12:06 +01:00
</com.google.android.material.appbar.AppBarLayout>
2018-02-16 11:02:37 +01:00
2020-03-04 15:12:06 +01:00
<androidx.recyclerview.widget.RecyclerView
2018-02-16 11:02:37 +01:00
android:id="@+id/markers_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingBottom="72dp"
2020-02-24 15:17:23 +01:00
android:paddingTop="@dimen/content_padding"/>
2018-02-16 11:02:37 +01:00
</LinearLayout>
<LinearLayout
android:id="@+id/keyboard_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:orientation="vertical">
<View
android:id="@+id/keyboard_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
2018-02-16 11:25:52 +01:00
tools:background="@color/keyboard_divider_dark"/>
2018-02-16 11:02:37 +01:00
<LinearLayout
2018-02-16 12:57:31 +01:00
android:id="@+id/bottom_controls_container"
2018-02-16 11:02:37 +01:00
android:layout_width="match_parent"
2018-06-18 13:58:39 +02:00
android:layout_height="@dimen/bottom_sheet_cancel_button_height"
android:background="?attr/wikivoyage_bottom_bar_bg_color">
2018-02-16 11:02:37 +01:00
2018-06-18 13:58:39 +02:00
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/cancel_button"
android:layout_width="wrap_content"
2018-02-16 11:02:37 +01:00
android:layout_height="match_parent"
2018-02-16 11:25:52 +01:00
android:layout_gravity="center_vertical"
2018-06-18 13:58:39 +02:00
android:layout_weight="0"
android:background="?attr/selectableItemBackground"
android:drawablePadding="@dimen/bottom_sheet_content_padding_small"
2018-02-16 11:02:37 +01:00
android:ellipsize="end"
2018-06-18 13:58:39 +02:00
android:gravity="center_vertical"
android:letterSpacing="@dimen/text_button_letter_spacing"
2018-02-16 11:02:37 +01:00
android:maxLines="1"
2018-06-18 13:58:39 +02:00
android:paddingBottom="@dimen/context_menu_padding_margin_tiny"
android:paddingLeft="@dimen/bottom_sheet_content_margin"
2018-06-26 18:06:17 +02:00
android:paddingRight="@dimen/bottom_sheet_content_margin"
2018-06-18 13:58:39 +02:00
android:paddingTop="@dimen/context_menu_padding_margin_tiny"
android:text="@string/shared_string_cancel"
android:textColor="?attr/wikivoyage_active_color"
android:textSize="@dimen/text_button_text_size"
2020-02-24 15:17:23 +01:00
osmand:typeface="@string/font_roboto_medium"
android:paddingEnd="@dimen/bottom_sheet_content_margin"
android:paddingStart="@dimen/bottom_sheet_content_margin" />
2018-06-18 13:58:39 +02:00
<View
android:layout_width="wrap_content"
2018-02-16 11:02:37 +01:00
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
2018-06-18 13:58:39 +02:00
android:layout_weight="1"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/add_marker_button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical|end"
android:layout_weight="0"
2018-02-16 12:57:31 +01:00
android:background="?attr/selectableItemBackground"
2018-06-18 13:58:39 +02:00
android:drawablePadding="@dimen/bottom_sheet_content_padding_small"
android:ellipsize="end"
android:gravity="center_vertical|end"
android:letterSpacing="@dimen/text_button_letter_spacing"
android:maxLines="1"
android:paddingBottom="@dimen/context_menu_padding_margin_tiny"
2018-06-26 18:06:17 +02:00
android:paddingLeft="@dimen/bottom_sheet_content_margin"
2018-06-18 13:58:39 +02:00
android:paddingRight="@dimen/bottom_sheet_content_margin"
android:paddingTop="@dimen/context_menu_padding_margin_tiny"
android:textColor="?attr/wikivoyage_active_color"
android:textSize="@dimen/text_button_text_size"
osmand:typeface="@string/font_roboto_medium"
tools:drawableRight="@drawable/ic_action_type_add"
tools:drawableTint="?attr/wikivoyage_active_color"
tools:ignore="UnusedAttribute"
2020-02-24 15:17:23 +01:00
tools:text="@string/shared_string_add"
tools:drawableEnd="@drawable/ic_action_type_add"
android:paddingStart="@dimen/bottom_sheet_content_margin"
android:paddingEnd="@dimen/bottom_sheet_content_margin" />
2018-02-16 11:02:37 +01:00
</LinearLayout>
2018-06-18 13:58:39 +02:00
<include layout="@layout/coordinate_input_keyboard"/>
2018-02-16 11:02:37 +01:00
</LinearLayout>
2017-09-25 18:20:47 +02:00
</FrameLayout>