From 0a80acace16838408c3febcf7faa05f3ea4ad156 Mon Sep 17 00:00:00 2001 From: tokugawa Date: Mon, 24 Feb 2014 19:20:43 -0500 Subject: [PATCH] Functionality for HW3. Tried to seperate Tile class and MainActivity. Has 2 issues. First is that a completed row has the Tile ImageViews change size and second is that finish()does not properly close the entire application. --- HW3/res/layout/activity_main.xml | 6 +- HW3/res/values/dimens.xml | 2 + HW3/src/com/uncc/hw3/MainActivity.java | 87 +++++++++++++++- HW3/src/com/uncc/hw3/ResultActivity.java | 6 +- HW3/src/com/uncc/hw3/Tile.java | 126 +++++++++++++++++++++++ 5 files changed, 222 insertions(+), 5 deletions(-) create mode 100644 HW3/src/com/uncc/hw3/Tile.java diff --git a/HW3/res/layout/activity_main.xml b/HW3/res/layout/activity_main.xml index 556bb40..6336ceb 100644 --- a/HW3/res/layout/activity_main.xml +++ b/HW3/res/layout/activity_main.xml @@ -194,7 +194,8 @@ android:layout_width="0dp" android:layout_height="40dp" android:layout_weight="1" - android:text="@string/btnNewGame" /> + android:text="@string/btnNewGame" + android:onClick="newGame"/>