commit | e849e45c903db35e15644e0d82ae08d068146553 | [log] [tgz] |
---|---|---|
author | Andre Bandarra <andreban@google.com> | Mon Feb 18 11:16:52 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Feb 20 00:09:20 2019 |
tree | 1a15b931939e19a7246165e8437f54c2731b29c9 | |
parent | a0f74189722069171e591f52832d7f29f368fd9f [diff] |
Adds Activity metadata to set status-bar color in TWA - Adds a `android.support.customtabs.trusted.STATUS_BAR_COLOR` metadata to LauncherActivity, so developers can set the color directly on AndroidManifest.xml. - Not using android.R.primaryColor directly, as it would require adding this key to the Support Library, and getting the color from the resource retrieves the support library one, not the application. - Developer can still reference the value from styles by using: `<meta-data android:name="android.support.customtabs.trusted.STATUS_BAR_COLOR" android:resource="@color/colorPrimary" />` Change-Id: I1ca71fa6897c3129f86cf1ba1c82972a07796b35 Reviewed-on: https://chromium-review.googlesource.com/c/1476396 Reviewed-by: Pavel Shmakov <pshmakov@chromium.org> Reviewed-by: Peter Conn <peconn@chromium.org> Commit-Queue: Andre Bandarra <andreban@google.com>
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.