commit | 84ca77faf44c7c2c80edb5d1f8db3885845da063 | [log] [tgz] |
---|---|---|
author | Dan Harrington <harringtond@chromium.org> | Thu May 06 16:38:51 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 06 16:38:51 2021 |
tree | 1266b35e6f9cf3a7b7cdbd29ecc7246a81c4e26c | |
parent | d7752f90bc7f8d5fb0cc2071615da8dd095ea5cc [diff] |
webfeed: Use compound drawable for unread indicator The primary goal of this CL is to fix the off-center active tab indicator provided by TabLayout. The use of ImageView affected TabLayout's behavior. Setting ImageView to GONE led to problems where the layout would not be updated after switching back to VISIBLE. Further, trying to work around this issue by updating the custom view after any changes led to more problems as setCustomView() doesn't work well when called multiple times. Finally, I tried a compound drawable instead of ImageView. This works better, as the layout is updated when the compound drawable is modified. Bug: b/187105312 Change-Id: I9c8a332d8c035e724539c2f450af348101047848 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2874968 Commit-Queue: Dan H <harringtond@chromium.org> Reviewed-by: Cathy Li <chili@chromium.org> Reviewed-by: Sky Malice <skym@chromium.org> Cr-Commit-Position: refs/heads/master@{#879871}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.