-
Notifications
You must be signed in to change notification settings - Fork 163
Home
Scaloid is a library that simplifies your Android code. It makes your code easy to understand and maintain 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!"))
-
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.
If you want to see how Scaloid can be used in action, check a Scala port of apidemos app.
There is an out-of-the-box solution. Just fork this project and start your Scala-Android app.
- 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.
This project is in its early stages, and I will grow it constantly. If you have any idea to improve Scaloid, feel free to open issues or post patches.
Check the official Scaloid blog for news and announcements.
This software is licensed under the Apache 2 license.
Share your experience of using Scaloid by blogging about it and let me know the URL of the post and the name of your Android application via [email protected]. Then I will add a link to your post here.