2022-05-26 09:56:06 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-05-26 14:42:32 +00:00
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-06-20 16:49:32 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2022-05-26 09:56:06 +00:00
|
|
|
android:layout_width="match_parent"
|
2023-06-20 16:49:32 +00:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
2022-05-26 14:42:32 +00:00
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/confetti_container"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent" />
|
2023-06-20 16:49:32 +00:00
|
|
|
|
|
|
|
|
<RelativeLayout
|
2022-05-26 14:42:32 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:gravity="center_horizontal"
|
2023-06-20 16:49:32 +00:00
|
|
|
android:orientation="vertical"
|
2022-05-26 14:42:32 +00:00
|
|
|
android:paddingHorizontal="23dp">
|
2023-06-20 16:49:32 +00:00
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:id="@+id/ghost_container"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="157dp"
|
|
|
|
|
android:layout_above="@id/loss_health_title"
|
|
|
|
|
android:layout_marginTop="@dimen/spacing_xlarge"
|
|
|
|
|
android:layout_marginBottom="@dimen/spacing_xlarge">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/ghost_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
|
android:src="@drawable/death_ghost" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/heart_view"
|
|
|
|
|
android:layout_width="110dp"
|
|
|
|
|
android:layout_height="110dp"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
|
android:src="@drawable/ic_broken_heart" />
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/loss_health_title"
|
|
|
|
|
style="@style/Title2"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_above="@id/loss_description"
|
|
|
|
|
android:layout_marginHorizontal="@dimen/spacing_xlarge"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:text="@string/you_ran_out_of_health"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/loss_description"
|
2022-05-26 09:56:06 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_centerHorizontal="true"
|
2023-06-20 16:49:32 +00:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginHorizontal="@dimen/spacing_xlarge"
|
|
|
|
|
android:layout_marginVertical="@dimen/spacing_medium"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:lineSpacingExtra="4dp"
|
|
|
|
|
android:textColor="@color/text_primary"
|
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_above="@id/restart_button"
|
|
|
|
|
android:layout_below="@id/loss_description"
|
|
|
|
|
android:layout_marginTop="@dimen/spacing_medium">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/loss_sub_description"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginHorizontal="@dimen/spacing_large"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:lineSpacingExtra="4dp"
|
|
|
|
|
|
|
|
|
|
android:text="@string/death_description"
|
|
|
|
|
android:textColor="@color/text_secondary"
|
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/restart_button"
|
|
|
|
|
style="@style/HabiticaButton.Maroon"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="69dp"
|
|
|
|
|
android:layout_above="@id/ad_button"
|
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
|
android:text="@string/faint_button"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.ads.AdButton
|
|
|
|
|
android:id="@+id/ad_button"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="60dp"
|
|
|
|
|
android:layout_above="@id/broken_equipment_text"
|
|
|
|
|
app:activeBackground="@drawable/ad_button_background_content"
|
|
|
|
|
app:text="@string/watch_ad_to_open"
|
|
|
|
|
app:textColor="@color/text_primary" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/broken_equipment_text"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
android:layout_margin="@dimen/spacing_large"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:text="@string/faint_broken_equipment"
|
|
|
|
|
android:textColor="@color/text_quad" />
|
2022-05-26 09:56:06 +00:00
|
|
|
</RelativeLayout>
|
2022-05-26 14:42:32 +00:00
|
|
|
</FrameLayout>
|