diff --git a/README.md b/README.md index 4ab7224..22da15b 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,8 @@ Spannable spannable = new Spanner() .append("subscript\n", subscript()) .append("superscript\n", superscript()) .append(" \n", image(getResources().getDrawable(R.drawable.ic_android_16dp))) - .append("quite\n", quite()) - .append("The quick brown fox jumps over the lazy dog\n", bold(), foreground(0xFF904f1c), quite()) + .append("quite\n", quote()) + .append("The quick brown fox jumps over the lazy dog\n", bold(), foreground(0xFF904f1c), quote()) ; ``` diff --git a/lib/src/main/java/lt/neworld/spanner/Spans.kt b/lib/src/main/java/lt/neworld/spanner/Spans.kt index f8aa5b9..58fefad 100644 --- a/lib/src/main/java/lt/neworld/spanner/Spans.kt +++ b/lib/src/main/java/lt/neworld/spanner/Spans.kt @@ -48,6 +48,6 @@ fun image(context: Context, bitmap: Bitmap, verticalAlignment: Int = ImageSpan.A fun image(drawable: Drawable) = ImageSpan(drawable) -fun quite() = QuoteSpan() +fun quote() = QuoteSpan() -fun quite(@ColorInt color: Int) = QuoteSpan(color) \ No newline at end of file +fun quote(@ColorInt color: Int) = QuoteSpan(color) \ No newline at end of file diff --git a/sample/src/main/java/lt/neworld/spanner/sample/SampleJavaActivity.java b/sample/src/main/java/lt/neworld/spanner/sample/SampleJavaActivity.java index 3e207c2..6a5386c 100644 --- a/sample/src/main/java/lt/neworld/spanner/sample/SampleJavaActivity.java +++ b/sample/src/main/java/lt/neworld/spanner/sample/SampleJavaActivity.java @@ -16,7 +16,7 @@ import static lt.neworld.spanner.Spans.foreground; import static lt.neworld.spanner.Spans.image; import static lt.neworld.spanner.Spans.italic; -import static lt.neworld.spanner.Spans.quite; +import static lt.neworld.spanner.Spans.quote; import static lt.neworld.spanner.Spans.scaleSize; import static lt.neworld.spanner.Spans.sizeDP; import static lt.neworld.spanner.Spans.strikeThrough; @@ -50,8 +50,8 @@ protected void onCreate(Bundle savedInstanceState) { .append("subscript\n", subscript()) .append("superscript\n", superscript()) .append(" \n", image(getResources().getDrawable(R.drawable.ic_android_16dp))) - .append("quite\n", quite()) - .append("The quick brown fox jumps over the lazy dog\n", bold(), foreground(0xFF904f1c), quite()) + .append("quite\n", Spans.quote()) + .append("The quick brown fox jumps over the lazy dog\n", bold(), foreground(0xFF904f1c), Spans.quote()) ; // @formatter:on