- 博客(10)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 kotlin 中intent的传值应用
main ---- Activity ------------------------------------------------------------------------------ fun intent(position:Int,content : String){ var intent = Intent(this@MainActivity,TestActivity::
2017-05-31 17:00:40 9780
原创 kotlin 构造方法
主构造器 class MyAdapter{ constructor() { }}无参构造法就相当于class MyAdapter{} 如果有次构造法的话 像这样 class MyAdapter(param : mold){} 也可以写成,不需要声明param class MyAdapter{ private var param :mold? = null con
2017-05-27 16:51:50 269
原创 kotlin 构造
构造函数 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2017-05-27 15:46:55 182
原创 kotlin 异步线程简单事例,加http请求,异步线程之间的通信
-------------------------------------------------------------------------------------------------------------------------------------------------------- 首先编辑异步线程方法 /** * @param url 请求网址 * **/ pu
2017-05-27 11:51:44 1773
原创 kitlin recycler item点击涟漪效果 应用于各种点击效果
==================================================================== drawable-v21文件夹下 ====================================================================== recycler-bg文件 ripple xmlns:andr
2017-05-26 14:33:00 364
原创 kotlin for android developer 翻译版github网址链接
------------------------------------------------------------------------------------------------------------------------------------ github kotlin for android developer 书籍 翻译版 https://git
2017-05-26 11:32:24 433
原创 kotlin Recycler View 简单应用自定义adapter ,包括接口
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2017-05-26 11:27:55 1699
原创 kotlin无需findViewById依旧能够成功运行
kotlin代码事例 btn_listen.setOnClickListener { v ->toast(this,"not use "+"findViewById") } 这里btn_listen是在布局中定义的一个id 在kotlin代码中有种写法 老式写法 val btn : Button = findViewById(btn_id : View) as Button
2017-05-26 10:07:35 501
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人