commit | 7dc51a489f0e6d5e62afcc95e760231f07122b14 | [log] [tgz] |
---|---|---|
author | Pavel Shmakov <pshmakov@google.com> | Thu Jul 25 12:42:03 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jul 25 15:32:03 2019 |
tree | a06e0cd1414bcb34191931aa923f60148f376988 | |
parent | 7a2c1374a368122d096842219a85e40862088fbe [diff] |
Use dark-mode related APIs in TWAs Recently the following APIs for CCTs were added: - setColorScheme - setColorSchemeParams - setNavigationBarColor TWA developers should be able to use them through TrustedWebActivityBuilder and related classes. This CL: - Updates TrustedWebActivityBuilder - Adds NAVIGATION_BAR_COLOR metadata for LauncherActivity - Updates PwaWrapperSplashScreenStrategy to ensure (whenever possible) that status and nav bar color are the same before and after browser launch. Change-Id: Ifc8c1b78682f78e292e01e2232244ac9defad3ee Reviewed-on: https://chromium-review.googlesource.com/c/custom-tabs-client/+/1680555 Commit-Queue: Pavel Shmakov <pshmakov@chromium.org> Reviewed-by: Peter Conn <peconn@chromium.org>
Chrome Custom Tabs provides a way for an application to customize and interact with a Chrome Activity
on Android. This makes the web content feel like being a part of the application, while retaining the full functionality and performance of a complete web browser.
Using Custom Tabs should be easy. This repository hosts examples and in-depth documentation. The examples are importable as projects into the Android Studio.
We want to hear your feedback! Please create bugs and start discussions using this template. Please use the template for any issues related to the Custom Tabs APIs, their implementation in Chrome, the examples in this repository, and related functionality of the Android Support Library.
Note: we know that the GitHub issue tracker is great! However, since Custom Tabs is mostly driven by Chrome developers, and we want to keep all bugs in one place, we prefer the Chromium issue tracker at the moment.
We accept contributions to Custom Tabs examples and documentation. Please see our contributor's guide.