mirror of
https://github.com/bspeice/UNCCGameDay
synced 2024-11-05 07:38:13 -05:00
UI updates
This commit is contained in:
parent
264c6020ea
commit
251a41eb67
@ -17,6 +17,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/home_label_recent_alerts"
|
android:text="@string/home_label_recent_alerts"
|
||||||
android:textColor="@color/black" />
|
android:textColor="@color/black" />
|
||||||
|
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|
||||||
<TableRow
|
<TableRow
|
||||||
@ -26,18 +27,38 @@
|
|||||||
android:layout_marginLeft="@dimen/activity_vertical_margin"
|
android:layout_marginLeft="@dimen/activity_vertical_margin"
|
||||||
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@color/eggshell"
|
android:background="@color/eggshell">
|
||||||
android:showDividers="end" >
|
<requestFocus/>
|
||||||
|
|
||||||
|
<ListView
|
||||||
|
android:id="@+id/alertsListView"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@android:color/transparent" >
|
||||||
|
|
||||||
|
</ListView>
|
||||||
|
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|
||||||
|
|
||||||
|
<TableRow
|
||||||
|
android:id="@+id/tableRow3"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="@dimen/activity_vertical_margin"
|
||||||
|
android:layout_marginRight="@dimen/activity_horizontal_margin">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/clearAlertsbutton"
|
android:id="@+id/clearAlertsButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_span="2"
|
||||||
|
android:layout_weight="1"
|
||||||
android:text="@string/button_clear_alerts"
|
android:text="@string/button_clear_alerts"
|
||||||
android:textColor="@color/black" />
|
android:textColor="@color/black" />
|
||||||
|
|
||||||
|
</TableRow>
|
||||||
|
|
||||||
</TableLayout>
|
</TableLayout>
|
||||||
|
|
||||||
|
@ -33,9 +33,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/puple_lot"
|
android:text="@string/puple_lot"
|
||||||
android:textColor="@color/black" />
|
android:textColor="@color/black"
|
||||||
|
android1:textColorLink="@color/pressed_unccgameday" />
|
||||||
|
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
android1:id="@+id/radioButtonGreen"
|
android1:id="@+id/radioButtonGreen"
|
||||||
@ -116,7 +115,7 @@
|
|||||||
android1:layout_alignParentBottom="true"
|
android1:layout_alignParentBottom="true"
|
||||||
android1:layout_centerHorizontal="true"
|
android1:layout_centerHorizontal="true"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black"
|
||||||
android1:gravity="bottom|center_horizontal"
|
android1:text="@string/button_get_lot_info"
|
||||||
android1:text="@string/button_get_lot_info" />
|
android1:textColorLink="@color/pressed_unccgameday" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
@ -60,7 +60,9 @@
|
|||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_below="@+id/studentName"
|
android:layout_below="@+id/studentName"
|
||||||
android:ems="10"
|
android:ems="10"
|
||||||
android:inputType="textPersonName" >
|
android:inputType="textPersonName"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textColorLink="@color/black" >
|
||||||
|
|
||||||
<requestFocus />
|
<requestFocus />
|
||||||
</EditText>
|
</EditText>
|
||||||
@ -72,7 +74,9 @@
|
|||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_below="@+id/studentOrganization"
|
android:layout_below="@+id/studentOrganization"
|
||||||
android:ems="10"
|
android:ems="10"
|
||||||
android:inputType="text" />
|
android:inputType="text"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textColorHint="@color/black" />
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/editSectionNumber"
|
android:id="@+id/editSectionNumber"
|
||||||
@ -81,7 +85,8 @@
|
|||||||
android:layout_alignLeft="@+id/sectionNumber"
|
android:layout_alignLeft="@+id/sectionNumber"
|
||||||
android:layout_below="@+id/sectionNumber"
|
android:layout_below="@+id/sectionNumber"
|
||||||
android:ems="10"
|
android:ems="10"
|
||||||
android:inputType="number" />
|
android:inputType="number"
|
||||||
|
android:textColor="@color/black" />
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/editRowNumber"
|
android:id="@+id/editRowNumber"
|
||||||
@ -90,7 +95,8 @@
|
|||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_below="@+id/studentRow"
|
android:layout_below="@+id/studentRow"
|
||||||
android:ems="10"
|
android:ems="10"
|
||||||
android:inputType="number" />
|
android:inputType="number"
|
||||||
|
android:textColor="@color/black" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/buttonSave"
|
android:id="@+id/buttonSave"
|
||||||
|
@ -18,5 +18,5 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
<color name="pressed_unccgameday">#CCB99F10</color>
|
<color name="pressed_unccgameday">#b8860b</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
<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="title_enter_location">Enter a city:</string>
|
||||||
|
|
||||||
<string name="button_clear_parking_choices">Clear Selections</string>
|
<string name="button_clear_parking_choices">Clear Selections</string>
|
||||||
<string name="button_get_lot_info">Get Parking Info</string>
|
<string name="button_get_lot_info">Get Parking Info</string>
|
||||||
|
@ -6,18 +6,37 @@ import android.content.Intent;
|
|||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.SharedPreferences.Editor;
|
import android.content.SharedPreferences.Editor;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.widget.Button;
|
||||||
|
import android.widget.TableLayout;
|
||||||
|
|
||||||
import com.uncc.gameday.R;
|
import com.uncc.gameday.R;
|
||||||
import com.uncc.gameday.alerts.AlertService;
|
import com.uncc.gameday.alerts.AlertService;
|
||||||
|
|
||||||
public class Home extends MenuActivity {
|
public class Home extends MenuActivity {
|
||||||
|
|
||||||
|
private TableLayout alertsScrollView;
|
||||||
|
|
||||||
|
Button clearAlertsButton;
|
||||||
|
Button getAlertsButton;
|
||||||
|
|
||||||
private final long alarmRate = 300000; // 5 Minutes
|
private final long alarmRate = 300000; // 5 Minutes
|
||||||
|
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_home);
|
setContentView(R.layout.activity_home);
|
||||||
|
|
||||||
|
alertsScrollView = (TableLayout) findViewById(R.id.alertsScrollView);
|
||||||
|
|
||||||
|
clearAlertsButton = (Button) findViewById(R.id.clearAlertsButton);
|
||||||
|
getAlertsButton = (Button) findViewById(R.id.getAlertsButton);
|
||||||
|
|
||||||
|
clearAlertsButton.setOnClickListener(clearAlertsButtonListener);
|
||||||
|
getAlertsButton.setOnClickListener(getAlertsButtonListener);
|
||||||
|
|
||||||
|
updateAlertsList(null);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Start up the AlarmManager to fetch alerts in the background
|
// Start up the AlarmManager to fetch alerts in the background
|
||||||
AlarmManager am = (AlarmManager) this.getSystemService(ALARM_SERVICE);
|
AlarmManager am = (AlarmManager) this.getSystemService(ALARM_SERVICE);
|
||||||
Intent alertFetcher = new Intent(this, AlertService.class);
|
Intent alertFetcher = new Intent(this, AlertService.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user