306 lines
No EOL
14 KiB
XML
306 lines
No EOL
14 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:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/point_edit_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
android:background="@android:color/transparent">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/background_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/ctx_menu_info_view_bg"
|
|
android:clickable="true"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="@dimen/dashboard_map_toolbar"
|
|
android:background="@color/osmand_orange"
|
|
android:minHeight="@dimen/dashboard_map_toolbar"
|
|
android:theme="?attr/toolbar_theme"
|
|
app:contentInsetLeft="72dp"
|
|
app:contentInsetStart="72dp">
|
|
|
|
</android.support.v7.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:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/main_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/title_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/bg_color"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
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_marginLeft="12dp"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginTop="2dp"
|
|
android:scaleType="centerInside"
|
|
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/shared_string_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_marginLeft="8dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:imeOptions="actionDone"
|
|
android:inputType="text"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textColorHint="?android:textColorSecondary"
|
|
tools:text="@string/shared_string_name"/>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/category_row"
|
|
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_marginLeft="12dp"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginTop="2dp"
|
|
android:scaleType="centerInside"
|
|
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/shared_string_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_marginLeft="8dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:drawableRight="@drawable/ic_action_arrow_drop_down"
|
|
android:editable="false"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:foreground="@drawable/bg_contextmenu_shadow"
|
|
android:foregroundGravity="top|fill_horizontal">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/description_info_view"
|
|
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/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_gravity="center_vertical"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="16dp"
|
|
android:inputType="textMultiLine"
|
|
android:maxLines="1000"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textColorHint="?android:textColorSecondary"/>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
</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="@color/divider_color"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/buttons_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/ctx_menu_info_view_bg"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/delete_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:text="@string/shared_string_delete"
|
|
android:textColor="?attr/contextMenuButtonColor"/>
|
|
|
|
<Button
|
|
android:id="@+id/replace_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:text="@string/update_existing"
|
|
android:textColor="?attr/contextMenuButtonColor"
|
|
android:visibility="gone"/>
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_weight="1"/>
|
|
|
|
<Button
|
|
android:id="@+id/cancel_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:text="@string/shared_string_cancel"
|
|
android:textColor="?attr/contextMenuButtonColor"/>
|
|
|
|
<Button
|
|
android:id="@+id/save_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:text="@string/shared_string_save"
|
|
android:textColor="?attr/contextMenuButtonColor"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
</FrameLayout> |