scaloid是一个Android的开发库。使用Scala让代码更加简洁,清晰。
Forexample,thecodeblockshownbelow:
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)isreducedto:
SButton("Greet", toast("Hello!"))Features
UILayoutwithoutXML
Layoutcontext
Stylesforprogrammers
Automaticlayoutconverter
Lifecyclemanagement
Asynchronoustaskprocessing
Implicitconversions
Shorterlisteners
Databasecursor
Traits
Smarterlogging
Improvedgetters/setters
Classes
Concisedialogbuilder
BeautyArrayAdapter
DynamicallyPreferences Readinblog
Bindingservicesconcisely Readinblog
评论