项目
在 GitHub 查看
theapache64/faded
关于
✨ 客户还没付款?给 UI 组件添加透明度,并每天降低,直到他们的应用完全淡出。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Client did not pay?
Add opacity to UI components and decrease it every day until their app completely fades away. Set a due date and customize the number of days you offer them until the app is fully vanished.
/*You can change these variables as you wish */
Faded.init(
dueDate = "2020-19-01", // yyyy-MM-dd
daysDeadline = 30
)
Installation
implementation 'com.theah64.faded:faded.1.1.0'
Usage
/*In your application class, init faded like this*/
class App : Application() {
override fun onCreate() {
super.onCreate()
Faded.init(
dueDate = "2020-19-01", // yyyy-MM-dd
daysDeadline = 30
)
}
}
/*In your activities, wrap the base context with Faded */
class MainActivity : AppCompatActivity() {
override fun attachBaseContext(newBase: Context?) {
super.attachBaseContext(Faded.wrap(newBase!!))
}
}
That's it!
Author
Inspired from github (@kleampa)
Made by theapache64
探索相关项目
加载中…