Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sheep0704/kotlindemo
Kotlin demo,sample,测试,引入,
https://github.com/sheep0704/kotlindemo
demo dublue kotlin kotlindemo rxandroid rxgalleryfinal
Last synced: about 1 month ago
JSON representation
Kotlin demo,sample,测试,引入,
- Host: GitHub
- URL: https://github.com/sheep0704/kotlindemo
- Owner: sheep0704
- Created: 2017-05-18T10:17:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-22T10:19:22.000Z (over 7 years ago)
- Last Synced: 2024-11-12T04:35:03.471Z (3 months ago)
- Topics: demo, dublue, kotlin, kotlindemo, rxandroid, rxgalleryfinal
- Language: Kotlin
- Size: 1.44 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KotlinDemo
Kotlin demo,sample,测试,引入,apk 逆向 smali 格式查看 ,Kotlin 语言。
## Kotlin Desc- AndroidStudio 详解Kotlin的安装和使用
- AndroidStudio 详解Kotlin APK 下载
## Kotlin Convert
```
/**
* 测试 Kotlin
* @author Karl-dujinyang
*/
class MainActivity : AppCompatActivity() {override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
initView()//初始化
testValue()//赋值和事件
}private fun testValue() {
btnWs!!.setOnClickListener {
tvWs!!.text = "I'm immqy"
edtWs!!.setText("Karl-dujinyang")
}
}private var btnWs: Button? = null
private var tvWs: TextView? = null
private var edtWs: EditText? = nullprivate fun initView() {
btnWs = this.findViewById(R.id.btn_hw) as Button
tvWs = this.findViewById(R.id.tx_hw) as TextView
edtWs = this.findViewById(R.id.edt_hw) as EditText
}}
```
## About author
**QQ:** 309933706
**QQ群:** 246231638
Email:[email protected]