diff --git a/README.md b/README.md index 697e50f..84bb402 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ val text = span { You can grab it via Gradle: ``` -implementation 'me.gujun.android:span:1.0' +implementation 'me.gujun.android:span:1.1' ``` ### Usage @@ -71,9 +71,12 @@ val text = span { fontFamily = "monospace" typeface = getFont(R.font.pacifico) textStyle = "bold" - textAlign = "normal" + alignment = "normal" textDecorationLine = "underline" lineSpacing = dp(3) + verticalPadding = dp(5) + paddingTop = dp(5) + paddingBottom = dp(5) onClick = { } @@ -157,13 +160,19 @@ Span.globalStyles.add(AbsoluteSizeSpan(dp(14))) - lineSpacing +- verticalPadding + +- paddingTop + +- paddingBottom + - onClick - fontFamily: include "monospace", "serif", and "sans-serif" - textStyle: include "normal", "bold", "italic", and "bold_italic" -- textAlign: include "normal", "opposite", and "center" +- alignment: include "normal", "opposite", and "center" - textDecorationLine: include "none", "underline", "line-through", and "underline line-through" diff --git a/screenshots/sample.png b/screenshots/sample.png index a2c33b0..be5e651 100644 Binary files a/screenshots/sample.png and b/screenshots/sample.png differ diff --git a/span/build.gradle b/span/build.gradle index 69cf5fd..a104c9a 100644 --- a/span/build.gradle +++ b/span/build.gradle @@ -23,7 +23,7 @@ dependencies { def GROUP = 'me.gujun.android' def ARTIFACTID = 'span' -def VERSION = '1.0' +def VERSION = '1.1' group = GROUP version = VERSION