fix: padding numberpickers

This commit is contained in:
Andries Smit 2022-03-18 14:32:20 +01:00 committed by osodebailar
parent 2b761eb7f9
commit 5621d5e1a8
11 changed files with 38 additions and 23 deletions

View file

@ -90,6 +90,7 @@
android:id="@+id/age" android:id="@+id/age"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginBottom="2dp"
app:customContentDescription="@string/age" /> app:customContentDescription="@string/age" />
</TableRow> </TableRow>
@ -112,6 +113,7 @@
android:id="@+id/tdd" android:id="@+id/tdd"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginBottom="2dp"
app:customContentDescription="@string/tdd_total" /> app:customContentDescription="@string/tdd_total" />
</TableRow> </TableRow>
@ -134,6 +136,7 @@
android:id="@+id/weight" android:id="@+id/weight"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginBottom="2dp"
app:customContentDescription="@string/weight_label" /> app:customContentDescription="@string/weight_label" />
</TableRow> </TableRow>

View file

@ -109,7 +109,7 @@
<CheckBox <CheckBox
android:id="@+id/alarmCheckBox" android:id="@+id/alarmCheckBox"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="40dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:checked="false" android:checked="false"
android:padding="2dp" android:padding="2dp"
@ -119,21 +119,22 @@
</LinearLayout> </LinearLayout>
<info.nightscout.androidaps.utils.ui.MinutesNumberPicker <info.nightscout.androidaps.utils.ui.MinutesNumberPicker
android:id="@+id/time" android:id="@+id/time"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
app:customContentDescription="@string/time_offset" /> android:layout_marginBottom="2dp"
app:customContentDescription="@string/time_offset" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:gravity="start" android:gravity="start"
android:paddingStart="5dp" android:paddingStart="5dp"
android:paddingEnd="5dp" android:paddingEnd="5dp"
android:text="@string/unit_minute_short" android:text="@string/unit_minute_short"
android:textAppearance="?android:attr/textAppearanceSmall" /> android:textAppearance="?android:attr/textAppearanceSmall" />
</TableRow> </TableRow>
@ -158,6 +159,7 @@
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginBottom="2dp"
app:customContentDescription="@string/careportal_newnstreatment_duration_label" /> app:customContentDescription="@string/careportal_newnstreatment_duration_label" />
<TextView <TextView

View file

@ -100,6 +100,7 @@
android:id="@+id/bg" android:id="@+id/bg"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginBottom="2dp"
app:customContentDescription="@string/treatments_wizard_bg_label" /> app:customContentDescription="@string/treatments_wizard_bg_label" />
<TextView <TextView

View file

@ -67,6 +67,7 @@
android:id="@+id/insulin" android:id="@+id/insulin"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginBottom="2dp"
app:customContentDescription="@string/overview_insulin_label" /> app:customContentDescription="@string/overview_insulin_label" />
<TextView <TextView

View file

@ -90,7 +90,8 @@
android:id="@+id/time" android:id="@+id/time"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
app:customContentDescription="@string/time_offset"/> android:layout_marginBottom="2dp"
app:customContentDescription="@string/time_offset" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -111,7 +111,8 @@
android:id="@+id/duration" android:id="@+id/duration"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
app:customContentDescription="@string/careportal_newnstreatment_duration_label"/> android:layout_marginBottom="2dp"
app:customContentDescription="@string/careportal_newnstreatment_duration_label" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -147,7 +148,8 @@
android:id="@+id/percentage" android:id="@+id/percentage"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
app:customContentDescription="@string/careportal_newnstreatment_percentage_label"/> android:layout_marginBottom="2dp"
app:customContentDescription="@string/careportal_newnstreatment_percentage_label" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -68,6 +68,7 @@
android:id="@+id/basal_percent_input" android:id="@+id/basal_percent_input"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginBottom="2dp"
app:customContentDescription="@string/basal_rate" /> app:customContentDescription="@string/basal_rate" />
<TextView <TextView
@ -104,6 +105,7 @@
android:id="@+id/basal_absolute_input" android:id="@+id/basal_absolute_input"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginBottom="2dp"
app:customContentDescription="@string/basal_rate" /> app:customContentDescription="@string/basal_rate" />
<TextView <TextView

View file

@ -68,7 +68,7 @@
android:id="@+id/temptarget" android:id="@+id/temptarget"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_gravity="center_vertical" android:layout_marginBottom="2dp"
app:customContentDescription="@string/target_label" /> app:customContentDescription="@string/target_label" />
<TextView <TextView

View file

@ -20,7 +20,8 @@
android:layout_gravity="center" android:layout_gravity="center"
android:background="?attr/dialogTitleBackground" android:background="?attr/dialogTitleBackground"
android:orientation="horizontal" android:orientation="horizontal"
android:padding="5dp"> android:padding="5dp"
android:layout_marginBottom="5dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -53,7 +54,8 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
android:text="@string/do_not_bolus_record_only" /> android:text="@string/do_not_bolus_record_only"
tools:visibility="gone"/>
</LinearLayout> </LinearLayout>
@ -77,6 +79,7 @@
android:id="@+id/insulin" android:id="@+id/insulin"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginBottom="2dp"
app:customContentDescription="@string/overview_insulin_label" /> app:customContentDescription="@string/overview_insulin_label" />
<TextView <TextView

View file

@ -72,6 +72,7 @@
android:id="@+id/bg_input" android:id="@+id/bg_input"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginBottom="2dp"
app:customContentDescription="@string/a11y_current_bg" /> app:customContentDescription="@string/a11y_current_bg" />
<TextView <TextView
@ -106,6 +107,7 @@
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginBottom="2dp"
app:customContentDescription="@string/treatments_wizard_carbs_label" /> app:customContentDescription="@string/treatments_wizard_carbs_label" />
<TextView <TextView

View file

@ -2,8 +2,6 @@ package info.nightscout.androidaps.activities
import android.content.Context import android.content.Context
import android.os.Bundle import android.os.Bundle
import androidx.appcompat.app.AppCompatDelegate
import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_NO
import info.nightscout.androidaps.core.R import info.nightscout.androidaps.core.R
import info.nightscout.androidaps.utils.locale.LocaleHelper import info.nightscout.androidaps.utils.locale.LocaleHelper