Skip to content

Commit

Permalink
For issue mozilla-mobile#10725 - Truncated account details
Browse files Browse the repository at this point in the history
 - Set the textview's height to "wrap_content" and added top/bottom padding to account for the size difference and maintain the original height
  • Loading branch information
Mihai Eduard Badea committed May 28, 2020
1 parent fe3a67a commit 95bcc5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/src/main/res/layout/fragment_login_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@
<TextView
android:id="@+id/webAddressText"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:textColor="?primaryText"
android:textSize="16sp"
android:paddingTop="@dimen/saved_logins_detail_menu_vertical_padding"
android:paddingBottom="@dimen/saved_logins_detail_menu_vertical_padding"
app:layout_constraintEnd_toEndOf="@id/webAddressHeader"
app:layout_constraintStart_toStartOf="@id/webAddressHeader"
app:layout_constraintTop_toBottomOf="@id/webAddressHeader"
Expand Down Expand Up @@ -75,11 +77,13 @@
<TextView
android:id="@+id/usernameText"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:textColor="?primaryText"
android:textSize="16sp"
android:layout_marginTop="1dp"
android:paddingTop="@dimen/saved_logins_detail_menu_vertical_padding"
android:paddingBottom="@dimen/saved_logins_detail_menu_vertical_padding"
app:layout_constraintEnd_toEndOf="@id/usernameHeader"
app:layout_constraintStart_toStartOf="@id/usernameHeader"
app:layout_constraintTop_toBottomOf="@id/usernameHeader"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,6 @@
<!-- Saved Logins Fragment -->
<dimen name="saved_logins_sort_menu_dropdown_chevron_icon_margin_start">10dp</dimen>
<dimen name="saved_logins_sort_menu_dropdown_chevron_icon_size">12dp</dimen>
<dimen name="saved_logins_detail_menu_vertical_padding">5dp</dimen>

</resources>

0 comments on commit 95bcc5d

Please sign in to comment.