8000 GitHub - fristjune/zhoujian: 给控件添加阴影的自定义控件
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fristjune/zhoujian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Step 1.Add it in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

dependencies {
        implementation 'com.github.fristjune:ZhoujianDemo:-SNAPSHOT'
}

Step 3.通过一行代码即可实现阴影效果:

ShadowDrawable.setShadowDrawable(textView1, Color.parseColor("#3D5AFE"), dpToPx(8), Color.parseColor("#66000000"), dpToPx(10), 0, 0);

Step 4.实现阴影效果如下: image

About

给控件添加阴影的自定义控件

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0