BoilerDroid lets Android developers use jQuery's programming style, providing these main benefits:
- Notion of class and id for layout Views
- jQuery-like selectors to work with multiple elements at a time
- Concise syntax and method chaining
- Boilerplate removal for various use cases
Examples:
// Selectors, method chaining, and convenience methods
$(".status").text("username unavailable").textColor("red").show();
// Switch Activities easily
$(MyActivity.class).data("auth_token", "xxxxxx").start();
Download the BoilerDroid repository as a zip, tar, or clone.
Import /library
into Eclipse as an Android Library Project. (?)
Link to BoilerDroid as an Android Library in your own Project. (?)
Modify all Activities in your project to extend BoilerActivity
.
Use the $( ... )
function to start making cool things.
Coming soon...
@pingpongboss
@jmwong
@oldgreg