Skip to content

Commit cd1c83a

Browse files
committed
bump to v1.1 and update README
1 parent cceb3ab commit cd1c83a

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

README.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ val text = span {
5858
You can grab it via Gradle:
5959

6060
```
61-
implementation 'me.gujun.android:span:1.0'
61+
implementation 'me.gujun.android:span:1.1'
6262
```
6363

6464
### Usage
@@ -71,9 +71,12 @@ val text = span {
7171
fontFamily = "monospace"
7272
typeface = getFont(R.font.pacifico)
7373
textStyle = "bold"
74-
textAlign = "normal"
74+
alignment = "normal"
7575
textDecorationLine = "underline"
7676
lineSpacing = dp(3)
77+
verticalPadding = dp(5)
78+
paddingTop = dp(5)
79+
paddingBottom = dp(5)
7780
onClick = {
7881
}
7982

@@ -157,13 +160,19 @@ Span.globalStyles.add(AbsoluteSizeSpan(dp(14)))
157160

158161
- lineSpacing
159162

163+
- verticalPadding
164+
165+
- paddingTop
166+
167+
- paddingBottom
168+
160169
- onClick
161170

162171
- fontFamily: include "monospace", "serif", and "sans-serif"
163172

164173
- textStyle: include "normal", "bold", "italic", and "bold_italic"
165174

166-
- textAlign: include "normal", "opposite", and "center"
175+
- alignment: include "normal", "opposite", and "center"
167176

168177
- textDecorationLine: include "none", "underline", "line-through", and "underline line-through"
169178

screenshots/sample.png

100 KB
Loading

span/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323

2424
def GROUP = 'me.gujun.android'
2525
def ARTIFACTID = 'span'
26-
def VERSION = '1.0'
26+
def VERSION = '1.1'
2727

2828
group = GROUP
2929
version = VERSION

0 commit comments

Comments
 (0)