Skip to content

Commit

Permalink
bump to v1.1 and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
2dxgujun committed Jan 18, 2018
1 parent cceb3ab commit cd1c83a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = {
}

Expand Down Expand Up @@ -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"

Expand Down
Binary file modified screenshots/sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion span/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd1c83a

Please sign in to comment.