37 lines
6.7 KiB
XML
37 lines
6.7 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<LinearLayout android:orientation="vertical" style="@style/UiKit.ViewGroup.Page.LinearLayout"
|
||
|
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||
|
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
|
||
|
<ScrollView android:id="@id/change_log_special_scrollview" android:layout_width="fill_parent" android:layout_height="fill_parent">
|
||
|
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
|
||
|
<androidx.cardview.widget.CardView android:id="@id/changelog_special_header_container" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="-24.0dip" app:cardCornerRadius="24.0dip">
|
||
|
<LinearLayout android:background="@drawable/bg_changelog_special_header" android:paddingTop="68.0dip" style="@style/UiKit.ViewGroup.LinearLayout">
|
||
|
<TextView android:textSize="32.0sp" android:textColor="@color/white" android:layout_gravity="center" android:text="@string/whats_new" style="@style/UiKit.TextView.H1.Bold" />
|
||
|
<TextView android:textSize="@dimen/uikit_textsize_large" android:textStyle="italic" android:textColor="@color/white" android:layout_gravity="center" android:id="@id/change_log_special_date" android:paddingLeft="@dimen/uikit_spacing_small" android:paddingRight="@dimen/uikit_spacing_small" android:text="@string/change_log_md_date" style="@style/UiKit.TextView.Subtext" />
|
||
|
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/changelog_special_header_art" android:scaleType="fitXY" android:adjustViewBounds="true" />
|
||
|
</LinearLayout>
|
||
|
</androidx.cardview.widget.CardView>
|
||
|
<androidx.cardview.widget.CardView android:layout_gravity="bottom|center" android:id="@id/changelog_special_video" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="-24.0dip" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" app:cardBackgroundColor="@color/transparent" app:cardCornerRadius="8.0dip" app:cardElevation="8.0dip">
|
||
|
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
|
||
|
<VideoView android:id="@id/change_log_video" android:layout_width="fill_parent" android:layout_height="184.0dip" />
|
||
|
<com.facebook.drawee.view.SimpleDraweeView android:layout_gravity="center" android:id="@id/change_log_thumbnail" android:visibility="gone" android:clickable="false" android:layout_width="fill_parent" android:layout_height="184.0dip" android:scaleType="fitXY" app:backgroundImage="@color/primary_900_alpha_60" />
|
||
|
<com.facebook.drawee.view.SimpleDraweeView android:layout_gravity="center" android:id="@id/change_log_video_overlay" android:padding="@dimen/uikit_spacing_medium" android:clickable="false" android:layout_width="64.0dip" android:layout_height="64.0dip" app:backgroundImage="@color/primary_900_alpha_60" app:placeholderImage="@drawable/ic_play_arrow_grey_24dp" app:placeholderImageScaleType="fitCenter" app:roundAsCircle="true" />
|
||
|
</FrameLayout>
|
||
|
</androidx.cardview.widget.CardView>
|
||
|
<com.discord.app.AppTextView android:textSize="@dimen/uikit_textsize_large" android:id="@id/change_log_body" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:layout_marginTop="-16.0dip" android:layout_marginBottom="@dimen/uikit_spacing_large" android:text="@string/change_log_md_body" android:lineSpacingMultiplier="1.0" android:fontFamily="@font/whitney_medium" style="@style/UiKit.TextView" />
|
||
|
<androidx.cardview.widget.CardView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" app:cardBackgroundColor="@color/white" app:cardCornerRadius="8.0dip" app:cardElevation="8.0dip">
|
||
|
<LinearLayout android:paddingTop="@dimen/uikit_spacing_xlarge" style="@style/UiKit.ViewGroup.LinearLayout">
|
||
|
<LinearLayout android:paddingLeft="@dimen/uikit_spacing_xlarge" android:paddingRight="@dimen/uikit_spacing_xlarge" style="@style/UiKit.ViewGroup.LinearLayout">
|
||
|
<TextView android:textColor="@color/black" android:gravity="center" android:layout_gravity="center" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/changelog_special_cta_title" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView.H1.Bold" />
|
||
|
<TextView android:textColor="@color/primary_dark_700" android:gravity="center" android:layout_gravity="center" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/changelog_special_cta_body" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView.Large" />
|
||
|
<com.google.android.material.button.MaterialButton android:gravity="center" android:layout_gravity="center" android:id="@id/change_log_special_button" android:layout_width="wrap_content" android:text="@string/changelog_special_cta" style="@style/UiKit.Material.Button" />
|
||
|
</LinearLayout>
|
||
|
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/uikit_spacing_xlarge" android:src="@drawable/changelog_special_cta_art" android:scaleType="fitXY" android:adjustViewBounds="true" />
|
||
|
</LinearLayout>
|
||
|
</androidx.cardview.widget.CardView>
|
||
|
</LinearLayout>
|
||
|
</ScrollView>
|
||
|
<ImageButton android:layout_gravity="start" android:id="@id/change_log_special_close" android:background="@color/transparent" android:layout_width="64.0dip" android:layout_height="64.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:src="@drawable/changelog_special_close" android:scaleType="fitXY" android:adjustViewBounds="true" />
|
||
|
<ImageButton android:layout_gravity="start" android:id="@id/change_log_special_back" android:background="@color/transparent" android:visibility="invisible" android:layout_width="64.0dip" android:layout_height="64.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:src="@drawable/changelog_special_back" android:scaleType="fitXY" android:adjustViewBounds="true" />
|
||
|
</FrameLayout>
|
||
|
</LinearLayout>
|