OsmAnd/OsmAnd/res/layout/fragment_edit_poi.xml

151 lines
6.2 KiB
XML
Raw Normal View History

2015-08-18 17:06:20 +02:00
<LinearLayout
2015-08-12 16:42:04 +02:00
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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/spinnerListBackground"
2015-09-04 18:29:28 +02:00
android:clickable="true"
2015-08-12 16:42:04 +02:00
android:orientation="vertical"
tools:context="net.osmand.plus.osmedit.EditPoiDialogFragment">
2015-09-04 18:29:28 +02:00
2015-08-26 19:44:04 +02:00
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="fill_parent"
android:layout_height="@dimen/dashboard_map_toolbar"
2015-09-04 18:29:28 +02:00
android:background="?attr/pstsTabBackground"
2015-08-26 19:44:04 +02:00
android:minHeight="@dimen/dashboard_map_toolbar"
2015-09-04 18:29:28 +02:00
android:theme="?attr/toolbar_theme"
2015-08-26 19:44:04 +02:00
app:contentInsetLeft="72dp"
2015-09-04 18:29:28 +02:00
app:contentInsetStart="72dp"/>
2015-08-12 16:42:04 +02:00
2015-08-18 17:06:20 +02:00
<android.support.design.widget.CoordinatorLayout
2015-08-12 16:42:04 +02:00
android:layout_width="match_parent"
android:layout_height="0dp"
2015-08-18 17:06:20 +02:00
android:layout_weight="1"
android:orientation="vertical">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
2015-08-12 16:42:04 +02:00
android:layout_height="wrap_content"
2015-09-04 18:29:28 +02:00
android:background="?attr/pstsTabBackground"
android:theme="?attr/appbar_layout_theme">
2015-08-18 17:06:20 +02:00
<!-- TODO change theme -->
<LinearLayout
android:layout_width="fill_parent"
2015-08-12 16:42:04 +02:00
android:layout_height="wrap_content"
2015-08-18 17:06:20 +02:00
app:layout_scrollFlags="scroll">
2015-08-14 13:12:59 +02:00
2015-08-18 17:06:20 +02:00
<android.support.design.widget.TextInputLayout
2015-08-14 13:12:59 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2015-08-18 17:06:20 +02:00
android:layout_marginLeft="72dp"
2015-08-26 19:44:04 +02:00
android:layout_marginRight="16dp">
2015-08-12 16:42:04 +02:00
2015-08-18 17:06:20 +02:00
<EditText
android:id="@+id/poiNameEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-01-08 09:09:20 +01:00
android:hint="@string/shared_string_name"
2015-10-26 14:48:48 +01:00
android:imeOptions="actionNext"
android:inputType="textCapSentences"
2015-08-18 17:06:20 +02:00
tools:text="@string/lorem_ipsum"/>
2015-08-12 16:42:04 +02:00
2015-08-18 17:06:20 +02:00
</android.support.design.widget.TextInputLayout>
</LinearLayout>
2015-08-12 16:42:04 +02:00
2015-08-18 17:06:20 +02:00
<LinearLayout
android:layout_width="match_parent"
2015-08-12 16:42:04 +02:00
android:layout_height="wrap_content"
2015-08-18 17:06:20 +02:00
android:layout_marginBottom="8dp"
app:layout_scrollFlags="scroll">
<!--android:layout_marginLeft="72dp"-->
<ImageButton
android:id="@+id/poiTypeButton"
android:contentDescription="@string/poi_dialog_poi_type"
2015-08-18 17:06:20 +02:00
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="bottom"
android:background="@null"
android:src="@drawable/ic_action_label"/>
2015-08-12 16:42:04 +02:00
2015-08-18 17:06:20 +02:00
<android.support.design.widget.TextInputLayout
android:id="@+id/poiTypeTextInputLayout"
2015-08-18 17:06:20 +02:00
android:layout_width="0dp"
2015-08-12 16:42:04 +02:00
android:layout_height="wrap_content"
2015-08-18 17:06:20 +02:00
android:layout_marginLeft="24dp"
android:layout_weight="1">
<AutoCompleteTextView
android:id="@+id/poiTypeEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2015-09-04 18:29:28 +02:00
android:completionThreshold="1"
2015-08-18 17:06:20 +02:00
android:drawableRight="@drawable/ic_action_arrow_drop_down"
2015-08-31 16:31:25 +02:00
android:hint="@string/poi_dialog_poi_type"
2015-09-29 16:18:23 +02:00
android:imeOptions="actionSend"
android:inputType="text"
2015-08-18 17:06:20 +02:00
tools:text="@string/lorem_ipsum"/>
</android.support.design.widget.TextInputLayout>
<ImageButton
android:id="@+id/onlineDocumentationButton"
android:contentDescription="@string/shared_string_help"
2015-08-18 17:06:20 +02:00
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="bottom"
android:background="@null"
2015-08-31 16:31:25 +02:00
tools:src="@drawable/ic_action_help"/>
2015-08-18 17:06:20 +02:00
</LinearLayout>
<android.support.design.widget.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/bg_color"
2015-09-04 18:29:28 +02:00
app:layout_scrollFlags="scroll"
2015-12-30 11:28:13 +01:00
app:tabIndicatorColor="@color/osmand_orange"
app:tabSelectedTextColor="@color/osmand_orange"
2015-09-04 18:29:28 +02:00
app:tabTextColor="@android:color/darker_gray"/>
2015-08-18 17:06:20 +02:00
</android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
2015-08-12 16:42:04 +02:00
android:layout_width="match_parent"
2015-08-18 17:06:20 +02:00
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
</android.support.design.widget.CoordinatorLayout>
<View
android:id="@+id/buttonDivider"
2015-08-12 16:42:04 +02:00
android:layout_width="match_parent"
2015-08-18 17:06:20 +02:00
android:layout_height="1dp"
2015-09-23 17:24:28 +02:00
android:background="?attr/divider_color"/>
2015-08-18 17:06:20 +02:00
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:gravity="right">
2015-08-28 09:54:30 +02:00
<net.osmand.plus.widgets.ButtonEx
2015-08-18 17:06:20 +02:00
android:id="@+id/cancelButton"
2015-08-31 16:31:25 +02:00
style="@style/DashboardGeneralButton"
android:layout_height="48dp"
2015-08-31 16:31:25 +02:00
android:gravity="center"
2015-09-04 18:29:28 +02:00
android:text="@string/shared_string_cancel"
2015-08-28 09:54:30 +02:00
app:textAllCapsCompat="true"/>
2015-08-18 17:06:20 +02:00
2015-08-28 09:54:30 +02:00
<net.osmand.plus.widgets.ButtonEx
2015-08-18 17:06:20 +02:00
android:id="@+id/saveButton"
2015-08-31 16:31:25 +02:00
style="@style/DashboardGeneralButton"
android:layout_height="48dp"
2015-08-31 16:31:25 +02:00
android:gravity="center"
2015-09-04 18:29:28 +02:00
app:textAllCapsCompat="true"
tools:text="Save"/>
2015-08-18 17:06:20 +02:00
</LinearLayout>
</LinearLayout>