项目
在 GitHub 查看
zhengcx/ShadowHelper
关于
A library to add shadows for the Android View.(一个方便为Android View添加自然的阴影的库)
开发工具实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文ShadowHelper
A library to add shadows for the Android View.(一个方便为Android View添加自然的阴影的库)

How to use
1.Step 1: Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
2.Step 2: Add the dependency
dependencies {
compile 'com.github.zhengcx:ShadowHelper:v1.0'
}
3.Step 3: Use in Java code like this:
TextView textView1 = findViewById(R.id.tv_1);
ShadowConfig.Builder config = new ShadowConfig.Builder()
.setColor(mColor[0])//View颜色
.setShadowColor(mShadowColor)//阴影颜色
.setGradientColorArray(mColor)//如果View是渐变色,则设置color数组
.setRadius(mRadius)//圆角
.setOffsetX(mOffsetX)//横向偏移
.setOffsetY(mOffsetY);//纵向偏移
ShadowHelper.setShadowBgForView(textView1, config);
End 欢迎Star/Fork/Issue.
License
Apache2.0.
About Me
探索相关项目
加载中…