https://github.com/sheep0704/kotlindemo
Kotlin demo,sample,测试,引入,
https://github.com/sheep0704/kotlindemo
demo dublue kotlin kotlindemo rxandroid rxgalleryfinal
Last synced: about 1 year ago
JSON representation
Kotlin demo,sample,测试,引入,
- Host: GitHub
- URL: https://github.com/sheep0704/kotlindemo
- Owner: sheep0704
- Created: 2017-05-18T10:17:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-22T10:19:22.000Z (over 8 years ago)
- Last Synced: 2025-01-11T00:28:35.569Z (about 1 year 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? = null
private 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:dujin_dudu@163.com