2015-09-25 22:43:27 +02:00
|
|
|
<?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"
|
2015-12-01 10:20:21 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2015-09-25 22:43:27 +02:00
|
|
|
android:id="@+id/point_edit_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@android:color/transparent">
|
|
|
|
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="@dimen/dashboard_map_toolbar"
|
|
|
|
android:background="@drawable/gradient_toolbar"
|
|
|
|
android:minHeight="@dimen/dashboard_map_toolbar"
|
|
|
|
android:theme="?attr/toolbar_theme"
|
|
|
|
app:contentInsetLeft="72dp"
|
|
|
|
app:contentInsetStart="72dp">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/delete_button"
|
|
|
|
android:layout_width="?attr/actionBarSize"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:src="@drawable/ic_action_delete_dark"/>
|
|
|
|
|
2015-11-17 14:45:42 +01:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/ok_button"
|
|
|
|
android:layout_width="?attr/actionBarSize"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:src="@drawable/ic_action_done"/>
|
|
|
|
|
2015-09-25 22:43:27 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/save_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="right"
|
2015-11-04 13:38:06 +01:00
|
|
|
android:drawableLeft="@drawable/ic_action_done"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
2015-09-25 22:43:27 +02:00
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:text="@string/shared_string_save"/>
|
|
|
|
|
2015-11-17 14:45:42 +01:00
|
|
|
|
2015-09-25 22:43:27 +02:00
|
|
|
</android.support.v7.widget.Toolbar>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/main_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:clickable="true"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/title_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/bg_point_editor_view"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="48dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/header_caption"
|
2015-10-16 20:06:52 +02:00
|
|
|
android:layout_width="0dp"
|
2015-09-25 22:43:27 +02:00
|
|
|
android:layout_height="wrap_content"
|
2015-10-16 20:06:52 +02:00
|
|
|
android:layout_weight="1"
|
2015-09-25 22:43:27 +02:00
|
|
|
android:layout_marginLeft="16dp"
|
2015-12-01 10:20:21 +01:00
|
|
|
android:layout_marginRight="16dp"
|
2015-09-25 22:43:27 +02:00
|
|
|
android:layout_gravity="center_vertical"
|
2015-12-01 10:20:21 +01:00
|
|
|
tools:text="Point info"
|
2015-09-25 22:43:27 +02:00
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="@dimen/default_list_text_size"/>
|
|
|
|
|
2015-10-16 20:06:52 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/button_replace"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-11-19 18:17:51 +01:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2015-10-22 10:48:14 +02:00
|
|
|
android:textColor="?attr/contextMenuButtonColor"
|
2015-10-16 20:06:52 +02:00
|
|
|
android:text="@string/update_existing"
|
2015-10-22 19:26:54 +02:00
|
|
|
android:visibility="gone"/>
|
2015-10-16 20:06:52 +02:00
|
|
|
|
2015-09-25 22:43:27 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/name_image"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:layout_marginLeft="12dp"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:scaleType="center"
|
|
|
|
android:src="@drawable/ic_action_building_number"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/name_caption"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="12dp"
|
|
|
|
android:layout_marginRight="12dp"
|
|
|
|
android:text="@string/favourites_edit_dialog_name"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="@dimen/default_list_text_size"/>
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/name_edit"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textColorHint="?android:textColorSecondary"
|
2015-12-01 10:20:21 +01:00
|
|
|
tools:text="Name"
|
2015-11-30 14:02:09 +01:00
|
|
|
android:imeOptions="actionDone"
|
2015-09-25 22:43:27 +02:00
|
|
|
android:inputType="text"/>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/category_image"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:layout_marginLeft="12dp"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:scaleType="center"
|
|
|
|
android:src="@drawable/ic_action_building_number"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/category_caption"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="12dp"
|
|
|
|
android:layout_marginRight="12dp"
|
|
|
|
android:text="@string/favourites_edit_dialog_name"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="@dimen/default_list_text_size"/>
|
|
|
|
|
|
|
|
<net.osmand.plus.widgets.AutoCompleteTextViewEx
|
|
|
|
android:id="@+id/category_edit"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginRight="16dp"
|
2015-09-29 10:53:08 +02:00
|
|
|
android:layout_marginLeft="8dp"
|
2015-10-08 18:15:53 +02:00
|
|
|
android:editable="false"
|
2015-09-29 10:53:08 +02:00
|
|
|
android:drawableRight="@drawable/ic_action_arrow_drop_down"/>
|
2015-09-25 22:43:27 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:background="?attr/ctx_menu_info_view_bg"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/description_image"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="12dp"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:scaleType="center"
|
|
|
|
android:src="@drawable/ic_action_note_dark"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/description_edit"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:maxLines="8"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textColorHint="?android:textColorSecondary"
|
|
|
|
android:inputType="textMultiLine"/>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|