-
-
Save codeforfun-jp/62a4db4298d0a88b4c3d217a754fd99c to your computer and use it in GitHub Desktop.
CTB 9-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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=".StartActivity" | |
android:orientation="vertical" | |
android:gravity="center"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@string/app_name" | |
android:textSize="32sp"/> | |
<TableLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="80dp"> | |
<TableRow | |
android:gravity="center_vertical"> | |
<ImageView | |
android:layout_width="20dp" | |
android:layout_height="20dp" | |
android:src="@drawable/pink"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="30 point" | |
android:textSize="18sp" | |
android:paddingLeft="10dp"/> | |
</TableRow> | |
<TableRow | |
android:gravity="center_vertical" | |
android:layout_marginTop="20dp"> | |
<ImageView | |
android:layout_width="20dp" | |
android:layout_height="20dp" | |
android:src="@drawable/orange"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="10 point" | |
android:textSize="18sp" | |
android:paddingLeft="10dp"/> | |
</TableRow> | |
<TableRow | |
android:gravity="center_vertical" | |
android:layout_marginTop="20dp"> | |
<ImageView | |
android:layout_width="20dp" | |
android:layout_height="20dp" | |
android:src="@drawable/black"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Game Over" | |
android:textSize="18sp" | |
android:paddingLeft="10dp"/> | |
</TableRow> | |
</TableLayout> | |
<Button | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="START" | |
android:layout_marginTop="60dp" | |
android:onClick="startGame"/> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment