OsmAnd/OsmAnd/res/layout/preference_activity.xml

132 lines
4.3 KiB
XML
Raw Normal View History

2014-12-30 11:45:33 +01:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
2020-05-29 19:53:55 +02:00
android:background="?attr/list_background_color">
2014-12-30 11:45:33 +01:00
2020-03-04 15:12:06 +01:00
<com.google.android.material.appbar.AppBarLayout
2017-02-19 13:34:42 +01:00
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.Toolbar
2015-01-08 14:55:21 +01:00
android:id="@+id/toolbar"
2014-12-30 11:45:33 +01:00
android:layout_width="match_parent"
2020-05-29 19:53:55 +02:00
android:layout_height="@dimen/toolbar_height"
android:padding="0dp"
android:background="?attr/colorPrimary">
2017-02-19 13:34:42 +01:00
<Spinner
android:id="@+id/spinner_nav"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-05-21 17:02:34 +02:00
android:layout_gravity="center_horizontal"
android:popupBackground="?attr/spinnerListBackground"/>
2017-02-19 13:34:42 +01:00
<ProgressBar android:id="@+id/ProgressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-02-24 15:17:23 +01:00
android:layout_gravity="end"/>
2017-02-19 13:34:42 +01:00
2020-03-04 15:12:06 +01:00
</androidx.appcompat.widget.Toolbar>
2020-03-04 15:12:06 +01:00
</com.google.android.material.appbar.AppBarLayout>
2014-12-30 11:45:33 +01:00
<LinearLayout
android:id="@+id/type_selection_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="?attr/selectableItemBackground"
android:clickable="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="64dp"
android:paddingStart="@dimen/content_padding"
android:paddingEnd="@dimen/content_padding_small"
android:paddingLeft="@dimen/content_padding"
android:paddingRight="@dimen/content_padding_small"
android:orientation="horizontal">
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/mode_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
android:layout_gravity="center_vertical"
tools:src="@drawable/ic_action_coordinates_latitude"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginEnd="@dimen/content_padding"
android:layout_marginRight="@dimen/content_padding"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/mode_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.ListItemTitle"
2019-07-04 20:49:32 +02:00
android:textColor="?android:textColorPrimary"
tools:text="Item Title"/>
<TextView
android:id="@+id/mode_subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
2019-07-04 20:49:32 +02:00
android:textColor="?android:textColorSecondary"
tools:text="Item additional desription"/>
</LinearLayout>
2019-07-04 20:49:32 +02:00
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/type_down_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:layout_gravity="center_vertical"
app:srcCompat="@drawable/ic_action_arrow_drop_down"/>
</LinearLayout>
</LinearLayout>
2014-12-30 11:45:33 +01:00
<FrameLayout
android:layout_width="match_parent"
2019-07-04 20:49:32 +02:00
android:layout_height="match_parent">
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
2014-12-30 11:45:33 +01:00
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
2019-07-02 10:11:22 +02:00
android:id="@+id/selector_shadow"
2019-07-04 18:58:10 +02:00
android:layout_width="match_parent"
2019-07-02 10:11:22 +02:00
android:layout_height="@dimen/abp__shadow_height"
app:srcCompat="@drawable/preference_activity_action_bar_shadow"
2019-07-04 20:49:32 +02:00
android:visibility="gone"
tools:ignore="ContentDescription"/>
2014-12-30 11:45:33 +01:00
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
2015-01-08 14:55:21 +01:00
android:id="@+id/shadowView"
2014-12-30 11:45:33 +01:00
android:layout_width="match_parent"
android:layout_height="@dimen/abp__shadow_height"
app:srcCompat="@drawable/preference_activity_action_bar_shadow"
2014-12-30 11:45:33 +01:00
tools:ignore="ContentDescription" />
2019-07-04 20:49:32 +02:00
2014-12-30 11:45:33 +01:00
</FrameLayout>
</LinearLayout>