Skip to content

Commit 2d9ff78

Browse files
committed
Release v0.3.0
close #28
1 parent 69c9631 commit 2d9ff78

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ExpandableTextView
2-
[![JitPack](https://img.shields.io/badge/jitpack-0.2.4-brightgreen.svg)](https://jitpack.io/#yuzumone/ExpandableTextView/)
2+
[![JitPack](https://img.shields.io/badge/jitpack-0.3.0-brightgreen.svg)](https://jitpack.io/#yuzumone/ExpandableTextView/)
33
[![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
44
[![Build Status](https://travis-ci.org/yuzumone/ExpandableTextView.svg?branch=master)](https://travis-ci.org/yuzumone/ExpandableTextView)
55

@@ -25,7 +25,7 @@ Add this to your app `build.gradle` file.
2525
```gradle
2626
dependencies {
2727
...
28-
implementation 'com.github.yuzumone:ExpandableTextView:0.2.4'
28+
implementation 'com.github.yuzumone:ExpandableTextView:0.3.0'
2929
}
3030
```
3131

@@ -42,7 +42,7 @@ dependencies {
4242
### Attributes
4343
```xml
4444
<net.expandable.ExpandableTextView
45-
app:expand="false"
45+
app:expanded="false"
4646
app:expand_enabled="true"
4747
app:collapse_lines="1"
4848
/>
@@ -53,16 +53,16 @@ To set a state the TextView of ellipsize you use the setExpand functionality via
5353

5454
### XML
5555
```xml
56-
app:expand="true"
56+
app:expanded="true"
5757
or
58-
app:expand="false"
58+
app:expanded="false"
5959
```
6060

6161
### Kotlin
6262
```kotlin
63-
textView.setExpand(true)
63+
textView.isExpanded = true
6464
or
65-
textView.setExpand(false)
65+
textView.isExpanded = false
6666
```
6767

6868
## Expand_enabled
@@ -77,9 +77,9 @@ app:expand_enabled="false"
7777

7878
### Kotlin
7979
```kotlin
80-
textView.setExpandEnabled(true)
80+
textView.isExpandEnabled = true
8181
or
82-
textView.setExpandEnabled(false)
82+
textView.isExpandEnabled = false
8383
```
8484

8585
## Collapse_lines
@@ -92,7 +92,7 @@ app:collapse_lines="1"
9292

9393
### Kotlin
9494
```kotlin
95-
textView.setCollapseLines(1)
95+
textView.collapseLines = 1
9696
```
9797

9898
## OnExpandableClickListener

0 commit comments

Comments
 (0)