2016-03-23 6 views
2

私は「クロムカスタムタブ」(cct)で作業し、すべてがO.Kを実行します。「Chromeカスタムタブ」はVectorDrawableをサポートしていますか?

しかし、私が "アクション"をbuildInツールバーに追加したいのであれば、cctはdrawableディレクトリ下の古い "png"ファイルでしか動作しません。私はvector-drawableを生成するためにベクトルアセットを扱うように切り替えて、vector-drawable-compatを使ってすべてを行いました。それはcctがそれとうまく動作しないようですね。

お返事いただきありがとうございます。

答えて

5

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"; 
関連する問題