Skip to content

Instantly share code, notes, and snippets.

@chetdeva
Last active January 22, 2018 10:40
Show Gist options
  • Save chetdeva/06366f5c27e8f8eed009b2f7012e9fcd to your computer and use it in GitHub Desktop.
Save chetdeva/06366f5c27e8f8eed009b2f7012e9fcd to your computer and use it in GitHub Desktop.
int leadWidth = getResources().getDimensionPixelOffset(R.dimen.space_medium);
int gapWidth = getResources().getDimensionPixelOffset(R.dimen.space_xlarge);
textView.setText(new Truss()
.appendln("Custom Bullet One", new Snippety().bullet(leadWidth, gapWidth, "I."))
.appendln("Custom Bullet Two", new Snippety().bullet(leadWidth, gapWidth, "II."))
.build());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment