【文件属性】:
文件名称:kotlin-targetFun:简化Android开发
文件大小:163KB
文件格式:ZIP
更新时间:2021-03-03 03:49:36
Kotlin
kotlin-targetFun
适用于Android的Kotlin库提供了有用的扩展,以简化Android SDK中的界面回调。
嗯...代码更具表现力:
使用此库,您可以像这样将TextWather添加到EditText:
EditText(this).withTextChangedListener {
ifTextChanged { s, start, before, count ->
//do sth
}
}
或像这样
EditText(this).withTextChangedListener {
ifBeforeTextChanged { s, start, count, after ->
//do sth
}
ifTextChanged { s
【文件预览】:
kotlin-targetFun-master
----targetfun()
--------src()
--------.gitignore(7B)
--------build.gradle(1KB)
--------proguard-rules.pro(751B)
----gradlew(5KB)
----settings.gradle(29B)
----README_CN.md(4KB)
----gradle()
--------wrapper()
----README.md(3KB)
----gradlew.bat(2KB)
----gradle.properties(817B)
----.gitignore(176B)
----app()
--------src()
--------.gitignore(7B)
--------build.gradle(938B)
--------proguard-rules.pro(751B)
----build.gradle(722B)