Skip to content

Instantly share code, notes, and snippets.

@tatocaster
Created April 30, 2017 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatocaster/b5d8161a41c2bce5125167b80aa88ba7 to your computer and use it in GitHub Desktop.
Save tatocaster/b5d8161a41c2bce5125167b80aa88ba7 to your computer and use it in GitHub Desktop.
setContentView(LithoView.create(this,
ListItem.create(mComponentContext)
.title("My Title")
.subtitle("SubTitle")
.listener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText(MainActivity.this, "Clicked", Toast.LENGTH_SHORT).show();
}
})
.build()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment