<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="@color/colorRed"
android:background="@drawable/ic_delete"/>
上記のように、ImageViewバックグラウンド用のアンドロイドVectorAssetを追加しました。
そして、以下のように、Vector Assetの色を赤色から青色に変更することができます。プログラムで背景のベクトルアセットを使用してImageViewのbackgroundTintを変更する
android:backgroundTint="@color/colorBlue"
ですが、プログラム的に色を変更したいと思います。
私はさまざまな方法を試みたが、そのどれもがすべてのバックグラウンドとSRCの最初の