Skip to content

Commit 73a333f

Browse files
author
Chetan Sachdeva
authored
Merge pull request #24 from Fueled/update-readme
docs(README.md): update for HTML
2 parents 0dd5de0 + 873eab4 commit 73a333f

File tree

7 files changed

+12
-21
lines changed

7 files changed

+12
-21
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A wrapper class on top of `SpannableStringBuilder` with utility methods for android and custom spans.
44
You can trust [Snippety](./snippety/src/main/java/com/fueled/snippety/core/Snippety.java) and [Truss](./snippety/src/main/java/com/fueled/snippety/core/Truss.java) (by Jake Warton) to write cool text snippets which might be a pain in the neck otherwise.
55

6-
<img src="./README_images/snippety_demo_screenshot.png" width="345" height="617"/><img src="./README_images/snippety_page_screenshot.png" width="345" height="617"/>
6+
<img src="./README_images/ic_demo_screen.png" width="274" height="507"/><img src="./README_images/ic_page_screen.png" width="274" height="507"/><img src="./README_images/ic_html_screen.png" width="274" height="507"/>
77

88
# Installation
99

@@ -280,8 +280,8 @@ Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.ic_star_
280280
int leadGap = getResources().getDimensionPixelOffset(R.dimen.space_medium);
281281
textView.setText(new Truss()
282282
.appendln("Custom Bullet One", new Snippety().imageBullet(bitmap, leadGap))
283-
.appendln("Custom Bullet One", new Snippety().imageBullet(bitmap, leadGap))
284-
.appendln("Custom Bullet One", new Snippety().imageBullet(bitmap, leadGap))
283+
.appendln("Custom Bullet Two", new Snippety().imageBullet(bitmap, leadGap))
284+
.appendln("Custom Bullet Three", new Snippety().imageBullet(bitmap, leadGap))
285285
.build());
286286
```
287287

README_images/ic_demo_screen.png

320 KB
Loading

README_images/ic_html_screen.png

257 KB
Loading

README_images/ic_page_screen.png

337 KB
Loading
-593 KB
Binary file not shown.
-625 KB
Binary file not shown.

sample/src/main/java/com/fueled/snippety/sample/fragment/HtmlFragment.java

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -74,38 +74,29 @@ private CharSequence getHtmlTrussText() {
7474
.appendln("Ordered List", new Snippety().fontStyle(Snippety.FontStyle.BOLD))
7575
.appendln(new Snippety().hr(oneDp, colorGrey))
7676

77-
.appendln("Number One",
78-
new Snippety().number(leadGap, gapWidth, 1)) // TextIndentSpan
79-
.appendln("Number Two",
80-
new Snippety().number(leadGap, gapWidth, 2))
81-
.appendln("Number Three",
82-
new Snippety().number(leadGap, gapWidth, 3))
77+
.appendln("Number One", new Snippety().number(leadGap, gapWidth, 1)) // TextIndentSpan
78+
.appendln("Number Two", new Snippety().number(leadGap, gapWidth, 2))
79+
.appendln("Number Three", new Snippety().number(leadGap, gapWidth, 3))
8380
.appendln()
8481

8582
// Unordered List
8683

8784
.appendln("Unordered List", new Snippety().fontStyle(Snippety.FontStyle.BOLD))
8885
.appendln(new Snippety().hr(oneDp, colorGrey))
8986

90-
.appendln("Bullet One",
91-
new Snippety().bullet(leadGap, gapWidth)) // TextIndentSpan
92-
.appendln("Bullet Two",
93-
new Snippety().bullet(leadGap, gapWidth))
94-
.appendln("Bullet Three",
95-
new Snippety().bullet(leadGap, gapWidth))
87+
.appendln("Bullet One", new Snippety().bullet(leadGap, gapWidth)) // TextIndentSpan
88+
.appendln("Bullet Two", new Snippety().bullet(leadGap, gapWidth))
89+
.appendln("Bullet Three", new Snippety().bullet(leadGap, gapWidth))
9690
.appendln()
9791

9892
// Custom Unordered List
9993

10094
.appendln("Custom Unordered List", new Snippety().fontStyle(Snippety.FontStyle.BOLD))
10195
.appendln(new Snippety().hr(oneDp, colorGrey))
10296

103-
.appendln("Custom Bullet One",
104-
new Snippety().imageBullet(bitmap, leadGap))
105-
.appendln("Custom Bullet Two",
106-
new Snippety().imageBullet(bitmap, leadGap))
107-
.appendln("Custom Bullet Three",
108-
new Snippety().imageBullet(bitmap, leadGap))
97+
.appendln("Custom Bullet One", new Snippety().imageBullet(bitmap, leadGap)) // IconMarginSpan
98+
.appendln("Custom Bullet Two", new Snippety().imageBullet(bitmap, leadGap))
99+
.appendln("Custom Bullet Three", new Snippety().imageBullet(bitmap, leadGap))
109100
.appendln()
110101

111102
.build();

0 commit comments

Comments
 (0)