give port input field a little more space

This commit is contained in:
Daniel Gultsch 2024-04-08 15:44:34 +02:00
parent b752508adb
commit ae35bce828
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -83,6 +83,7 @@
android:id="@+id/account_password_layout" android:id="@+id/account_password_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4sp"
android:hint="@string/password" android:hint="@string/password"
app:endIconMode="password_toggle"> app:endIconMode="password_toggle">
@ -97,50 +98,42 @@
android:id="@+id/name_port" android:id="@+id/name_port"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8sp"
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="1"> android:weightSum="1">
<LinearLayout
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/hostname_layout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="0.8" android:layout_weight="0.7"
android:orientation="vertical"> android:layout_marginEnd="4sp"
android:hint="@string/account_settings_hostname">
<com.google.android.material.textfield.TextInputLayout <EditText
android:id="@+id/hostname_layout" android:id="@+id/hostname"
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/account_settings_hostname"> android:inputType="textWebEmailAddress" />
</com.google.android.material.textfield.TextInputLayout>
<EditText
android:id="@+id/hostname"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textWebEmailAddress" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
<LinearLayout <com.google.android.material.textfield.TextInputLayout
android:id="@+id/port_layout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="0.2" android:layout_weight="0.3"
android:orientation="vertical"> android:layout_marginStart="4sp"
android:hint="@string/account_settings_port">
<com.google.android.material.textfield.TextInputLayout <EditText
android:id="@+id/port_layout" android:id="@+id/port"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:hint="@string/account_settings_port"> android:inputType="number"
android:maxLength="5" />
<EditText </com.google.android.material.textfield.TextInputLayout>
android:id="@+id/port"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="number"
android:maxLength="5" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<CheckBox <CheckBox
@ -194,9 +187,9 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="end" android:layout_gravity="end"
android:gravity="end"
android:layout_marginHorizontal="16dp" android:layout_marginHorizontal="16dp"
android:layout_marginBottom="16dp"> android:layout_marginBottom="16dp"
android:gravity="end">
<Button <Button
android:id="@+id/os_optimization_disable" android:id="@+id/os_optimization_disable"