Material color palette Shows shadow of the image

Material color palette
Material color palette

Material color palette View

This library shows Material color palette shadow of the image by it’s palette color.

PaletteShadowView



Gradle

1.Few ScreenShots
SHADOWCORNER RADIUSSHADOW OFFSET

X

XML ATTRIBUTEDESCRIPTION
app:paletteOffsetXrepresents the offset of the shadow in the x direction
app:paletteOffsetYrepresents the offset of the shadow in the y direction
app:paletteSrcrepresents a picture resource
app:paletteRoundRadiusIndicates the corner radius
app:paletteShadowRadiusIndicates shadow blurring
app:paletteShadowColorIndicate the color of the shadow

JAVA

X

Public Methods

METHODDESCRIPTION
Public void setShadowColor(int color)Represents the color of the custom settings control shadow
public void setRoundedRadius(int radius)Represents the corner of image
public void setShadowOffest(int offsetX, int offsetY)Represents the offset of the shadow in the x and y direction
public void setShadowRadius(int radius)Indicates shadow blurring
Public int[] getVibrantColor()Represents an array of colors to get the Vibrant theme; assuming that the color array is arry, arry[0] is the color used by the recommended title, arry[1] is the color used by the recommended body, and arry[2] is the recommended The color used for the background. Colors are for recommendations only, you can choose
Public int[] getDarkVibrantColor()Represents an array of colors for obtaining the DarkVibrant theme. The meaning of the array element is the same as above
Public int[] getLightVibrantColor()Represents the color array of the LightVibrant theme. The meaning of the array element is the same as above
Public int[] getMutedColor()Represents the color array of the Muted theme. The meaning of the array element is the same as above.
Public int[] getDarkMutedColor()Represents the color array of the DarkMuted theme. The meaning of the array element is the same as above.
Public int[] getLightMutedColor()Represents the color array of the LightMuted theme. The meaning of the array element is the same as above
public void setVibrantColor()set the vibrant theme as the shadow color , remember it may be null.
public void setDarkVibrantColor()set the DarkVibrant theme as the shadow color , remember it may be null.
public void setLightVibrantColor()set the LightVibrant theme as the shadow color , remember it may be null.
public void setMutedColor()set the Muted theme as the shadow color , remember it may be null.
public void setDarkMutedColor()set the DarkMuted theme as the shadow color , remember it may be null.
public void setLightMutedColor()set the LightMuted theme as the shadow color , remember it may be null.

Read this :- Android Permissions Implement Popup

Read this:-Helps to create a bunch of alert dialogs with Lottie

GitHub

sparrow007/PaletteShadowView

167

This library shows the shadow of the image by it’s palette color. — Read MoreLatest commit to the master branch on 3-12-2019Download as zip

113 total views, 1 views today

(Visited 34 times, 1 visits today)

You May Also Like

About the Author: Android Developer

This is Mohammad I am Android Application Developer. I am the founder of Android Tutorial Online blog. I am programming lover and professional blogger from India. I spend most of my time doing programming and helping other programmers. This Android tutorial online blog for learning and share Android code.
My Chatbot
Powered by Replace Me