2019-09-26 12:27:44 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-03-04 15:12:06 +01:00
|
|
|
<androidx.appcompat.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-09-26 12:27:44 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/actionModeBackground"
|
2020-05-26 22:10:23 +02:00
|
|
|
android:minHeight="@dimen/toolbar_height"
|
2020-05-28 09:03:40 +02:00
|
|
|
android:padding="0dp"
|
2019-09-26 12:27:44 +02:00
|
|
|
app:contentInsetLeft="0dp"
|
2020-05-04 14:58:57 +02:00
|
|
|
app:contentInsetStart="0dp"
|
2020-04-28 09:54:54 +02:00
|
|
|
app:contentInsetRight="0dp"
|
2020-05-06 12:31:08 +02:00
|
|
|
app:contentInsetEnd="0dp"
|
2020-05-04 14:58:57 +02:00
|
|
|
app:theme="@style/ThemeOverlay.AppCompat.ActionBar">
|
2019-09-26 12:27:44 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2019-10-01 10:57:53 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-09-26 12:27:44 +02:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:minHeight="@dimen/toolbar_height"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/close_button"
|
|
|
|
style="@style/Widget.AppCompat.Toolbar.Button.Navigation"
|
2020-05-21 14:43:14 +02:00
|
|
|
android:layout_width="@dimen/toolbar_height"
|
|
|
|
android:layout_height="@dimen/toolbar_height"
|
2019-09-26 12:27:44 +02:00
|
|
|
android:contentDescription="@string/access_shared_string_navigate_up"
|
2020-05-13 13:34:36 +02:00
|
|
|
app:srcCompat="@drawable/ic_arrow_back" />
|
2019-09-26 12:27:44 +02:00
|
|
|
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
|
|
android:id="@+id/toolbar_title"
|
2020-05-25 12:11:57 +02:00
|
|
|
android:layout_width="0dp"
|
2019-10-28 15:02:14 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-05-25 12:11:57 +02:00
|
|
|
android:layout_weight="1"
|
2020-05-28 09:03:40 +02:00
|
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
|
|
android:layout_marginRight="@dimen/content_padding"
|
2020-01-20 10:26:45 +01:00
|
|
|
android:maxLines="2"
|
2019-09-26 12:27:44 +02:00
|
|
|
android:textColor="?attr/app_bar_primary_item_color"
|
|
|
|
android:textSize="@dimen/dialog_header_text_size"
|
|
|
|
app:typeface="@string/font_roboto_medium"
|
2020-05-28 09:03:40 +02:00
|
|
|
tools:text="@string/routing_settings_2" />
|
2019-09-26 12:27:44 +02:00
|
|
|
|
2020-05-28 09:12:03 +02:00
|
|
|
<FrameLayout
|
2020-05-25 12:11:57 +02:00
|
|
|
android:id="@+id/action_button"
|
2020-05-28 09:12:03 +02:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_width="@dimen/acceptable_touch_radius"
|
|
|
|
android:layout_height="@dimen/acceptable_touch_radius">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/action_button_icon"
|
|
|
|
style="@style/Widget.AppCompat.Toolbar.Button.Navigation"
|
|
|
|
android:layout_width="@dimen/standard_icon_size"
|
|
|
|
android:layout_height="@dimen/standard_icon_size"
|
|
|
|
android:layout_marginStart="@dimen/content_padding"
|
|
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
|
|
android:layout_marginEnd="@dimen/content_padding"
|
|
|
|
android:layout_marginRight="@dimen/content_padding"
|
|
|
|
android:contentDescription="@string/access_shared_string_navigate_up"
|
|
|
|
android:duplicateParentState="true"
|
|
|
|
android:clickable="false"
|
|
|
|
android:focusable="false"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
app:srcCompat="@drawable/ic_action_info_dark" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
2020-05-25 12:11:57 +02:00
|
|
|
|
2019-09-26 12:27:44 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<include layout="@layout/preference_toolbar_switch" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-03-04 15:12:06 +01:00
|
|
|
</androidx.appcompat.widget.Toolbar>
|