-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TTFCC] Making the entire sheet scrollable
This change applies for the bottom sheets for payments and passwords. For a relatively small amount of cards/passwords, the UI will still look the same. The difference is that the footer actions (scanning the card, going to payment settings, managing passwords) won't be fixed on the bottom of the bottom sheet in full height, but instead only reachable by scrolling down. Changes: - Separating the footers into their own xmls. - Sharing the main sheet layout between passwords and payments. - Moving the properties related to the footers into FooterProperties. - Updating the way of binding the footer Views. - Simplifying the sheet height calculation because the footer height is calculated the same way as for the other list items. - Updating the tests. - Updating the background selection. Screenshots: 2 cards, full height: https://screenshot.googleplex.com/8UuFmJiD66zVr54 2 cards: half height: https://screenshot.googleplex.com/4ydyBi82ZudeDTj many cards, full height initial: https://screenshot.googleplex.com/9BphTpcgVQ9Eurn many cards, full height scrolled: https://screenshot.googleplex.com/7CyxM6STQQYSnwg 3 passwords, half state: https://screenshot.googleplex.com/5P5PkU3oio5bct5 4 passwords half state: https://screenshot.googleplex.com/Bd8Y2yFGdXGWkew There is a TODO for fixing the case of 4 or more items. I'll fix it separately. Bug: 1247698 Change-Id: I108ac27aebec825b47129d22a50aef1b118d78f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4228007 Reviewed-by: Friedrich Horschig <fhorschig@chromium.org> Commit-Queue: Ivana Žužić <izuzic@google.com> Cr-Commit-Position: refs/heads/main@{#1107758}
- Loading branch information
Ivana Žužić
authored and
Chromium LUCI CQ
committed
Feb 21, 2023
1 parent
80a6385
commit ae94646
Showing
33 changed files
with
476 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
chrome/browser/touch_to_fill/android/internal/java/res/layout/touch_to_fill_footer_item.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright 2023 The Chromium Authors | ||
Use of this source code is governed by a BSD-style license that can be | ||
found in the LICENSE file. | ||
--> | ||
|
||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/touch_to_fill_footer" | ||
android:layout_width="match_parent" | ||
android:orientation="vertical" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_marginBottom="@dimen/ttf_buttons_vertical_margin" | ||
android:layout_marginTop="@dimen/ttf_sheet_padding"> | ||
|
||
<!-- Divider --> | ||
<View style="@style/HorizontalDivider" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/divider_height" | ||
android:layout_marginBottom="@dimen/ttf_buttons_vertical_margin"/> | ||
|
||
<TextView | ||
android:id="@+id/touch_to_fill_sheet_manage_passwords" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/ttf_buttons_height" | ||
android:paddingHorizontal="@dimen/ttf_sheet_padding" | ||
android:minHeight="48dp" | ||
android:gravity="center_vertical|start" | ||
android:textAppearance="@style/TextAppearance.TextLarge.Primary" | ||
android:background="?android:attr/selectableItemBackground" | ||
android:textDirection="locale" | ||
android:textAlignment="viewStart"/> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.