Skip to content

Helper class to add colorful "shadow like" background

Notifications You must be signed in to change notification settings

yamin-elmakis/ShadowFactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShadowFactory

Android library that lets add colorful "shadow like" background to Views

Integration

you can add this Lib from GitPack.io

Gradle: Add GitPack in your root build.gradle

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
        }
    }

Then add the dependency

dependencies {
    ...
    compile 'com.github.yamin-elmakis:ShadowFactory:v2'
}

Usage

	Shadow.Builder.init(context)
		.shadowAll(shadowSize)
		.blur(blurSize)
		.backgroundColorRes(android.R.color.black)
		.shadowColorRes(R.color.grey)
		.build().set(view);

Main Screen