144 lines
5.1 KiB
XML
144 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/activity_background_color">
|
|
|
|
<ExpandableListView
|
|
android:id="@+id/list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:divider="@null"
|
|
android:dividerHeight="0dp"
|
|
android:drawSelectorOnTop="false"
|
|
android:focusable="false"
|
|
android:groupIndicator="@android:color/transparent"
|
|
android:listSelector="@android:color/transparent"
|
|
osmand:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/buttons_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dialog_button_ex_height"
|
|
android:layout_gravity="bottom"
|
|
android:background="?attr/bg_color"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<include layout="@layout/divider" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingTop="@dimen/content_padding_small"
|
|
android:paddingRight="@dimen/content_padding"
|
|
android:paddingBottom="@dimen/content_padding_small">
|
|
|
|
<FrameLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/select_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:ellipsize="end"
|
|
android:gravity="start|center_vertical"
|
|
android:maxLines="1"
|
|
android:paddingLeft="@dimen/content_padding_small"
|
|
android:paddingRight="@dimen/content_padding_small"
|
|
android:text="@string/shared_string_select_all"
|
|
android:textColor="?attr/active_color_basic"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
tools:text="Select all" />
|
|
|
|
</FrameLayout>
|
|
|
|
<View
|
|
android:layout_width="@dimen/content_padding"
|
|
android:layout_height="match_parent" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="?attr/dlg_btn_primary">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/continue_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:ellipsize="end"
|
|
android:gravity="center"
|
|
android:maxLines="1"
|
|
android:paddingLeft="@dimen/content_padding_small"
|
|
android:paddingRight="@dimen/content_padding_small"
|
|
android:text="@string/shared_string_continue"
|
|
android:textColor="?attr/dlg_btn_primary_text"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
tools:text="Continue" />
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
android:background="@android:color/transparent">
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
android:id="@+id/toolbar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/toolbar_height_expanded"
|
|
android:background="?attr/actionModeBackground"
|
|
osmand:expandedTitleMarginBottom="@dimen/content_padding_small"
|
|
osmand:expandedTitleMarginEnd="@dimen/content_padding"
|
|
osmand:expandedTitleMarginStart="@dimen/content_padding"
|
|
osmand:collapsedTitleTextAppearance="@style/AppBarTitle"
|
|
osmand:expandedTitleGravity="start|bottom"
|
|
osmand:expandedTitleTextAppearance="@style/AppBarTitle"
|
|
osmand:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
osmand:titleMarginEnd="0dp"
|
|
osmand:titleMarginStart="0dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/toolbar_height"
|
|
android:minHeight="@dimen/toolbar_height"
|
|
osmand:layout_collapseMode="pin"
|
|
osmand:layout_scrollFlags="scroll|enterAlways|exitUntilCollapsed"
|
|
osmand:title="@string/shared_string_import">
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
|
android:id="@+id/progress_bar"
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="5dp"
|
|
android:visibility="gone"
|
|
android:indeterminate="true"
|
|
osmand:mpb_progressStyle="horizontal"
|
|
osmand:mpb_setBothDrawables="true"
|
|
osmand:mpb_useIntrinsicPadding="false"
|
|
tools:visibility="visible" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|