Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit a63528b

Browse files
keianhzoMortimerGoro
authored andcommitted
Fixed password prompt misalignment (#1338)
1 parent 80ddb7d commit a63528b

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

app/src/main/res/layout/prompt_auth.xml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,26 @@
6262
android:layout_width="match_parent"
6363
android:layout_height="40dp"
6464
android:orientation="horizontal">
65+
6566
<TextView
6667
android:id="@+id/authUsernameLabel"
67-
android:layout_width="110dp"
68+
android:layout_width="match_parent"
6869
android:layout_height="wrap_content"
69-
android:layout_weight="1"
70+
android:layout_weight="3"
7071
android:gravity="top|end"
7172
android:maxHeight="@dimen/prompt_content_max_height"
7273
android:scrollbars="vertical"
74+
android:text="@string/authentication_username"
7375
android:textAlignment="viewEnd"
74-
android:textSize="18sp"
75-
android:text="@string/authentication_username" />
76+
android:textSize="18sp" />
7677

7778
<org.mozilla.vrbrowser.ui.views.settings.SettingsEditText
7879
android:id="@+id/authUsername"
7980
style="@style/settingsEdit"
8081
android:layout_width="match_parent"
81-
android:layout_weight="100"
8282
android:layout_height="wrap_content"
8383
android:layout_marginStart="5dp"
84+
android:layout_weight="1"
8485
app:highlightedTextColor="@color/fog" />
8586
</LinearLayout>
8687

@@ -89,24 +90,26 @@
8990
android:layout_width="match_parent"
9091
android:layout_height="wrap_content"
9192
android:orientation="horizontal">
93+
9294
<TextView
9395
android:id="@+id/authPasswordLabel"
94-
android:layout_width="110dp"
96+
android:layout_width="match_parent"
9597
android:layout_height="wrap_content"
98+
android:layout_weight="3"
9699
android:gravity="top|end"
97100
android:maxHeight="@dimen/prompt_content_max_height"
98101
android:scrollbars="vertical"
102+
android:text="@string/authentication_password"
99103
android:textAlignment="viewEnd"
100-
android:textSize="18sp"
101-
android:text="@string/authentication_password" />
104+
android:textSize="18sp" />
102105

103106
<org.mozilla.vrbrowser.ui.views.settings.SettingsEditText
104107
android:id="@+id/authPassword"
105108
style="@style/settingsEdit"
106-
android:layout_width="0dp"
109+
android:layout_width="match_parent"
107110
android:layout_height="wrap_content"
108-
android:layout_weight="100"
109111
android:layout_marginStart="5dp"
112+
android:layout_weight="1"
110113
android:inputType="textPassword"
111114
app:highlightedTextColor="@color/fog" />
112115

0 commit comments

Comments
 (0)