我使用“chrome 自定义选项卡”(cct),一切运行正常。
但是,如果我想将“ Action ”添加到内置工具栏,则 cct 仅适用于可绘制目录下的旧“png”文件。我已转而使用矢量资源来生成矢量绘图,并使用矢量绘图兼容来完成所有操作,似乎 cct 无法使用它,对吗?
谢谢谁能给我答案。
最佳答案
不幸的是,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";
关于android - "Chrome custom tab"支持VectorDrawable吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36183376/