<ScrollView
android:id="@+id/scrollView1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" >
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent" >
<LinearLayout
- android:layout_width="290dp"
- android:layout_height="422dp"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/changeDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="default"
android:onClick="chooseDate" />
<Button
</LinearLayout>
<TextView
- android:id="@+id/textView1"
+ android:id="@+id/text_gl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/glue"
+ android:text="@string/glue_week"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
<string name="app_name">Notdienst</string>
<string name="action_settings">Settings</string>
- <string name="glue">Glückstadt 8:00 - 8:00</string>
+ <string name="glue_week">Glückstadt 8:00 - 8:00</string>
<string name="itz">Itzehoe 8:00 - 8:00</string>
<string name="elm1">Elmshorn 9:00 - 9:00</string>
<string name="elm2">Elmshorn 9:00 - 20:00</string>
<string name="prev"><</string>
<string name="next">></string>
+ <string name="glue_sa">Glückstadt 17:00 - 19:00</string>
+ <string name="glue_so_hol">Glückstadt 9:00 - 13:00</string>
</resources>
\ No newline at end of file
private void updateDateLabel() {
dateLabel.setText(fmtDate.format(cal.getTime()));
+ if (cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {
+ ((TextView) findViewById(R.id.text_gl)).setText(R.string.glue_so_hol);
+ } else if (cal.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY) {
+ ((TextView) findViewById(R.id.text_gl)).setText(R.string.glue_sa);
+ } else {
+ ((TextView) findViewById(R.id.text_gl)).setText(R.string.glue_week);
+ }
//dateLabel.setText(fmtDate.format(cal.getTime()));
//cal.get(Calendar.DAY_OF_MONTH) + " "
// + cal.get(Calendar.DAY_OF_MONTH) + " "