Multiple bug fixes

This commit is contained in:
2024-08-11 14:58:13 +02:00
parent 9f36411511
commit 910af92989
19 changed files with 320 additions and 447 deletions

View File

@ -1,44 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight="30"
android:layout_margin="@dimen/default_margin" >
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_margin="@dimen/default_margin"
android:layout_weight="30">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/tvRuleTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/start"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TimePicker
android:id="@+id/tpTimeFrameStart"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tvLastRule"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/end"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TimePicker
android:id="@+id/tpTimeFrameStop"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/tvRuleTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/start"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TimePicker
android:id="@+id/tpTimeFrameStart"
android:descendantFocusability="blocksDescendants"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tvLastRule"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/end"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TimePicker
android:id="@+id/tpTimeFrameStop"
android:descendantFocusability="blocksDescendants"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ImageView
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_margin="10dp"
android:background="#aa000000" />
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_margin="10dp"
android:background="#aa000000" />
<TextView
android:id="@+id/textView2"
@ -47,24 +49,24 @@
android:text="@string/insideOrOutsideTimeFrames"
android:textAppearance="?android:attr/textAppearanceLarge" />
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RadioButton
android:id="@+id/radioTimeFrameEntering"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="@string/entering" />
<RadioButton
android:id="@+id/radioTimeFrameLeaving"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/leaving" />
<RadioButton
android:id="@+id/radioTimeFrameEntering"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="@string/entering" />
<RadioButton
android:id="@+id/radioTimeFrameLeaving"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/leaving" />
</RadioGroup>
<ImageView
android:layout_width="match_parent"
android:layout_height="1dp"
@ -80,52 +82,52 @@
<TextView
android:id="@+id/tvDaysHint"
android:layout_marginVertical="@dimen/default_margin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="@dimen/default_margin"
android:textColor="@color/red" />
<CheckBox
android:id="@+id/checkMonday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/monday" />
<CheckBox
android:id="@+id/checkTuesday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/tuesday" />
<CheckBox
android:id="@+id/checkWednesday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wednesday" />
<CheckBox
android:id="@+id/checkThursday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/thursday" />
<CheckBox
android:id="@+id/checkFriday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/friday" />
<CheckBox
android:id="@+id/checkSaturday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/saturday" />
<CheckBox
android:id="@+id/checkSunday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sunday" />
<CheckBox
android:id="@+id/checkMonday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/monday" />
<CheckBox
android:id="@+id/checkTuesday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/tuesday" />
<CheckBox
android:id="@+id/checkWednesday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wednesday" />
<CheckBox
android:id="@+id/checkThursday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/thursday" />
<CheckBox
android:id="@+id/checkFriday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/friday" />
<CheckBox
android:id="@+id/checkSaturday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/saturday" />
<CheckBox
android:id="@+id/checkSunday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sunday" />
<ImageView
android:layout_width="match_parent"
@ -136,7 +138,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
android:orientation="horizontal">
<CheckBox
android:id="@+id/chkRepeat"
@ -146,22 +148,22 @@
<EditText
android:id="@+id/etRepeatEvery"
android:layout_marginLeft="@dimen/default_margin"
android:minWidth="75dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/default_margin"
android:enabled="false"
android:inputType="numberSigned" />
android:inputType="numberSigned"
android:minWidth="75dp" />
</LinearLayout>
<Button
android:id="@+id/bSaveTimeFrame"
<Button
android:id="@+id/bSaveTimeFrame"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/default_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/save" />
android:text="@string/save" />
</LinearLayout>
</ScrollView>