OsmAnd/OsmAnd/res/layout/fragment_import.xml

153 lines
5.4 KiB
XML
Raw Normal View History

2020-02-11 17:51:29 +01:00
<?xml version="1.0" encoding="utf-8"?>
2020-03-04 15:12:06 +01:00
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-02-12 17:54:25 +01:00
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"
2020-04-08 15:57:47 +02:00
android:background="?attr/activity_background_color">
2020-02-12 17:54:25 +01:00
2020-02-25 11:48:20 +01:00
<ExpandableListView
android:id="@+id/list"
2020-02-12 17:54:25 +01:00
android:layout_width="match_parent"
2020-02-24 15:34:05 +01:00
android:layout_height="match_parent"
2020-02-25 11:48:20 +01:00
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" />
2020-02-18 15:15:24 +01:00
2020-02-12 17:54:25 +01:00
<LinearLayout
android:id="@+id/buttons_container"
android:layout_width="match_parent"
2020-11-17 12:12:29 +01:00
android:layout_height="wrap_content"
2020-02-24 15:34:05 +01:00
android:layout_gravity="bottom"
2020-02-12 17:54:25 +01:00
android:background="?attr/bg_color"
android:gravity="center"
2020-11-17 12:12:29 +01:00
android:minHeight="@dimen/bottom_sheet_title_height"
2020-02-24 15:34:05 +01:00
android:orientation="vertical">
2020-02-12 17:54:25 +01:00
2020-02-24 15:34:05 +01:00
<include layout="@layout/divider" />
2020-02-12 17:54:25 +01:00
2020-02-24 15:34:05 +01:00
<LinearLayout
android:layout_width="match_parent"
2020-11-17 12:12:29 +01:00
android:layout_height="wrap_content"
2020-11-16 07:25:49 +01:00
android:orientation="horizontal">
2020-02-24 15:34:05 +01:00
2020-11-16 07:25:49 +01:00
<LinearLayout
android:id="@+id/file_size_container"
2020-02-24 15:34:05 +01:00
android:layout_width="0dp"
2020-11-17 12:12:29 +01:00
android:layout_height="wrap_content"
2020-11-16 07:25:49 +01:00
android:layout_weight="1"
android:orientation="vertical"
android:paddingLeft="@dimen/content_padding"
android:paddingTop="@dimen/bottom_sheet_title_padding_bottom"
android:paddingRight="@dimen/content_padding"
2020-11-17 12:12:29 +01:00
android:paddingBottom="@dimen/bottom_sheet_title_padding_bottom"
android:visibility="invisible"
tools:visibility="visible">
2020-02-24 15:34:05 +01:00
<net.osmand.plus.widgets.TextViewEx
2020-11-16 07:25:49 +01:00
android:id="@+id/file_size"
2020-11-17 12:12:29 +01:00
android:layout_width="wrap_content"
2020-11-16 07:25:49 +01:00
android:layout_height="wrap_content"
2020-02-24 15:34:05 +01:00
android:ellipsize="end"
2020-11-16 07:25:49 +01:00
android:letterSpacing="@dimen/description_letter_spacing"
2020-02-24 15:34:05 +01:00
android:maxLines="1"
2020-11-16 07:25:49 +01:00
android:textColor="?android:textColorPrimary"
2020-02-24 15:34:05 +01:00
android:textSize="@dimen/default_desc_text_size"
2020-11-17 12:12:29 +01:00
osmand:lineHeight="@dimen/default_desc_line_height"
2020-11-16 07:25:49 +01:00
osmand:typeface="@string/font_roboto_regular"
tools:text="567 MB" />
2020-02-24 15:34:05 +01:00
2020-11-16 07:25:49 +01:00
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/file_size_descr"
2020-11-17 12:12:29 +01:00
android:layout_width="wrap_content"
2020-11-16 07:25:49 +01:00
android:layout_height="wrap_content"
android:ellipsize="end"
android:gravity="start|center_vertical"
android:letterSpacing="@dimen/description_letter_spacing"
android:maxLines="1"
android:text="@string/approximate_file_size"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_desc_text_size"
2020-11-17 12:12:29 +01:00
osmand:lineHeight="@dimen/default_desc_line_height"
2020-11-16 07:25:49 +01:00
osmand:typeface="@string/font_roboto_regular" />
</LinearLayout>
2020-02-24 15:34:05 +01:00
<View
android:layout_width="@dimen/content_padding"
android:layout_height="match_parent" />
2020-11-17 13:09:05 +01:00
<LinearLayout
2020-11-25 18:02:52 +01:00
android:id="@+id/continue_button_container"
2020-11-17 12:12:29 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-11-16 07:25:49 +01:00
android:layout_marginLeft="@dimen/content_padding_half"
android:layout_marginTop="@dimen/content_padding_half"
android:layout_marginRight="@dimen/content_padding_half"
2020-11-17 13:09:05 +01:00
android:layout_marginBottom="@dimen/content_padding_half">
2020-02-24 15:34:05 +01:00
2020-11-17 13:09:05 +01:00
<include
2020-02-24 15:34:05 +01:00
android:id="@+id/continue_button"
2020-11-17 13:09:05 +01:00
layout="@layout/bottom_sheet_dialog_button"
android:visibility="visible" />
2020-02-24 15:34:05 +01:00
2020-11-17 13:09:05 +01:00
</LinearLayout>
2020-02-24 15:34:05 +01:00
</LinearLayout>
2020-02-12 17:54:25 +01:00
</LinearLayout>
2020-02-11 17:51:29 +01:00
2020-03-04 15:12:06 +01:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar"
2020-02-25 12:23:42 +01:00
android:layout_width="match_parent"
2020-11-16 07:25:49 +01:00
android:layout_height="wrap_content"
2020-02-25 12:23:42 +01:00
android:background="@android:color/transparent">
2020-02-24 15:34:05 +01:00
2020-03-04 15:12:06 +01:00
<com.google.android.material.appbar.CollapsingToolbarLayout
2020-02-24 15:34:05 +01:00
android:id="@+id/toolbar_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height_expanded"
2020-04-08 15:57:47 +02:00
android:background="?attr/actionModeBackground"
2020-11-16 07:25:49 +01:00
osmand:collapsedTitleTextAppearance="@style/AppBarTitle"
osmand:expandedTitleGravity="start|bottom"
2020-02-28 15:12:52 +01:00
osmand:expandedTitleMarginBottom="@dimen/content_padding_small"
osmand:expandedTitleMarginEnd="@dimen/content_padding"
osmand:expandedTitleMarginStart="@dimen/content_padding"
2020-02-24 15:34:05 +01:00
osmand:expandedTitleTextAppearance="@style/AppBarTitle"
osmand:layout_scrollFlags="scroll|exitUntilCollapsed">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.Toolbar
2020-02-24 15:34:05 +01:00
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height"
android:minHeight="@dimen/toolbar_height"
osmand:layout_collapseMode="pin"
2020-02-28 14:21:18 +01:00
osmand:layout_scrollFlags="scroll|enterAlways|exitUntilCollapsed"
2020-11-16 07:25:49 +01:00
osmand:title="@string/shared_string_import"
osmand:titleMarginEnd="0dp"
osmand:titleMarginStart="0dp">
2020-02-24 15:34:05 +01:00
2020-03-04 15:12:06 +01:00
</androidx.appcompat.widget.Toolbar>
2020-02-24 15:34:05 +01:00
2020-03-04 15:12:06 +01:00
</com.google.android.material.appbar.CollapsingToolbarLayout>
2020-02-24 15:34:05 +01:00
2020-03-23 17:18:08 +01:00
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
2020-02-27 12:11:18 +01:00
android:id="@+id/progress_bar"
2020-03-23 17:18:08 +01:00
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal"
2020-02-27 12:11:18 +01:00
android:layout_width="match_parent"
2020-03-23 17:18:08 +01:00
android:layout_height="5dp"
android:indeterminate="true"
2020-11-16 07:25:49 +01:00
android:visibility="gone"
2020-03-23 17:18:08 +01:00
osmand:mpb_progressStyle="horizontal"
osmand:mpb_setBothDrawables="true"
osmand:mpb_useIntrinsicPadding="false"
2020-02-27 12:11:18 +01:00
tools:visibility="visible" />
2020-03-04 15:12:06 +01:00
</com.google.android.material.appbar.AppBarLayout>
2020-02-24 15:34:05 +01:00
2020-03-04 15:12:06 +01:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>