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

Fixed password prompt misalignment #1338

Merged
merged 1 commit into from
Jun 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions app/src/main/res/layout/prompt_auth.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,26 @@
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">

<TextView
android:id="@+id/authUsernameLabel"
android:layout_width="110dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_weight="3"
android:gravity="top|end"
android:maxHeight="@dimen/prompt_content_max_height"
android:scrollbars="vertical"
android:text="@string/authentication_username"
android:textAlignment="viewEnd"
android:textSize="18sp"
android:text="@string/authentication_username" />
android:textSize="18sp" />

<org.mozilla.vrbrowser.ui.views.settings.SettingsEditText
android:id="@+id/authUsername"
style="@style/settingsEdit"
android:layout_width="match_parent"
android:layout_weight="100"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
app:highlightedTextColor="@color/fog" />
</LinearLayout>

Expand All @@ -89,24 +90,26 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<TextView
android:id="@+id/authPasswordLabel"
android:layout_width="110dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="3"
android:gravity="top|end"
android:maxHeight="@dimen/prompt_content_max_height"
android:scrollbars="vertical"
android:text="@string/authentication_password"
android:textAlignment="viewEnd"
android:textSize="18sp"
android:text="@string/authentication_password" />
android:textSize="18sp" />

<org.mozilla.vrbrowser.ui.views.settings.SettingsEditText
android:id="@+id/authPassword"
style="@style/settingsEdit"
android:layout_width="0dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="100"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:inputType="textPassword"
app:highlightedTextColor="@color/fog" />

Expand Down