Chrome 自定义选项卡次要颜色
Chrome custom tab secondary color
我在我的应用程序中使用 Chrome 自定义选项卡。有一个额外的意图来设置名为 EXTRA_SECONDARY_TOOLBAR_COLOR 的辅助工具栏颜色,但是我看不到这种颜色在 Chrome 选项卡中实际使用的位置。我看到的唯一颜色是原色。
这用于设置辅助工具栏的颜色,也称为底部工具栏(参见 CustomTabsIntent.Builder#addToolbarItem)。
从 API 级别 24.1.0 开始,这种用于将项目添加到底部工具栏的方法已被 弃用 也赞成使用 RemoteViews, where you define the style in your app. Check CustomTabsIntent.Builder#setSecondaryToolbarViews for more information. There's an example on how to use it on the Github sample。
我在我的应用程序中使用 Chrome 自定义选项卡。有一个额外的意图来设置名为 EXTRA_SECONDARY_TOOLBAR_COLOR 的辅助工具栏颜色,但是我看不到这种颜色在 Chrome 选项卡中实际使用的位置。我看到的唯一颜色是原色。
这用于设置辅助工具栏的颜色,也称为底部工具栏(参见 CustomTabsIntent.Builder#addToolbarItem)。
从 API 级别 24.1.0 开始,这种用于将项目添加到底部工具栏的方法已被 弃用 也赞成使用 RemoteViews, where you define the style in your app. Check CustomTabsIntent.Builder#setSecondaryToolbarViews for more information. There's an example on how to use it on the Github sample。