반응형
반응형

Scaloid - 오픈소스 안드로이드 라이브러리

 

https://github.com/pocorall/scaloid

 

스칼라 언어로 안드로이드 개발의 어려움을 줄여주고자 만들어졌다.

 

Less painful Android development with Scala

Scaloid is a library aimed to simplify your Android code. It makes your code easy to write and understand by leveraging Scala language.

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!"))

Benefits

  • Write elegant Android software
    Scaloid provides a concise and type-safe way of writing Android application.
  • Simple to use
    Check our quick start guide
  • Compatible with your legacy code
    You can use both Scaloid and plain-old Java Android API. You can gradually improve your legacy code.
  • Maintained actively
    Scaloid is a dogfooding software. This is originally created to be used for my own Android apps.

Demos

If you want to see how Scaloid can be used in action, check a Scala port of apidemos app.

Need help using Scala language on your Android project?

There is an out-of-the-box solution. Just fork this project and start your Scala-Android app.

Features

...and many other things! Check the official Scaloid blog for news and announcements.

 

반응형

+ Recent posts