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

Tee*_*ker 2 android google-chrome chrome-custom-tabs

我使用"chrome custom tab"(cct),一切运行正常

但是,如果我想在buildIn工具栏中添加"操作",则cct仅适用于drawable目录下的旧"png"文件.我已经切换到使用矢量资产来生成矢量绘图并使用vector-drawable-compat做所有事情,似乎cct不能用它,对吧?

谢谢谁能给我一个答案.

Mat*_*ini 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";
Run Code Online (Sandbox Code Playgroud)