scaloid?Android 開發(fā)庫
scaloid是一個Android的開發(fā)庫。使用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!"))
Features
評論
圖片
表情
