86 lines
No EOL
3.1 KiB
XML
86 lines
No EOL
3.1 KiB
XML
<androidx.appcompat.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:osmand="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:padding="0dp"
|
|
osmand:contentInsetLeft="0dp"
|
|
osmand:contentInsetStart="0dp"
|
|
osmand:contentInsetRight="0dp"
|
|
osmand:contentInsetEnd="0dp"
|
|
osmand:theme="@style/ThemeOverlay.AppCompat.ActionBar">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/card_and_list_background_basic"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="@dimen/toolbar_height"
|
|
android:background="?attr/card_and_list_background_basic"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/close_button"
|
|
style="@style/Widget.AppCompat.Toolbar.Button.Navigation"
|
|
android:layout_width="@dimen/toolbar_height"
|
|
android:layout_height="@dimen/toolbar_height"
|
|
android:contentDescription="@string/access_shared_string_navigate_up"
|
|
osmand:srcCompat="@drawable/ic_arrow_back"
|
|
android:tint="?attr/default_icon_color" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginRight="@dimen/content_padding"
|
|
android:layout_marginStart="@dimen/content_padding"
|
|
android:layout_marginEnd="@dimen/content_padding"
|
|
android:paddingTop="@dimen/content_padding_half"
|
|
android:paddingBottom="@dimen/content_padding_half"
|
|
android:background="?attr/card_and_list_background_basic"
|
|
android:orientation="vertical">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/toolbar_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:letterSpacing="@dimen/text_button_letter_spacing"
|
|
android:maxLines="2"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textSize="@dimen/dialog_header_text_size"
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
tools:text="@string/routing_settings_2" />
|
|
|
|
<TextView
|
|
android:id="@+id/toolbar_subtitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:textAppearance="@style/TextAppearance.ContextMenuSubtitle"
|
|
android:textColor="@null"
|
|
tools:text="Some description" />
|
|
</LinearLayout>
|
|
|
|
<include
|
|
layout="@layout/profile_button_small"
|
|
android:layout_width="@dimen/list_header_height"
|
|
android:layout_height="@dimen/list_header_height"
|
|
android:layout_marginLeft="@dimen/content_padding_half"
|
|
android:layout_marginRight="@dimen/content_padding_half" />
|
|
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/preference_toolbar_switch" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.appcompat.widget.Toolbar> |