OsmAnd/OsmAnd/res/layout/fragment_import_complete.xml

136 lines
4.9 KiB
XML
Raw Normal View History

2020-02-26 17:31:06 +01:00
<?xml version="1.0" encoding="utf-8"?>
2020-03-05 12:46:36 +01:00
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-02-26 17:31:06 +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-26 17:31:06 +01:00
2020-03-05 12:46:36 +01:00
<androidx.core.widget.NestedScrollView
2020-02-26 17:31:06 +01:00
android:id="@+id/nested_scroll"
android:layout_width="match_parent"
android:layout_height="match_parent"
osmand:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/bg_color"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/description"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="@dimen/content_padding"
android:paddingTop="@dimen/list_header_settings_top_margin"
android:paddingEnd="@dimen/content_padding"
android:paddingBottom="@dimen/list_header_settings_top_margin"
android:lineSpacingMultiplier="@dimen/line_spacing_multiplier_description"
2020-02-26 17:31:06 +01:00
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"
tools:text="@string/import_complete_description" />
<include
layout="@layout/divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/content_padding"
android:layout_marginLeft="@dimen/content_padding" />
</LinearLayout>
2020-03-05 12:46:36 +01:00
<androidx.recyclerview.widget.RecyclerView
2020-02-26 17:31:06 +01:00
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:paddingBottom="@dimen/bottom_sheet_cancel_button_height" />
</LinearLayout>
2020-03-05 12:46:36 +01:00
</androidx.core.widget.NestedScrollView>
2020-02-26 17:31:06 +01:00
<LinearLayout
android:id="@+id/button_container"
2020-02-26 17:31:06 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="?attr/bg_color"
android:orientation="vertical">
<include layout="@layout/divider" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dialog_button_height"
android:layout_marginStart="@dimen/content_padding"
android:layout_marginTop="@dimen/content_padding_small"
android:layout_marginEnd="@dimen/content_padding"
android:layout_marginBottom="@dimen/content_padding_small"
android:background="?attr/dlg_btn_secondary">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/button_close"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackground"
android:gravity="center"
android:text="@string/shared_string_close"
android:textColor="?attr/active_color_basic"
android:textSize="@dimen/default_desc_text_size"
osmand:typeface="@string/font_roboto_medium"
tools:text="Button" />
</FrameLayout>
</LinearLayout>
2020-03-05 12:46:36 +01:00
<com.google.android.material.appbar.AppBarLayout
2020-02-26 17:31:06 +01:00
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent">
2020-03-05 12:46:36 +01:00
<com.google.android.material.appbar.CollapsingToolbarLayout
2020-02-26 17:31:06 +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"
osmand:expandedTitleMarginBottom="@dimen/content_padding_small"
osmand:expandedTitleMarginEnd="@dimen/content_padding"
osmand:expandedTitleMarginStart="@dimen/content_padding"
2020-02-26 17:31:06 +01:00
osmand:collapsedTitleTextAppearance="@style/AppBarTitle"
osmand:expandedTitleGravity="start|bottom"
osmand:expandedTitleTextAppearance="@style/AppBarTitle"
osmand:layout_scrollFlags="scroll|exitUntilCollapsed">
2020-03-05 12:46:36 +01:00
<androidx.appcompat.widget.Toolbar
2020-02-26 17:31:06 +01:00
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height"
android:minHeight="@dimen/toolbar_height"
osmand:titleMarginEnd="0dp"
osmand:titleMarginStart="0dp"
2020-02-26 17:31:06 +01:00
osmand:layout_collapseMode="pin"
osmand:layout_scrollFlags="scroll|enterAlways|exitUntilCollapsed"
2020-03-05 12:46:36 +01:00
osmand:title="@string/shared_string_import_complete"/>
2020-02-26 17:31:06 +01:00
2020-03-05 12:46:36 +01:00
</com.google.android.material.appbar.CollapsingToolbarLayout>
2020-02-26 17:31:06 +01:00
<ImageView
android:id="@+id/shadowView"
android:layout_width="match_parent"
android:layout_height="@dimen/abp__shadow_height"
android:src="@drawable/preference_activity_action_bar_shadow"
tools:ignore="ContentDescription" />
2020-03-05 12:46:36 +01:00
</com.google.android.material.appbar.AppBarLayout>
2020-02-26 17:31:06 +01:00
2020-03-05 12:46:36 +01:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>