Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created June 8, 2021 05:49
Show Gist options
  • Save codeforfun-jp/0f698c0b37fa7deb9095141685bfac3c to your computer and use it in GitHub Desktop.
Save codeforfun-jp/0f698c0b37fa7deb9095141685bfac3c to your computer and use it in GitHub Desktop.
CTB 7-1
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ResultActivity"
android:orientation="vertical"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GAME OVER"
android:textSize="30sp"/>
<TextView
android:id="@+id/scoreLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="150"
android:textSize="40sp"
android:layout_marginTop="80dp"/>
<TextView
android:id="@+id/highScoreLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="High Score : 300"
android:textSize="20sp"
android:layout_marginTop="80dp"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="もう一度プレイ"
android:layout_marginTop="50dp"
android:onClick="tryAgain"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment