Merge pull request #183 from rICTx-T1D/rICTxT1D/Issue156

Fix for issue #156 (correct vertical alignment of label)
This commit is contained in:
Milos Kozak 2021-01-07 10:27:17 +01:00 committed by GitHub
commit 273b04f0e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View file

@ -83,7 +83,8 @@
<TableRow <TableRow
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:gravity="center_vertical">
<TextView <TextView
android:id="@+id/profilehelper_age_label" android:id="@+id/profilehelper_age_label"
@ -104,7 +105,8 @@
<TableRow <TableRow
android:id="@+id/profilehelper_tdd_row" android:id="@+id/profilehelper_tdd_row"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:gravity="center_vertical">
<TextView <TextView
android:id="@+id/profilehelper_tdd_label" android:id="@+id/profilehelper_tdd_label"
@ -125,7 +127,8 @@
<TableRow <TableRow
android:id="@+id/profilehelper_weight_row" android:id="@+id/profilehelper_weight_row"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:gravity="center_vertical">
<TextView <TextView
android:id="@+id/profilehelper_weigth_label" android:id="@+id/profilehelper_weigth_label"
@ -146,7 +149,8 @@
<TableRow <TableRow
android:id="@+id/profilehelper_basalpctfromtdd_row" android:id="@+id/profilehelper_basalpctfromtdd_row"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:gravity="center_vertical">
<TextView <TextView
android:id="@+id/profilehelper_basalpctfromtdd_label" android:id="@+id/profilehelper_basalpctfromtdd_label"

View file

@ -25,9 +25,6 @@ import info.nightscout.androidaps.core.R;
import info.nightscout.androidaps.utils.SafeParse; import info.nightscout.androidaps.utils.SafeParse;
import info.nightscout.androidaps.utils.ToastUtils; import info.nightscout.androidaps.utils.ToastUtils;
/**
* Created by mike on 28.06.2016.
*/
public class NumberPicker extends LinearLayout implements View.OnKeyListener, public class NumberPicker extends LinearLayout implements View.OnKeyListener,
View.OnTouchListener, View.OnClickListener { View.OnTouchListener, View.OnClickListener {