OsmAnd/OsmAnd/res/layout/purchase_dialog_fragment.xml

186 lines
9 KiB
XML
Raw Normal View History

2018-04-19 19:43:51 +02:00
<?xml version="1.0" encoding="utf-8"?>
2020-04-22 21:04:00 +02:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-04-19 19:43:51 +02: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"
android:background="?attr/wikivoyage_bg_color"
android:clickable="true"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-04-19 19:43:51 +02:00
android:orientation="horizontal">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatImageView
2018-04-19 19:43:51 +02:00
android:id="@+id/button_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="@dimen/list_content_padding"
osmand:srcCompat="@drawable/ic_arrow_back"
2020-04-22 21:04:00 +02:00
android:tint="@color/icon_color_default_light" />
2018-04-19 19:43:51 +02:00
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/list_header_padding"
android:text="@string/purchase_dialog_title"
android:textColor="?attr/dialog_title_color"
android:textSize="@dimen/dialog_header_text_size"
2020-02-24 15:17:23 +01:00
osmand:typeface="@string/font_roboto_medium"
2020-04-22 21:04:00 +02:00
android:layout_marginStart="@dimen/list_header_padding" />
2018-04-19 19:43:51 +02:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/title_padding"
android:layout_marginLeft="@dimen/list_content_padding_large"
android:layout_marginRight="@dimen/list_content_padding_large"
2020-02-24 15:17:23 +01:00
android:orientation="vertical"
2020-04-22 21:04:00 +02:00
android:layout_marginStart="@dimen/list_content_padding_large"
android:layout_marginEnd="@dimen/list_content_padding_large">
2018-04-19 19:43:51 +02:00
<LinearLayout
android:id="@+id/info_container"
android:layout_width="match_parent"
2018-04-19 19:43:51 +02:00
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/info_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?attr/dialog_description_color"
android:textSize="@dimen/default_list_text_size"
2020-05-08 13:02:46 +02:00
android:letterSpacing="@dimen/text_button_letter_spacing"
android:lineSpacingMultiplier="@dimen/info_description_line_spacing_multiplier"
osmand:typeface="@string/font_roboto_regular"
2020-04-22 21:04:00 +02:00
tools:text="@string/purchase_dialog_travel_description" />
</LinearLayout>
2018-04-19 19:43:51 +02:00
</LinearLayout>
<LinearLayout
android:id="@+id/cards_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-04-22 21:04:00 +02:00
android:orientation="vertical" />
<LinearLayout
android:id="@+id/plan_info_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:layout_marginStart="@dimen/list_content_padding"
android:layout_marginEnd="@dimen/list_content_padding"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/plan_info_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?attr/dialog_description_color"
android:textSize="@dimen/default_desc_text_size"
2020-05-08 13:02:46 +02:00
android:letterSpacing="@dimen/description_letter_spacing"
android:lineSpacingMultiplier="@dimen/info_description_line_spacing_multiplier"
2020-04-22 21:04:00 +02:00
osmand:typeface="@string/font_roboto_regular"
android:text="@string/osm_live_payment_subscription_management" />
</LinearLayout>
2018-04-19 19:43:51 +02:00
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/card_padding"
android:layout_marginRight="@dimen/card_padding"
2020-04-22 21:04:00 +02:00
android:layout_marginTop="@dimen/list_header_padding"
2020-02-24 15:17:23 +01:00
android:background="?attr/wikivoyage_travel_card_bg"
2020-04-22 21:04:00 +02:00
android:layout_marginEnd="@dimen/card_padding"
android:layout_marginStart="@dimen/card_padding">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/button_restore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless"
android:gravity="center"
android:letterSpacing="@dimen/text_button_letter_spacing"
android:minHeight="@dimen/dialog_button_height"
android:paddingBottom="@dimen/list_header_padding"
android:paddingLeft="@dimen/list_content_padding"
android:paddingRight="@dimen/list_content_padding"
android:paddingTop="@dimen/list_header_padding"
android:text="@string/restore_purchases"
android:textColor="?attr/wikivoyage_active_color"
android:textSize="@dimen/text_button_text_size"
2020-02-24 15:17:23 +01:00
osmand:typeface="@string/font_roboto_regular"
2020-04-22 21:04:00 +02:00
android:paddingStart="@dimen/list_content_padding"
android:paddingEnd="@dimen/list_content_padding" />
<ProgressBar
android:id="@+id/progress_bar"
android:layout_width="32dp"
android:layout_height="32dp"
2020-02-24 15:17:23 +01:00
android:layout_gravity="center_vertical|end"
android:layout_marginRight="4dp"
android:layout_marginEnd="4dp"
android:indeterminate="true"
android:visibility="gone" />
</FrameLayout>
2018-04-19 19:43:51 +02:00
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/list_content_padding"
2018-04-28 16:53:25 +02:00
android:layout_marginLeft="@dimen/card_padding"
android:layout_marginRight="@dimen/card_padding"
android:layout_marginTop="4dp"
2020-02-24 15:17:23 +01:00
android:background="?attr/wikivoyage_travel_card_bg"
2020-04-22 21:04:00 +02:00
android:layout_marginEnd="@dimen/card_padding"
android:layout_marginStart="@dimen/card_padding">
2018-04-19 19:43:51 +02:00
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/button_later"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless"
2018-04-19 19:43:51 +02:00
android:gravity="center"
android:letterSpacing="@dimen/text_button_letter_spacing"
android:minHeight="@dimen/dialog_button_height"
android:paddingBottom="@dimen/list_header_padding"
android:paddingLeft="@dimen/list_content_padding"
android:paddingRight="@dimen/list_content_padding"
android:paddingTop="@dimen/list_header_padding"
android:text="@string/later"
android:textColor="?attr/wikivoyage_active_color"
android:textSize="@dimen/text_button_text_size"
2020-02-24 15:17:23 +01:00
osmand:typeface="@string/font_roboto_regular"
2020-04-22 21:04:00 +02:00
android:paddingStart="@dimen/list_content_padding"
android:paddingEnd="@dimen/list_content_padding" />
2018-04-19 19:43:51 +02:00
</FrameLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>