Idea的live template参数中的预定义功能
Predefined Functions to Use in Live Template Variables
Item
Description
annotated("annotation qname")
Creates a symbol of type with an annotation that resides at the specified location.
Java嵌入式数据库-MapDB
MapDB可以直接将Java的数据类型存储至直接内存而非JVM的堆中,也可以将数据持久化到磁盘。
与文无关
今天和大家介绍一个Java的第三方库,MapDB,它是用Kotlin写的,据说代码质量还不错,有兴趣的可以阅读其源码。
Kotlin最初接触时碰的坑
kotlin调用ButterKnife (gradle更新后,ButterKnife不再支持,Kotlin使用的库KotterKnife等待发布)
(KotterKnife:https://github.
Kotlin——基本语法
包定义
包声明应该放在源文件顶部:
package my.demo
import java.util.*
// ...
源文件不需要匹配目录和包,源文件可以放在任意的文件系统中。
函数声明
有两个Int参数和Int返回值的函数定义及测试使用:
fun sum(a: Int, ...
Kotlin备用
开源库和框架
Android 开发
KAndroid - Kotlin library for Android
Bubble - 屏幕方向监测
Kotpref - Android SharedPreference delegation for Kotlin.