172 lines
6 KiB
XML
172 lines
6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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="wrap_content"
|
|
android:layout_marginLeft="1dp"
|
|
android:layout_marginRight="1dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/button_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:baselineAligned="false"
|
|
android:minHeight="@dimen/dialog_button_ex_height"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="@dimen/card_padding"
|
|
android:paddingRight="@dimen/card_padding">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginTop="@dimen/list_header_padding"
|
|
android:layout_marginEnd="@dimen/list_content_padding"
|
|
android:layout_marginRight="@dimen/list_content_padding"
|
|
android:layout_marginBottom="@dimen/list_header_padding"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:textColor="?attr/dialog_title_color"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
osmand:typeface="@string/font_roboto_regular"
|
|
tools:text="Pay monthly" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/description"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:textColor="?attr/card_description_text_color"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_regular"
|
|
tools:text="Monthly payment" />
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/discount_banner_regular"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginStart="@dimen/list_item_button_padding"
|
|
android:layout_marginLeft="@dimen/list_item_button_padding"
|
|
android:background="?attr/text_rounded_bg_regular"
|
|
android:textColor="?attr/card_description_text_color"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_regular"
|
|
tools:text=" Save 20%! " />
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/discount_banner_active"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginStart="@dimen/list_item_button_padding"
|
|
android:layout_marginLeft="@dimen/list_item_button_padding"
|
|
android:background="?attr/text_rounded_bg_active"
|
|
android:textColor="@color/osmand_orange"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_regular"
|
|
tools:text=" Save 20%! " />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/button_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="?attr/btn_round_border_2">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dialog_button_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/list_header_padding">
|
|
|
|
<ProgressBar
|
|
android:id="@+id/button_progress"
|
|
android:layout_width="@dimen/card_button_progress_size_small"
|
|
android:layout_height="@dimen/card_button_progress_size_small"
|
|
android:indeterminate="true"
|
|
android:visibility="gone" />
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/button_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:letterSpacing="@dimen/text_button_letter_spacing"
|
|
android:maxWidth="@dimen/dialog_button_ex_max_width"
|
|
android:minWidth="@dimen/dialog_button_ex_min_width"
|
|
android:textColor="?attr/color_dialog_buttons"
|
|
android:textSize="@dimen/text_button_text_size"
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
tools:text="7,99€" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/button_ex_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="?attr/wikivoyage_primary_btn_bg">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/button_ex"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dialog_button_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/list_header_padding">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/button_ex_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:letterSpacing="@dimen/text_button_letter_spacing"
|
|
android:maxWidth="@dimen/dialog_button_ex_max_width"
|
|
android:minWidth="@dimen/dialog_button_ex_min_width"
|
|
android:textColor="@color/color_white"
|
|
android:textSize="@dimen/text_button_text_size"
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
tools:text="7,99€" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/div"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="@dimen/card_padding"
|
|
android:layout_marginRight="@dimen/card_padding"
|
|
android:background="?attr/wikivoyage_card_divider_color"
|
|
android:visibility="gone" />
|
|
|
|
</LinearLayout>
|