github

DingMouRen / PaletteImageView

  • суббота, 29 апреля 2017 г. в 03:11:43
https://github.com/DingMouRen/PaletteImageView

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



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.