Chrome 自定义标签颜色更改
Chrome custom tabs color change
如何更改 bar-shadow 的颜色、标题文本和进度条,就像 Android Twitter 应用程序中那样 (https://imgur.com/a/n0Rcbej) or Telegram (https://imgur.com/a/U9QLiwR)?
这是我的应用程序(https://imgur.com/a/KGiLR9t)
我无法将标签元添加到 html。不使用标签怎么办?
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
builder.setToolbarColor(ResourcesCompat.getColor(getResources(), R.color.blue, null));
builder.enableUrlBarHiding();
CustomTabsIntent customTabsIntent = builder.build();
customTabsIntent.launchUrl(this, Uri.parse(url));
设置条形阴影颜色是不可能的,你可以设置颜色条,它们将被填充为纯色,但不是所有颜色。我只找到了 3 种纯色:白色(#ffffff)像 twitter,黑色(#000000)和蓝色(#4d7f9e)像电报。
如何更改 bar-shadow 的颜色、标题文本和进度条,就像 Android Twitter 应用程序中那样 (https://imgur.com/a/n0Rcbej) or Telegram (https://imgur.com/a/U9QLiwR)?
这是我的应用程序(https://imgur.com/a/KGiLR9t)
我无法将标签元添加到 html。不使用标签怎么办?
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
builder.setToolbarColor(ResourcesCompat.getColor(getResources(), R.color.blue, null));
builder.enableUrlBarHiding();
CustomTabsIntent customTabsIntent = builder.build();
customTabsIntent.launchUrl(this, Uri.parse(url));
设置条形阴影颜色是不可能的,你可以设置颜色条,它们将被填充为纯色,但不是所有颜色。我只找到了 3 种纯色:白色(#ffffff)像 twitter,黑色(#000000)和蓝色(#4d7f9e)像电报。