61 lines
2.4 KiB
XML
61 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<TextView
|
|
android:id="@+id/score"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:text="@string/default_score"
|
|
android:textSize="72pt" />
|
|
|
|
<TableLayout android:id="@+id/dice" android:layout_width="fill_parent" android:layout_height="wrap_content" >
|
|
|
|
<TableRow android:id="@+id/row1" android:layout_width="wrap_content" android:layout_height="wrap_content" >
|
|
|
|
<ImageView android:id="@+id/die1" style="@style/Die" />
|
|
<ImageView android:id="@+id/die2" style="@style/Die" />
|
|
<ImageView android:id="@+id/die3" style="@style/Die" />
|
|
<ImageView android:id="@+id/die4" style="@style/Die" />
|
|
<ImageView android:id="@+id/die5" style="@style/Die" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow android:id="@+id/row2" android:layout_width="wrap_content" android:layout_height="wrap_content" >
|
|
|
|
<ImageView android:id="@+id/die6" style="@style/Die" />
|
|
<ImageView android:id="@+id/die7" style="@style/Die" />
|
|
<ImageView android:id="@+id/die8" style="@style/Die" />
|
|
<ImageView android:id="@+id/die9" style="@style/Die" />
|
|
<ImageView android:id="@+id/die10" style="@style/Die" />
|
|
|
|
</TableRow>
|
|
</TableLayout>
|
|
|
|
|
|
|
|
<TableRow
|
|
android:id="@+id/row3"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<Button
|
|
android:id="@+id/roll"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dip"
|
|
android:text="@string/roll" />
|
|
|
|
<Button
|
|
android:id="@+id/reset"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dip"
|
|
android:text="@string/reset" />
|
|
|
|
</TableRow>
|
|
|
|
</LinearLayout> |