OsmAnd/OsmAnd/res/layout/fragment_import_duplicates.xml

143 lines
4.7 KiB
XML
Raw Normal View History

2020-02-11 17:51:29 +01:00
<?xml version="1.0" encoding="utf-8"?>
2020-02-24 15:34:05 +01:00
<android.support.design.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"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-02-25 12:23:42 +01:00
xmlns:tools="http://schemas.android.com/tools"
2020-02-24 15:34:05 +01:00
android:background="?attr/activity_background_basic">
2020-02-12 17:54:25 +01:00
2020-02-24 15:34:05 +01:00
<android.support.v4.widget.NestedScrollView
android:id="@+id/nested_scroll"
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"
osmand:layout_behavior="@string/appbar_scrolling_view_behavior">
2020-02-12 17:54:25 +01:00
2020-02-24 15:34:05 +01:00
<LinearLayout
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"
android:orientation="vertical">
2020-02-12 17:54:25 +01:00
2020-02-24 15:34:05 +01:00
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/bg_color"
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:text="@string/import_duplicates_description"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" />
<include
android:id="@+id/description_divider"
layout="@layout/card_bottom_divider" />
<android.support.v7.widget.RecyclerView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
2020-02-12 17:54:25 +01:00
2020-02-24 15:34:05 +01:00
</LinearLayout>
2020-02-12 17:54:25 +01:00
2020-02-24 15:34:05 +01:00
</android.support.v4.widget.NestedScrollView>
2020-02-18 15:15:24 +01:00
2020-02-12 17:54:25 +01:00
<LinearLayout
2020-02-24 15:34:05 +01:00
android:id="@+id/buttons_container"
2020-02-12 17:54:25 +01:00
android:layout_width="match_parent"
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"
2020-02-24 15:34:05 +01:00
android:orientation="vertical">
<include layout="@layout/divider" />
2020-02-12 17:54:25 +01:00
2020-02-24 15:34:05 +01:00
<LinearLayout
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"
android:orientation="vertical"
android:padding="@dimen/content_padding">
2020-02-12 17:54:25 +01:00
2020-02-24 15:34:05 +01:00
<FrameLayout
2020-02-12 17:54:25 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-02-24 15:34:05 +01:00
android:layout_marginBottom="@dimen/content_padding_half"
android:background="?attr/dlg_btn_secondary">
<net.osmand.view.ComplexButton
android:id="@+id/keep_both_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
osmand:setSubText="@string/keep_both_desc"
osmand:setSubTextColor="?android:textColorSecondary"
osmand:setText="@string/keep_both"
osmand:setTextColor="?attr/active_color_basic" />
</FrameLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/dlg_btn_primary">
2020-02-12 17:54:25 +01:00
2020-02-24 15:34:05 +01:00
<net.osmand.view.ComplexButton
android:id="@+id/replace_all_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
osmand:setSubText="@string/replace_all_desc"
osmand:setSubTextColor="?android:textColorTertiaryInverse"
osmand:setText="@string/replace_all"
osmand:setTextColor="?attr/dlg_btn_primary_text" />
2020-02-12 17:54:25 +01:00
2020-02-24 15:34:05 +01:00
</FrameLayout>
2020-02-12 17:54:25 +01:00
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-02-24 15:34:05 +01:00
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
2020-02-24 15:34:05 +01:00
android:layout_width="match_parent"
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
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/toolbar_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height_expanded"
2020-02-25 12:23:42 +01:00
android:background="?attr/colorPrimary"
2020-02-24 15:34:05 +01:00
osmand:collapsedTitleTextAppearance="@style/AppBarTitle"
osmand:expandedTitleGravity="start|bottom"
osmand:expandedTitleTextAppearance="@style/AppBarTitle"
osmand:layout_scrollFlags="scroll|exitUntilCollapsed">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
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/import_duplicates_title">
2020-02-24 15:34:05 +01:00
</android.support.v7.widget.Toolbar>
</android.support.design.widget.CollapsingToolbarLayout>
2020-02-25 12:23:42 +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-02-24 15:34:05 +01:00
</android.support.design.widget.AppBarLayout>
</android.support.design.widget.CoordinatorLayout>