效果:
build.gradle中引用
compile 'com.dingmouren.paletteimageview:paletteimageview:1.0.0'
使用
<com.dingmouren.paletteimageview.PaletteImageView
android:id="@+id/palette2"
android:layout_width="180dp"
android:layout_height="180dp"
app:cornerRadis="50dp"
app:paletteSrc="@mipmap/yellow" />
https://mp.weixin.qq.com/s/GQaK8IO98v8CIlMZACZbIg