habitica-android/Habitica/res/layout/fragment_promo_info.xml

128 lines
5.5 KiB
XML
Raw Normal View History

2020-09-01 10:53:46 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_margin="16dp">
<RelativeLayout
android:id="@+id/promo_banner"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:layout_marginBottom="16dp"
android:clipChildren="true"
android:clipToPadding="true">
<ImageView
android:id="@+id/promo_banner_left_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="false"/>
<ImageView
android:id="@+id/promo_banner_right_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"/>
<LinearLayout
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:id="@+id/promo_banner_title_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-09-17 11:23:27 +00:00
android:layout_marginBottom="6dp"/>
2020-09-01 10:53:46 +00:00
<TextView
android:id="@+id/promo_banner_subtitle_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-09-17 11:23:27 +00:00
style="@style/Overline"
2020-09-01 10:53:46 +00:00
android:textAllCaps="true"
2020-09-17 11:23:27 +00:00
android:layout_marginBottom="4dp"
2020-09-01 10:53:46 +00:00
/>
<TextView
android:id="@+id/promo_banner_duration_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/Subheader2"/>
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="60dp"
android:layout_marginRight="60dp"
android:gravity="center_horizontal"
android:textColor="@color/white"
android:textSize="16sp"
android:fontFamily="@string/font_family_medium"
android:layout_marginBottom="12dp"
android:layout_centerInParent="true"/>
</RelativeLayout>
<TextView
android:id="@+id/prompt_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textSize="15sp"
android:fontFamily="@string/font_family_medium"
android:layout_marginBottom="@dimen/spacing_large"/>
2020-09-15 07:28:34 +00:00
<TextView
2020-09-01 10:53:46 +00:00
android:id="@+id/prompt_button"
android:layout_width="match_parent"
2020-09-15 07:28:34 +00:00
android:layout_height="38dp"
android:textSize="16sp"
android:gravity="center" />
2020-09-01 10:53:46 +00:00
<TextView
android:id="@+id/instructions_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:fontFamily="@string/font_family_medium"
android:textSize="15sp"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_secondary"
2020-09-01 10:53:46 +00:00
android:text="@string/how_it_works"
android:layout_marginTop="22dp"
android:layout_marginBottom="7dp"/>
<TextView
android:id="@+id/instruction_description_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textSize="15sp"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_quad"
2020-09-01 10:53:46 +00:00
android:lineSpacingExtra="2dp"/>
<TextView
android:id="@+id/limitations_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:fontFamily="@string/font_family_medium"
android:textSize="15sp"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_secondary"
2020-09-01 10:53:46 +00:00
android:text="@string/limitations"
android:layout_marginTop="22dp"
android:layout_marginBottom="7dp"/>
<TextView
android:id="@+id/limitations_description_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textSize="15sp"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_quad"
2020-09-01 10:53:46 +00:00
tools:text="This is some text"
android:lineSpacingExtra="2dp"/>
</LinearLayout>
</androidx.core.widget.NestedScrollView>