是" Chrome自定义标签"支持VectorDrawable?

时间:2016-03-23 16:16:49

标签: android google-chrome chrome-custom-tabs

我使用" chrome自定义标签"(cct),一切都运行O.K.

但是,如果我想添加"动作"要构建工具栏,cct只适用于旧的" png"可绘制目录下的文件。我已经切换到使用矢量资产来生成矢量绘图并使用vector-drawable-compat做所有事情,似乎cct不能使用它,对吧?

感谢谁能给我一个答案。

1 个答案:

答案 0 :(得分:5)

不幸的是,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";
相关问题