A declarative framework for building efficient UIs on Android.
7,778
stars
12,256
commits
Kotlin
primary language
Sep 7, 2026
updated
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.
Kotlin
57.6%
Java
35.2%
C++
5.0%
Starlark
1.6%
A declarative framework for building efficient UIs on Android.
7,778
stars
12,256
commits
Kotlin
primary language
Sep 7, 2026
updated
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.
(top 30 of 197)
Kotlin
57.6%
Java
35.2%
C++
5.0%
Starlark
1.6%