/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
android/res/layout/subscription_offer_card.xml
212 строк
9 KB
Александр Зацепин
[android] Migrated code to Android X
22 окт 2019, 15:11
22 окт 2019, 15:11
f2dd324
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="horizontal" android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content"> <androidx.cardview.widget.CardView android:id="@+id/annual_price_card" android:stateListAnimator="@animator/lift_on_touch" android:clickable="true" android:focusable="true" app:cardPreventCornerOverlap="false" app:cardUseCompatPadding="true" android:orientation="vertical" android:layout_width="@dimen/bookmarks_subs_offer_card_width" android:layout_height="match_parent" android:minHeight="@dimen/subs_card_min_height" app:cardBackgroundColor="?attr/bookmarkSubscriptionCardBg" app:cardCornerRadius="@dimen/bookmarks_subs_card_corner_radius" android:layout_marginRight="@dimen/margin_quarter" android:layout_marginEnd="@dimen/margin_quarter"> <RelativeLayout android:gravity="center_horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:id="@+id/annual_price_card_payload" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingBottom="@dimen/margin_half_plus"> <ImageView android:src="@drawable/img_annual_subscription_offer" android:layout_gravity="top" android:layout_marginTop="@dimen/divider_height" android:scaleType="fitCenter" android:adjustViewBounds="true" android:layout_width="match_parent" android:layout_height="wrap_content"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/margin_half_plus" android:textSize="@dimen/text_size_toolbar" android:textStyle="bold" android:layout_marginRight="@dimen/margin_half_plus" android:layout_marginStart="@dimen/margin_half_plus" android:layout_marginEnd="@dimen/margin_half_plus" android:layout_marginLeft="@dimen/margin_half_plus" android:textColor="?attr/bookmarkSubscriptionCardTextColor" android:textAppearance="?android:attr/textAppearanceLarge" android:gravity="center" android:duplicateParentState="true" android:lines="1" android:text="@string/annual_subscription_title" tools:text="Annual" tools:ignore="UnusedAttribute"/> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginRight="@dimen/margin_half_plus" android:layout_marginStart="@dimen/margin_half_plus" android:layout_marginEnd="@dimen/margin_half_plus" android:layout_marginLeft="@dimen/margin_half_plus" android:textAppearance="?android:attr/textAppearance" android:fontFamily="@string/robotoRegular" android:duplicateParentState="true" android:ellipsize="end" android:textStyle="normal" android:textColor="?attr/bookmarkSubscriptionCardTextColor" android:text="@string/annual_subscription_message" tools:text="1 month unlimited guides" tools:ignore="UnusedAttribute"/> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:layout_marginTop="@dimen/primary_button_min_height" android:layout_marginRight="@dimen/margin_half_plus" android:layout_marginStart="@dimen/margin_half_plus" android:layout_marginEnd="@dimen/margin_half_plus" android:layout_marginLeft="@dimen/margin_half_plus"> <TextView android:id="@+id/annual_price" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="@dimen/text_size_body_2" android:textStyle="bold" android:fontFamily="@string/robotoRegular" android:textColor="?attr/bookmarkSubscriptionCardTextColor" android:gravity="center" android:duplicateParentState="true" tools:text="3.99$" tools:ignore="UnusedAttribute"/> </LinearLayout> </LinearLayout> </RelativeLayout> <FrameLayout android:id="@+id/annual_price_card_edge" android:background="?attr/bookmarkSubscriptionCardEdge" android:duplicateParentState="true" android:layout_width="match_parent" android:layout_height="match_parent"/> </androidx.cardview.widget.CardView> <androidx.cardview.widget.CardView android:id="@+id/monthly_price_card" android:stateListAnimator="@animator/lift_on_touch" android:clickable="true" android:focusable="true" app:cardPreventCornerOverlap="false" app:cardUseCompatPadding="true" android:orientation="vertical" android:layout_width="@dimen/bookmarks_subs_offer_card_width" android:layout_height="match_parent" android:minHeight="@dimen/subs_card_min_height" app:cardBackgroundColor="?attr/bookmarkSubscriptionCardBg" app:cardCornerRadius="@dimen/bookmarks_subs_card_corner_radius" android:layout_marginStart="@dimen/margin_quarter" android:layout_marginLeft="@dimen/margin_quarter"> <RelativeLayout android:gravity="center_horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:id="@+id/monthly_price_card_payload" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingBottom="@dimen/margin_half_plus"> <ImageView android:src="@drawable/img_monthly_subscription_offer" android:layout_marginTop="@dimen/divider_height" android:scaleType="fitCenter" android:adjustViewBounds="true" android:layout_width="match_parent" android:layout_height="wrap_content"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/margin_half_plus" android:textSize="@dimen/text_size_toolbar" android:textStyle="bold" android:textColor="?attr/bookmarkSubscriptionCardTextColor" android:layout_marginRight="@dimen/margin_half_plus" android:layout_marginStart="@dimen/margin_half_plus" android:layout_marginEnd="@dimen/margin_half_plus" android:layout_marginLeft="@dimen/margin_half_plus" android:textAppearance="?android:attr/textAppearanceLarge" android:duplicateParentState="true" android:gravity="center" android:lines="1" android:text="@string/montly_subscription_title" tools:text="Annual" tools:ignore="UnusedAttribute"/> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginRight="@dimen/margin_half_plus" android:layout_marginStart="@dimen/margin_half_plus" android:layout_marginEnd="@dimen/margin_half_plus" android:layout_marginLeft="@dimen/margin_half_plus" android:textAppearance="?android:attr/textAppearance" android:textColor="?attr/bookmarkSubscriptionCardTextColor" android:fontFamily="@string/robotoRegular" android:textStyle="normal" android:ellipsize="end" android:text="@string/montly_subscription_message" tools:text="1 month unlimited guides" tools:ignore="UnusedAttribute"/> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="left|center" android:layout_marginTop="@dimen/primary_button_min_height" android:layout_marginRight="@dimen/margin_half_plus" android:layout_marginStart="@dimen/margin_half_plus" android:layout_marginEnd="@dimen/margin_half_plus" android:layout_marginLeft="@dimen/margin_half_plus"> <TextView android:id="@+id/monthly_price" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="@dimen/text_size_body_2" android:textStyle="bold" android:fontFamily="@string/robotoRegular" android:lineSpacingExtra="4sp" android:textColor="?attr/bookmarkSubscriptionCardTextColor" android:gravity="center" android:duplicateParentState="true" tools:text="3.99$" tools:ignore="UnusedAttribute"/> </LinearLayout> </LinearLayout> </RelativeLayout> <FrameLayout android:id="@+id/monthly_price_card_edge" android:duplicateParentState="true" android:background="?attr/bookmarkSubscriptionCardEdge" android:layout_width="match_parent" android:layout_height="match_parent"/> </androidx.cardview.widget.CardView> </LinearLayout>