【发布时间】:2016-03-23 16:16:48
【问题描述】:
我使用“chrome 自定义标签”(cct),一切正常。
但是,如果我想在 buildIn 工具栏中添加“动作”,则 cct 仅适用于可绘制目录下的旧“png”文件。我已经切换到使用矢量资产来生成矢量绘图并通过使用矢量绘图兼容来完成所有事情,似乎 cct 无法使用它,对吧?
谢谢谁能给我答案。
【问题讨论】:
标签: android google-chrome chrome-custom-tabs
我使用“chrome 自定义标签”(cct),一切正常。
但是,如果我想在 buildIn 工具栏中添加“动作”,则 cct 仅适用于可绘制目录下的旧“png”文件。我已经切换到使用矢量资产来生成矢量绘图并通过使用矢量绘图兼容来完成所有事情,似乎 cct 无法使用它,对吧?
谢谢谁能给我答案。
【问题讨论】:
标签: android google-chrome chrome-custom-tabs
不幸的是,Chrome 自定义选项卡仅支持位图格式,如 platform_frameworks_support 存储库中所述:
/** * Key that specifies the {@link Bitmap} to be used as the image source for the action button. * The icon should't be more than 24dp in height (No padding needed. The button itself will be * 48dp in height) and have a width/height ratio of less than 2. */ public static final String KEY_ICON = "android.support.customtabs.customaction.ICON";
【讨论】: