반응형
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
- UI Layout without XML
- Implicit conversions
- Shorter representation without context object
- Shorter listeners
- Asynchronous processing
- Smarter logging
- Improved getters/setters
- Concise dialog builder
...and many other things! Check the official Scaloid blog for news and announcements.
반응형
'프로그래밍 > App' 카테고리의 다른 글
[APP] Cocos2d-x 통합 프로젝트 생성 - http://cocos2d-x.org/ (0) | 2013.01.31 |
---|---|
[Window] Window Store APP 윈도우 스토어 앱 구현 (0) | 2013.01.31 |
[APP] Android - Fragment , Activity LifeCycle (0) | 2013.01.21 |
[APP] Select dropdown in Android webview (0) | 2013.01.18 |
[IOS] the iOS 5 Developer's Cookbook 예제 (0) | 2012.12.11 |