diff --git a/android_app/app/src/androidTest/java/com/health/openscale/gui/UserAddTest.java b/android_app/app/src/androidTest/java/com/health/openscale/gui/UserAddTest.java index 6635a386..f6e97f09 100644 --- a/android_app/app/src/androidTest/java/com/health/openscale/gui/UserAddTest.java +++ b/android_app/app/src/androidTest/java/com/health/openscale/gui/UserAddTest.java @@ -139,7 +139,7 @@ public class UserAddTest { allOf(withId(R.id.rowBodyHeight), childAtPosition( withId(R.id.tableUserData), - 5)), + 6)), 1))); editText3.perform(scrollTo(), replaceText("180"), closeSoftKeyboard()); diff --git a/android_app/app/src/main/res/layout/activity_usersettings.xml b/android_app/app/src/main/res/layout/activity_usersettings.xml index 54ab459c..8466d7fd 100644 --- a/android_app/app/src/main/res/layout/activity_usersettings.xml +++ b/android_app/app/src/main/res/layout/activity_usersettings.xml @@ -12,287 +12,259 @@ android:background="?attr/colorPrimary" android:elevation="4dp" app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" - app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/> + app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> + android:layout_width="match_parent" + android:layout_height="wrap_content"> - + android:layout_height="wrap_content" + android:measureWithLargestChild="true" + android:padding="5dp" + android:stretchColumns="*"> - + - + android:layout_height="wrap_content" + android:text="@string/label_user_name" /> - + - + + + - - + - - - + android:layout_height="wrap_content" + android:labelFor="@id/txtBirthday" + android:text="@string/label_birthday" /> - - - - - - - - - - - - - + android:layout_height="wrap_content" + android:ems="10" + android:focusable="false" + android:inputType="date" /> + - + - - - - - - - - - - + android:layout_height="wrap_content" + android:text="@string/label_activity_level" /> - - - - - - - - - - - - - - + android:layout_height="wrap_content" + android:entries="@array/activity_level_entries" /> + - + - - - - + android:layout_height="wrap_content" + android:text="@string/label_gender" /> - + + + android:checked="true" + android:text="@string/label_male" /> - + android:text="@string/label_female" /> + + - + - + android:layout_height="wrap_content" + android:text="@string/label_measure_unit" /> - - - - - - - + android:layout_height="wrap_content" + android:orientation="horizontal" + android:id="@+id/groupMeasureUnit"> - + android:text="cm" + android:id="@+id/btnRadioCM" + android:checked="true" /> - - + android:text="in" + android:id="@+id/btnRadioINCH" /> + + - + + + android:layout_height="wrap_content" + android:text="@string/label_scale_unit" /> - - - - - - + android:layout_height="wrap_content" + android:orientation="horizontal" + android:id="@+id/groupScaleUnit"> - + android:text="kg" + android:id="@+id/btnRadioKG" + android:checked="true" /> - + android:text="lb" + android:id="@+id/btnRadioLB" /> - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -