Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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,测试,引入,

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:[email protected]