508 lines
No EOL
18 KiB
XML
508 lines
No EOL
18 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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:id="@+id/point_edit_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@android:color/transparent"
|
|
android:fitsSystemWindows="true">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/background_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/card_and_list_background_basic"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="@dimen/dashboard_map_toolbar"
|
|
android:background="?attr/card_and_list_background_basic"
|
|
android:minHeight="@dimen/dashboard_map_toolbar"
|
|
app:contentInsetLeft="72dp"
|
|
app:contentInsetStart="72dp"
|
|
osmand:subtitleTextColor="?android:textColorPrimary"
|
|
osmand:theme="@style/ThemeOverlay.AppCompat.ActionBar"
|
|
osmand:titleTextColor="?android:textColorPrimary">
|
|
|
|
<ImageView
|
|
android:id="@+id/toolbar_action"
|
|
android:layout_width="@dimen/list_item_height"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="end"
|
|
android:background="?attr/card_and_list_background_basic"
|
|
android:contentDescription="@string/replace_all"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_action_replace"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_marginEnd="8dp" />
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
<ScrollView
|
|
android:id="@+id/editor_scroll_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/main_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/list_content_padding"
|
|
android:layout_marginRight="@dimen/list_content_padding">
|
|
|
|
<ImageView
|
|
android:id="@+id/name_icon"
|
|
android:layout_width="@dimen/favorites_icon_size"
|
|
android:layout_height="@dimen/favorites_icon_size"
|
|
android:layout_gravity="end"
|
|
android:layout_margin="10dp"
|
|
android:contentDescription="@string/icon"
|
|
android:src="@drawable/ic_action_home_dark" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/name_caption"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="#4DCCCCCC"
|
|
android:hint="@string/shared_string_name"
|
|
android:paddingTop="9dp"
|
|
app:errorColor="@color/color_invalid"
|
|
app:primaryColor="@color/active_color_primary_dark"
|
|
app:secondaryColor="?android:textColorSecondary">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/name_edit"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:drawableEnd="@drawable/btn_circle_transparent_full"
|
|
android:drawableRight="@drawable/btn_circle_transparent_full"
|
|
android:drawablePadding="50dp"
|
|
android:inputType="textMultiLine"
|
|
android:maxLines="4"
|
|
android:minHeight="50dp"
|
|
android:paddingStart="12dp"
|
|
android:paddingLeft="12dp"
|
|
android:paddingRight="12dp"
|
|
android:scrollHorizontally="false"
|
|
android:textSize="16sp"
|
|
tools:text="@string/lorem_ipsum" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/description"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/card_padding"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/description_caption"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/list_content_padding"
|
|
android:layout_marginRight="@dimen/list_content_padding"
|
|
android:layout_weight="1"
|
|
android:background="#4DCCCCCC"
|
|
android:hint="@string/shared_string_description"
|
|
android:paddingTop="9dp"
|
|
app:errorColor="@color/color_invalid"
|
|
app:primaryColor="@color/active_color_primary_dark"
|
|
app:secondaryColor="?android:textColorSecondary">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/description_edit"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textMultiLine"
|
|
android:maxLines="4"
|
|
android:minHeight="50dp"
|
|
android:paddingStart="12dp"
|
|
android:paddingLeft="12dp"
|
|
android:paddingRight="12dp"
|
|
android:scrollHorizontally="false"
|
|
android:textSize="16sp"
|
|
tools:text="@string/lorem_ipsum" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/description_button"
|
|
style="@android:style/Widget.Button.Toggle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:minHeight="48dp"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
android:text="@string/add_description"
|
|
android:textColor="?attr/contextMenuButtonColor" />
|
|
|
|
<View
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="1dp"
|
|
android:background="?attr/dashboard_divider" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="@dimen/bottom_sheet_selected_item_title_height"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:letterSpacing="@dimen/description_letter_spacing"
|
|
android:paddingLeft="16dp"
|
|
android:paddingTop="14dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingBottom="14dp"
|
|
android:text="@string/select_group"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_regular" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/group_list_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="end"
|
|
android:orientation="horizontal">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/group_list_button_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="end"
|
|
android:ellipsize="end"
|
|
android:gravity="center"
|
|
android:letterSpacing="@dimen/text_button_letter_spacing"
|
|
android:maxLines="1"
|
|
android:text="@string/shared_string_list"
|
|
android:textColor="@color/preference_category_title"
|
|
android:textSize="@dimen/text_button_text_size"
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
tools:ignore="UnusedAttribute" />
|
|
|
|
<ImageView
|
|
android:id="@+id/group_list_button_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:paddingStart="@dimen/content_padding_small"
|
|
android:paddingLeft="@dimen/content_padding_small"
|
|
android:paddingEnd="@dimen/route_info_buttons_padding_top_bottom"
|
|
android:paddingRight="@dimen/route_info_buttons_padding_top_bottom"
|
|
android:src="@drawable/ic_action_folder"
|
|
tools:src="@drawable/ic_action_group_select_all"
|
|
android:contentDescription="@string/shared_string_list" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="8dp"
|
|
android:paddingLeft="8dp"
|
|
android:paddingTop="6dp"
|
|
android:paddingEnd="0dp"
|
|
android:paddingRight="0dp"
|
|
android:paddingBottom="16dp">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/group_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:orientation="horizontal"
|
|
tools:itemCount="1"
|
|
tools:listitem="@layout/point_group_select_item" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:background="?attr/dashboard_divider" />
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:letterSpacing="@dimen/description_letter_spacing"
|
|
android:paddingLeft="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingBottom="14dp"
|
|
android:text="@string/select_icon_profile_dialog_title"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_regular" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/group_name_recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:orientation="horizontal"
|
|
tools:itemCount="1"
|
|
tools:listitem="@layout/point_group_select_item" />
|
|
|
|
<net.osmand.plus.widgets.FlowLayout
|
|
android:id="@+id/select_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginTop="6dp" />
|
|
|
|
<View
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:background="?attr/dashboard_divider" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:letterSpacing="@dimen/description_letter_spacing"
|
|
android:paddingLeft="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingBottom="14dp"
|
|
android:text="@string/select_color"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_regular" />
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/color_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:letterSpacing="@dimen/description_letter_spacing"
|
|
android:paddingLeft="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingBottom="14dp"
|
|
android:text="@string/select_color"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_regular" />
|
|
</LinearLayout>
|
|
|
|
<net.osmand.plus.widgets.FlowLayout
|
|
android:id="@+id/select_color"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginTop="6dp" />
|
|
|
|
<View
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:background="?attr/dashboard_divider" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:letterSpacing="@dimen/description_letter_spacing"
|
|
android:paddingLeft="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingBottom="14dp"
|
|
android:text="@string/select_shape"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_regular" />
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/shape_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:letterSpacing="@dimen/description_letter_spacing"
|
|
android:paddingLeft="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingBottom="14dp"
|
|
android:text="@string/select_shape"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_regular" />
|
|
</LinearLayout>
|
|
|
|
<net.osmand.plus.widgets.FlowLayout
|
|
android:id="@+id/select_shape"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginTop="6dp" />
|
|
|
|
<View
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:background="?attr/dashboard_divider" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/button_replace_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/replace_action_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="@string/update_existing"
|
|
android:paddingStart="16dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingTop="21dp"
|
|
android:paddingEnd="32dp"
|
|
android:paddingRight="32dp"
|
|
android:paddingBottom="21dp"
|
|
tools:src="@drawable/ic_action_replace" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/replace_action_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:text="@string/update_existing"
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
|
tools:text="@string/update_existing" />
|
|
|
|
<TextView
|
|
android:id="@+id/replace_action_description"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:lines="1"
|
|
android:text="@string/update_existing"
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
tools:text="@string/update_existing" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/button_delete_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/delete_action_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="@string/delete_point"
|
|
android:paddingStart="16dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="32dp"
|
|
android:paddingRight="32dp"
|
|
android:paddingBottom="12dp"
|
|
android:src="@drawable/ic_action_delete_dark" />
|
|
|
|
<TextView
|
|
android:id="@+id/delete_action_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:text="@string/shared_string_delete"
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
|
tools:text="@string/shared_string_delete" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/buttons_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<View
|
|
android:id="@+id/buttons_top_border"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?attr/divider_color" />
|
|
|
|
<include
|
|
layout="@layout/bottom_buttons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dialog_button_ex_height" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</FrameLayout> |