mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Target type: use dropdown instead of radio button
This commit is contained in:
@@ -167,29 +167,7 @@
|
||||
android:hint="@string/measurable_units_example"/>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
<FrameLayout
|
||||
android:id="@+id/targetTypeOuterBox"
|
||||
style="@style/FormOuterBox">
|
||||
<LinearLayout style="@style/FormInnerBox">
|
||||
<TextView
|
||||
style="@style/FormLabel"
|
||||
android:text="@string/target_type" />
|
||||
<RadioGroup
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<RadioButton android:id="@+id/targetTypeAtLeast"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/target_type_at_least"
|
||||
android:checked="true"/>
|
||||
<RadioButton android:id="@+id/targetTypeAtMost"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/target_type_at_most"/>
|
||||
</RadioGroup>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/targetOuterBox"
|
||||
android:layout_width="match_parent"
|
||||
@@ -230,6 +208,22 @@
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/targetTypeOuterBox"
|
||||
style="@style/FormOuterBox">
|
||||
<LinearLayout style="@style/FormInnerBox">
|
||||
<TextView
|
||||
style="@style/FormLabel"
|
||||
android:text="@string/target_type" />
|
||||
<TextView
|
||||
style="@style/FormDropdown"
|
||||
android:id="@+id/targetTypePicker"
|
||||
android:textColor="?attr/contrast100"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<!-- Reminder -->
|
||||
<FrameLayout style="@style/FormOuterBox">
|
||||
<LinearLayout style="@style/FormInnerBox">
|
||||
|
||||
@@ -185,8 +185,8 @@
|
||||
<string name="calendar">Calendar</string>
|
||||
<string name="unit">Unit</string>
|
||||
<string name="target_type">Target Type</string>
|
||||
<string name="target_type_at_least">At Least</string>
|
||||
<string name="target_type_at_most">At Most</string>
|
||||
<string name="target_type_at_least">At least</string>
|
||||
<string name="target_type_at_most">At most</string>
|
||||
<string name="example_question_boolean">e.g. Did you exercise today?</string>
|
||||
<string name="question">Question</string>
|
||||
<string name="target">Target</string>
|
||||
|
||||
Reference in New Issue
Block a user