Litho is a declarative framework for building efficient UIs on Android.
To get started, check out these links:
Litho can be integrated either in Gradle or Buck projects. Read our Getting Started guide for installation instructions.
SoLoader
in your Application
class.public class SampleApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, false);
}
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final ComponentContext c = new ComponentContext(this);
final Component component = Text.create(c)
.text("Hello World")
.textSizeDip(50)
.build();
setContentView(LithoView.create(c, component));
}
You can find more examples in our sample app.
To build and run (on an attached device/emulator) the sample app, execute
$ buck fetch sample
$ buck install -r sample
or, if you prefer Gradle,
$ ./gradlew :sample:installDebug
Before contributing to Litho, please first read the Code of Conduct that we expect project participants to adhere to.
For pull requests, please see our CONTRIBUTING guide.
See our issues page for ideas on how to contribute or to let us know of any problems.
Please also read our Coding Style and Code of Conduct before you contribute.
#litho
tag.Litho is licensed under the Apache 2.0 License.