org
Scaloid marries Android code with Scala resulting in easier to understand and maintain code.
import org.scaloid.common._ class MainActivity extends SActivity { onCreate { contentView = new SVerticalLayout { setTheme(android.R.style.Theme_Holo_NoActionBar) style { case b:SButton => b.textSize(22 dip) } STextView("Welcome").textSize(22 sp).<<.marginBottom(22 dip).>> val name = SEditText() STextView("What is your name?").<<.marginBottom(22 dip).>> SButton("GO").onClick(longToast("Hello, " + name.getText)) }.padding(20 dip) } }
http://scaloid.org
Scaloid marries Android code with Scala resulting in easier to understand and maintain code.
http://scaloid.org