Android Chrome自定义标签可自定义 [英] Android chrome custom tab customizable
问题描述
Chrome自定义标签可自定义有多远?我们正在编写一个应用程序,它正在加载一个具有自己的标题(操作栏)和页脚的片段中的web视图。自定义标签是否以全屏模式加载,或者是以任何方式加载带有边距或类似内容的Chrome自定义标签页?
更改操作栏标题或色彩是不够的,我们的计划。
in how far is the chrome custom tab customizable? We are programming a app which is loading a webview in a fragment with an own header (action bar) and footer. Is custom tab loading in full screen or is their any way to load a chrome custom tab with a margin or something like that? To change the action bar title or color is not enough for our plan.
此外,我想了解的方式来显示CSS3正确的安卓版本,而不会铬(上面的Android 4.4版本,据我所知)。
Also i want to know about a way to display css3 properly in android versions without chromium (above android version 4.4 as far as i know).
感谢您提前。
推荐答案
在自定义选项卡活动发生的整个屏幕,但它是可以自定义工具栏(头),并于最新版本,增加一个底部的工具栏(页脚)。
The Custom Tabs Activity takes the whole screen, but it's is possible to customize the Toolbar (header) and, on most recent versions, to add a Bottom Toolbar (footer).
下面是自定义的可能的列表,包括自定义选项卡:
Here's a list of customizations possible with Custom Tabs:
- 自定义工具栏的颜色
- 向工具栏添加操作按钮
- 将菜单项添加到溢出菜单
- 自定义后退按钮图标
- 自定义启动/退出动画
- Custom Toolbar color
- Adding an Action button to the Toolbar
- Adding Menu Items to the overflow menu
- Custom Back button icon
- Custom start/exit animations
在自定义选项卡支持库23.2.0,下面的自定义版本已添加:
In the version 23.2.0 of the Custom Tabs support library, the following customizations have been added:
- 最多可将5个操作按钮添加到底部工具栏
- 自定义颜色底部工具栏
- 在溢出菜单中添加默认的共享操作。
了解如何在 Github演示
这篇关于Android Chrome自定义标签可自定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!