augmify / PaletteImageView

为图片添加阴影,阴影颜色来源于图片的主色

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PaletteImageView

PaletteImageView可以动态的提取图片的主要颜色,并将颜色作为图片阴影的控件。Enjoy it O(∩_∩)O

image

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"          
            />

欢迎大家提Issues.

About

为图片添加阴影,阴影颜色来源于图片的主色


Languages

Language:Java 100.0%