OsmAnd/OsmAnd/res/layout/point_editor_fragment.xml

305 lines
14 KiB
XML
Raw Normal View History

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"
xmlns:tools="http://schemas.android.com/tools"
2018-04-18 15:26:17 +02:00
android:id="@+id/point_edit_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-04-18 15:26:17 +02:00
android:fitsSystemWindows="true"
android:background="@android:color/transparent">
2015-09-25 22:43:27 +02:00
<LinearLayout
2016-07-15 09:43:47 +02:00
android:id="@+id/background_layout"
2015-09-25 22:43:27 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2016-07-08 16:51:22 +02:00
android:background="?attr/ctx_menu_info_view_bg"
2016-07-15 09:43:47 +02:00
android:clickable="true"
2015-09-25 22:43:27 +02:00
android:orientation="vertical">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="fill_parent"
android:layout_height="@dimen/dashboard_map_toolbar"
2016-07-08 16:51:22 +02:00
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"
2018-04-18 15:26:17 +02:00
android:layout_height="0dp"
android:layout_weight="1"
android:fillViewport="true">
2015-09-25 22:43:27 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2015-09-25 22:43:27 +02:00
<LinearLayout
android:id="@+id/main_view"
android:layout_width="match_parent"
2015-09-25 22:43:27 +02:00
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/title_view"
2015-09-25 22:43:27 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-07-08 16:51:22 +02:00
android:background="?attr/bg_color"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-07-08 16:51:22 +02:00
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"
2016-08-03 16:16:58 +02:00
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"
2017-01-08 21:48:43 +01:00
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"
2017-01-08 19:19:52 +01:00
tools:text="@string/shared_string_name"/>
</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_marginLeft="12dp"
android:layout_marginStart="12dp"
android:layout_marginTop="2dp"
2016-08-03 16:16:58 +02:00
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"
2017-01-08 08:37:37 +01:00
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
2015-09-25 22:43:27 +02:00
android:layout_width="match_parent"
2016-07-08 16:51:22 +02:00
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"
2018-04-19 10:44:41 +02:00
android:maxLines="1000"
android:textColor="?android:textColorPrimary"
android:textColorHint="?android:textColorSecondary"/>
</LinearLayout>
</LinearLayout>
</FrameLayout>
2015-09-25 22:43:27 +02:00
</LinearLayout>
</LinearLayout>
</ScrollView>
2015-09-25 22:43:27 +02:00
2016-07-08 16:51:22 +02:00
<LinearLayout
2018-04-18 15:26:17 +02:00
android:id="@+id/buttons_container"
2016-07-08 16:51:22 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-04-18 15:26:17 +02:00
android:orientation="vertical">
2016-07-08 16:51:22 +02:00
<View
2018-04-18 15:26:17 +02:00
android:id="@+id/buttons_top_border"
android:layout_width="match_parent"
2016-07-08 16:51:22 +02:00
android:layout_height="1dp"
2018-04-18 15:26:17 +02:00
android:background="@color/divider_color"/>
2016-07-08 16:51:22 +02:00
2018-04-18 15:26:17 +02:00
<LinearLayout
android:id="@+id/buttons_layout"
android:layout_width="match_parent"
2016-07-08 16:51:22 +02:00
android:layout_height="wrap_content"
2018-04-18 15:26:17 +02:00
android:background="?attr/ctx_menu_info_view_bg"
android:orientation="horizontal">
2016-07-08 16:51:22 +02:00
2018-04-18 15:26:17 +02:00
<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>
2016-07-08 16:51:22 +02:00
2018-04-18 15:26:17 +02:00
</LinearLayout>
2016-07-08 16:51:22 +02:00
</LinearLayout>
2018-04-18 15:26:17 +02:00
2015-09-25 22:43:27 +02:00
</FrameLayout>