Skip to content

Instantly share code, notes, and snippets.

@chetdeva
Last active January 22, 2018 10:41
Show Gist options
  • Save chetdeva/f7a1f89401cdc32e963aa69e2e2de312 to your computer and use it in GitHub Desktop.
Save chetdeva/f7a1f89401cdc32e963aa69e2e2de312 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("Number One", new Snippety().number(leadWidth, gapWidth, 1))
.appendln("Number Two", new Snippety().number(leadWidth, gapWidth, 2))
.build());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment