Android 开发库 scaloid
- 授权协议: GPL
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/pocorall/scaloid
- 软件文档: https://github.com/pocorall/scaloid/wiki
软件介绍
scaloid是一个Android的开发库。使用Scala让代码更加简洁,清晰。
For example, the code block shown below:
val button = new Button(context)
button.setText("Greet")
button.setOnClickListener(new OnClickListener() {
def onClick(v: View) {
Toast.makeText(context, "Hello!", Toast.LENGTH_SHORT).show()
}
})
layout.addView(button)
is reduced to:
SButton("Greet", toast("Hello!"))
