Updated UI

Added a progress bar (indeterminate circle) centered over the roll
button. It is shown only during rolls.

Moved rolling to another thread

Roll Button is disabled during a roll

Change-Id: I6a6bfb9723af3b1292eb3df2f8810fb738f83876
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-02-09 08:36:36 -05:00
parent daf387c343
commit 115cca1cad
8 changed files with 117 additions and 31 deletions

View File

@@ -20,13 +20,26 @@
android:layout_centerHorizontal="true"
layout="@layout/dice_selector" />
<Button
android:id="@+id/roll_button"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/die_selector"
android:layout_marginTop="10dip"
android:text="@string/roll" />
android:layout_marginTop="10dip" >
<Button
android:id="@+id/roll_button"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/roll" />
<ProgressBar
android:id="@+id/roll_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:visibility="gone" />
</RelativeLayout>
</RelativeLayout>
<RelativeLayout