mirror of
https://github.com/bspeice/UNCCGameDay
synced 2024-11-05 07:38:13 -05:00
modified radio button to only selct one lot at a time
This commit is contained in:
parent
108f7b66d2
commit
4268221b9a
@ -1,134 +1,122 @@
|
|||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:tools="http://schemas.android.com/tools"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:android1="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:background="#7d9a43"
|
||||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||||
android:paddingTop="@dimen/activity_vertical_margin"
|
android:paddingTop="@dimen/activity_vertical_margin"
|
||||||
android:background="#7d9a43"
|
|
||||||
tools:context=".Parking" >
|
tools:context=".Parking" >
|
||||||
|
<TextView
|
||||||
<TextView
|
android1:id="@+id/textViewSelectLot"
|
||||||
android:id="@+id/textViewSelectLot"
|
android1:layout_width="wrap_content"
|
||||||
android:layout_width="wrap_content"
|
android1:layout_height="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android1:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentLeft="true"
|
android1:layout_alignParentTop="true"
|
||||||
android:layout_marginTop="21dp"
|
android1:layout_marginTop="5dp"
|
||||||
android:text="@string/title_parking_selection"
|
android1:text="@string/title_parking_selection"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
android1:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
android:textColor="@color/black" />
|
android1:textColor="@color/black" />
|
||||||
|
|
||||||
<RadioButton
|
<RadioGroup
|
||||||
android:id="@+id/radioButtonGreen"
|
android1:id="@+id/radioGroup1"
|
||||||
android:layout_width="wrap_content"
|
android1:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android1:layout_height="wrap_content"
|
||||||
android:layout_alignParentLeft="true"
|
android1:layout_alignLeft="@+id/textViewSelectLot"
|
||||||
android:layout_below="@+id/textViewSelectLot"
|
android1:layout_below="@+id/textViewSelectLot"
|
||||||
android:layout_marginTop="17dp"
|
android1:layout_marginTop="10dp" >
|
||||||
android:hint="@string/green_lot"
|
|
||||||
android:text="@string/green_lot"
|
|
||||||
android:textColor="@color/black"
|
|
||||||
android:textColorHint="@color/green" />
|
|
||||||
|
|
||||||
<RadioButton
|
|
||||||
android:id="@+id/radioButtonRed"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignLeft="@+id/radioButtonBlack"
|
|
||||||
android:layout_below="@+id/radioButtonBlack"
|
|
||||||
android:layout_marginTop="15dp"
|
|
||||||
android:text="@string/red_lot"
|
|
||||||
android:textColor="@color/black" />
|
|
||||||
|
|
||||||
<RadioButton
|
|
||||||
android:id="@+id/radioButtonBlue"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignBaseline="@+id/radioButtonRed"
|
|
||||||
android:layout_alignBottom="@+id/radioButtonRed"
|
|
||||||
android:layout_alignRight="@+id/radioButtonGold"
|
|
||||||
android:text="@string/blue_lot"
|
|
||||||
android:textColor="@color/black" />
|
|
||||||
|
|
||||||
<RadioButton
|
|
||||||
android:id="@+id/radioButtonSilver"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignLeft="@+id/radioButtonRed"
|
|
||||||
android:layout_below="@+id/radioButtonRed"
|
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:text="@string/silver_lot"
|
|
||||||
android:textColor="@color/black" />
|
|
||||||
|
|
||||||
<RadioButton
|
|
||||||
android:id="@+id/radioButtonOrange"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignBaseline="@+id/radioButtonSilver"
|
|
||||||
android:layout_alignBottom="@+id/radioButtonSilver"
|
|
||||||
android:layout_alignLeft="@+id/radioButtonBlue"
|
|
||||||
android:text="@string/orange_lot"
|
|
||||||
android:textColor="@color/black" />
|
|
||||||
|
|
||||||
<RadioButton
|
|
||||||
android:id="@+id/radioButtonYellow"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignLeft="@+id/radioButtonSilver"
|
|
||||||
android:layout_below="@+id/radioButtonSilver"
|
|
||||||
android:layout_marginTop="18dp"
|
|
||||||
android:text="@string/yellow_lot"
|
|
||||||
android:textColor="@color/black" />
|
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
android:id="@+id/radioButtonPurple"
|
android:id="@+id/radioButtonPurple"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignBaseline="@+id/radioButtonYellow"
|
|
||||||
android:layout_alignBottom="@+id/radioButtonYellow"
|
|
||||||
android:layout_alignLeft="@+id/radioButtonOrange"
|
|
||||||
android:text="@string/puple_lot"
|
android:text="@string/puple_lot"
|
||||||
android:textColor="@color/black" />
|
android:textColor="@color/black" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<RadioButton
|
||||||
|
android1:id="@+id/radioButtonGreen"
|
||||||
|
android1:layout_width="wrap_content"
|
||||||
|
android1:layout_height="wrap_content"
|
||||||
|
android1:text="@string/green_lot"
|
||||||
|
android1:textColor="@color/black"/>
|
||||||
|
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
android:id="@+id/radioButtonPink"
|
android1:id="@+id/radioButtonSilver"
|
||||||
android:layout_width="wrap_content"
|
android1:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android1:layout_height="wrap_content"
|
||||||
android:layout_alignLeft="@+id/radioButtonYellow"
|
android1:text="@string/silver_lot"
|
||||||
android:layout_below="@+id/radioButtonYellow"
|
android1:textColor="@color/black" />
|
||||||
android:layout_marginTop="18dp"
|
|
||||||
android:text="@string/pink_lot"
|
|
||||||
android:textColor="@color/black" />
|
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
android:id="@+id/radioButtonWhite"
|
android1:id="@+id/radioButtonYellow"
|
||||||
android:layout_width="wrap_content"
|
android1:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android1:layout_height="wrap_content"
|
||||||
android:layout_alignBaseline="@+id/radioButtonPink"
|
android1:text="@string/yellow_lot"
|
||||||
android:layout_alignBottom="@+id/radioButtonPink"
|
android1:textColor="@color/black" />
|
||||||
android:layout_alignLeft="@+id/radioButtonGold"
|
|
||||||
android:text="@string/white_lot"
|
|
||||||
android:textColor="@color/black" />
|
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
android:id="@+id/radioButtonGold"
|
android1:id="@+id/radioButtonBlue"
|
||||||
android:layout_width="wrap_content"
|
android1:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android1:layout_height="wrap_content"
|
||||||
android:layout_alignLeft="@+id/radioButtonGreen"
|
android1:text="@string/blue_lot"
|
||||||
android:layout_below="@+id/radioButtonWhite"
|
android1:textColor="@color/black" />
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:text="@string/gold_lot"
|
|
||||||
android:textColor="@color/black" />
|
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
android:id="@+id/radioButtonBlack"
|
android1:id="@+id/radioButtonBlack"
|
||||||
android:layout_width="wrap_content"
|
android1:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android1:layout_height="wrap_content"
|
||||||
android:layout_alignBaseline="@+id/radioButtonGreen"
|
android1:text="@string/black_lot"
|
||||||
android:layout_alignBottom="@+id/radioButtonGreen"
|
android1:textColor="@color/black" />
|
||||||
android:layout_toRightOf="@+id/textViewSelectLot"
|
|
||||||
android:text="@string/black_lot"
|
|
||||||
android:textColor="@color/black" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
<RadioButton
|
||||||
|
android1:id="@+id/radioButtonGold"
|
||||||
|
android1:layout_width="wrap_content"
|
||||||
|
android1:layout_height="wrap_content"
|
||||||
|
android1:text="@string/gold_lot"
|
||||||
|
android1:textColor="@color/black" />
|
||||||
|
|
||||||
|
<RadioButton
|
||||||
|
android1:id="@+id/radioButtonWhite"
|
||||||
|
android1:layout_width="wrap_content"
|
||||||
|
android1:layout_height="wrap_content"
|
||||||
|
android1:text="@string/white_lot"
|
||||||
|
android1:textColor="@color/black" />
|
||||||
|
|
||||||
|
<RadioButton
|
||||||
|
android1:id="@+id/radioButtonPink"
|
||||||
|
android1:layout_width="wrap_content"
|
||||||
|
android1:layout_height="wrap_content"
|
||||||
|
android1:text="@string/pink_lot"
|
||||||
|
android1:textColor="@color/black" />
|
||||||
|
|
||||||
|
<RadioButton
|
||||||
|
android1:id="@+id/radioButtonRed"
|
||||||
|
android1:layout_width="wrap_content"
|
||||||
|
android1:layout_height="wrap_content"
|
||||||
|
android1:text="@string/red_lot"
|
||||||
|
android1:textColor="@color/black" />
|
||||||
|
|
||||||
|
<RadioButton
|
||||||
|
android1:id="@+id/radioButtonOrange"
|
||||||
|
android1:layout_width="wrap_content"
|
||||||
|
android1:layout_height="wrap_content"
|
||||||
|
android1:text="@string/orange_lot"
|
||||||
|
android1:textColor="@color/black" />
|
||||||
|
</RadioGroup>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android1:id="@+id/button1"
|
||||||
|
android1:layout_width="wrap_content"
|
||||||
|
android1:layout_height="wrap_content"
|
||||||
|
android1:layout_alignParentBottom="true"
|
||||||
|
android1:layout_centerHorizontal="true"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android1:gravity="bottom|center_horizontal"
|
||||||
|
android1:text="@string/button_get_lot_info" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
@ -47,6 +47,9 @@
|
|||||||
<string name="pink_lot">Pink Lot</string>
|
<string name="pink_lot">Pink Lot</string>
|
||||||
<string name="white_lot">White Lot</string>
|
<string name="white_lot">White Lot</string>
|
||||||
<string name="gold_lot">Gold Lot</string>
|
<string name="gold_lot">Gold Lot</string>
|
||||||
|
|
||||||
|
<string name="button_clear_parking_choices">Clear Selections</string>
|
||||||
|
<string name="button_get_lot_info">Get Parking Info</string>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user