CSY2061-assignment-1/app/src/main/res/layout/activity_dice.xml

28 lines
920 B
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/dice_output"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="" />
<EditText
android:id="@+id/dice_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="10"
android:hint="@string/dice_hint"
android:inputType="number"
android:minHeight="48dp" />
<Button
android:id="@+id/dice_roll_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/dice_button_text" />
</LinearLayout>