SetFillColor空对象

时间:2019-07-12 12:25:21

标签: android android-vectordrawable

VectorDrawableCompat$VFullPath.setFillColor(int)// on a null object reference
VectorChildFinder vector = new VectorChildFinder(this,
            R.drawable.ic_lilly, imageView1);
VectorDrawableCompat.VFullPath   dressPath =    vector.findPathByName("dress_path");
    dressPath.setFillColor(getResources().getColor(android.R.color.holo_purple));
    imageView1.invalidate();

我正在使用

implementation 'com.github.devsideal:VectorChildFinder:1.0.0'

0 个答案:

没有答案