OsmAnd/OsmAnd/res/layout/profile_preference_toolbar_with_switch.xml

85 lines
3.1 KiB
XML
Raw Normal View History

2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
2019-09-25 14:08:22 +02:00
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"
2020-05-28 09:03:40 +02:00
android:padding="0dp"
2019-09-25 14:08:22 +02:00
osmand:contentInsetLeft="0dp"
osmand:contentInsetStart="0dp"
2020-04-28 09:54:54 +02:00
osmand:contentInsetRight="0dp"
osmand:contentInsetEnd="0dp"
2019-09-25 14:08:22 +02:00
osmand:theme="@style/ThemeOverlay.AppCompat.ActionBar">
<LinearLayout
android:layout_width="match_parent"
2019-10-01 10:57:53 +02:00
android:layout_height="wrap_content"
2019-09-25 14:08:22 +02:00
android:background="?attr/card_and_list_background_basic"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
2019-10-01 10:57:53 +02:00
android:layout_height="wrap_content"
android:minHeight="@dimen/toolbar_height"
2019-09-25 14:08:22 +02:00
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"
2020-05-21 14:43:14 +02:00
android:layout_width="@dimen/toolbar_height"
android:layout_height="@dimen/toolbar_height"
2019-09-25 14:08:22 +02:00
android:contentDescription="@string/access_shared_string_navigate_up"
osmand:srcCompat="@drawable/ic_arrow_back"
2019-09-25 14:08:22 +02:00
android:tint="?attr/default_icon_color" />
<LinearLayout
2019-09-25 14:08:22 +02:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2019-09-25 14:08:22 +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"
android:layout_marginStart="@dimen/content_padding"
android:layout_marginEnd="@dimen/content_padding"
2020-01-20 11:06:44 +01:00
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"
2020-01-20 10:26:45 +01:00
android:maxLines="2"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/dialog_header_text_size"
osmand:typeface="@string/font_roboto_medium"
2020-05-28 09:03:40 +02:00
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"
2020-05-28 09:03:40 +02:00
tools:text="Some description" />
</LinearLayout>
2019-09-25 14:08:22 +02:00
<include
layout="@layout/profile_button_small"
android:layout_width="@dimen/list_header_height"
android:layout_height="@dimen/list_header_height"
2019-09-25 14:08:22 +02:00
android:layout_marginLeft="@dimen/content_padding_half"
android:layout_marginRight="@dimen/content_padding_half" />
</LinearLayout>
2019-09-26 12:27:44 +02:00
<include layout="@layout/preference_toolbar_switch" />
2019-09-25 14:08:22 +02:00
</LinearLayout>
2020-03-04 15:12:06 +01:00
</androidx.appcompat.widget.Toolbar>