diff --git a/res/layout/activity_parking.xml b/res/layout/activity_parking.xml
index ebf8e53..f48f56b 100644
--- a/res/layout/activity_parking.xml
+++ b/res/layout/activity_parking.xml
@@ -34,14 +34,16 @@
android:layout_height="wrap_content"
android:text="@string/puple_lot"
android:textColor="@color/black"
- android1:textColorLink="@color/pressed_unccgameday" />
+ android1:textColorLink="@color/pressed_unccgameday"
+ android:onClick="onRadioButtonClick" />
+ android1:textColor="@color/black"
+ android:onClick="onRadioButtonClick" />
+ android1:textColor="@color/black"
+ android:onClick="onRadioButtonClick" />
+ android1:textColor="@color/black"
+ android:onClick="onRadioButtonClick" />
+ android1:textColor="@color/black"
+ android:onClick="onRadioButtonClick" />
+ android1:textColor="@color/black"
+ android:onClick="onRadioButtonClick" />
+ android1:textColor="@color/black"
+ android:onClick="onRadioButtonClick" />
+ android1:textColor="@color/black"
+ android:onClick="onRadioButtonClick" />
+ android1:textColor="@color/black"
+ android:onClick="onRadioButtonClick" />
+ android1:textColor="@color/black"
+ android:onClick="onRadioButtonClick" />
+ android1:textColor="@color/black"
+ android:onClick="onRadioButtonClick" />
-
-
\ No newline at end of file
diff --git a/res/layout/lot_view.xml b/res/layout/lot_view.xml
new file mode 100644
index 0000000..afc6c3a
--- /dev/null
+++ b/res/layout/lot_view.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
diff --git a/src/com/uncc/gameday/activities/Parking.java b/src/com/uncc/gameday/activities/Parking.java
index 7535d3a..c5f11df 100644
--- a/src/com/uncc/gameday/activities/Parking.java
+++ b/src/com/uncc/gameday/activities/Parking.java
@@ -1,8 +1,13 @@
package com.uncc.gameday.activities;
+import android.app.FragmentManager;
import android.os.Bundle;
+import android.util.Log;
+import android.view.View;
import com.uncc.gameday.R;
+import com.uncc.gameday.activities.parking.LotViewFragment;
+import com.uncc.gameday.parking.ParkingChoice;
public class Parking extends MenuActivity {
@@ -12,4 +17,49 @@ public class Parking extends MenuActivity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_parking);
}
+
+ public void onRadioButtonClick(View v) {
+ FragmentManager fm = this.getFragmentManager();
+ LotViewFragment f = new LotViewFragment();
+ Bundle fBundle = new Bundle();
+
+ switch (v.getId()) {
+ case R.id.radioButtonBlack:
+ fBundle.putCharArray("CHOICE", ParkingChoice.BLACK.getValue().toCharArray());
+ break;
+ case R.id.radioButtonBlue:
+ fBundle.putCharArray("CHOICE", ParkingChoice.BLUE.getValue().toCharArray());
+ break;
+ case R.id.radioButtonGold:
+ fBundle.putCharArray("CHOICE", ParkingChoice.GOLD.getValue().toCharArray());
+ break;
+ case R.id.radioButtonGreen:
+ fBundle.putCharArray("CHOICE", ParkingChoice.GREEN.getValue().toCharArray());
+ break;
+ case R.id.radioButtonOrange:
+ fBundle.putCharArray("CHOICE", ParkingChoice.ORANGE.getValue().toCharArray());
+ break;
+ case R.id.radioButtonPink:
+ fBundle.putCharArray("CHOICE", ParkingChoice.PINK.getValue().toCharArray());
+ break;
+ case R.id.radioButtonPurple:
+ fBundle.putCharArray("CHOICE", ParkingChoice.PURPLE.getValue().toCharArray());
+ break;
+ case R.id.radioButtonRed:
+ fBundle.putCharArray("CHOICE", ParkingChoice.RED.getValue().toCharArray());
+ break;
+ case R.id.radioButtonSilver:
+ fBundle.putCharArray("CHOICE", ParkingChoice.SILVER.getValue().toCharArray());
+ break;
+ case R.id.radioButtonWhite:
+ fBundle.putCharArray("CHOICE", ParkingChoice.WHITE.getValue().toCharArray());
+ break;
+ case R.id.radioButtonYellow:
+ fBundle.putCharArray("CHOICE", ParkingChoice.YELLOW.getValue().toCharArray());
+ break;
+ }
+
+ f.setArguments(fBundle);
+ f.show(fm, "lot_view");
+ }
}
\ No newline at end of file
diff --git a/src/com/uncc/gameday/activities/parking/LotViewFragment.java b/src/com/uncc/gameday/activities/parking/LotViewFragment.java
new file mode 100644
index 0000000..840b19e
--- /dev/null
+++ b/src/com/uncc/gameday/activities/parking/LotViewFragment.java
@@ -0,0 +1,44 @@
+package com.uncc.gameday.activities.parking;
+
+import com.uncc.gameday.R;
+import com.uncc.gameday.parking.ParkingChoice;
+
+import android.app.DialogFragment;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+public class LotViewFragment extends DialogFragment {
+
+ public LotViewFragment(){
+ }
+
+ private void initializeData(ParkingChoice pc){
+
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+
+ ParkingChoice pc;
+ Bundle args = this.getArguments();
+
+ if (args.containsKey("CHOICE"))
+ pc = ParkingChoice.valueOf(String.valueOf((char[])args.get("CHOICE")));
+ else
+ pc = ParkingChoice.BLACK;
+
+ initializeData(pc);
+
+ View view = inflater.inflate(R.layout.lot_view, container);
+ getDialog().setTitle(pc.getValue());
+
+ if (view == null)
+ Log.e("LotViewFragment", "Unable to instantiate view!");
+ return view;
+ }
+
+}