1
1
# 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/ )
3
3
[ ![ License] ( https://img.shields.io/badge/license-Apache%202-blue.svg )] ( https://www.apache.org/licenses/LICENSE-2.0.html )
4
4
[ ![ Build Status] ( https://travis-ci.org/yuzumone/ExpandableTextView.svg?branch=master )] ( https://travis-ci.org/yuzumone/ExpandableTextView )
5
5
@@ -25,7 +25,7 @@ Add this to your app `build.gradle` file.
25
25
``` gradle
26
26
dependencies {
27
27
...
28
- implementation 'com.github.yuzumone:ExpandableTextView:0.2.4 '
28
+ implementation 'com.github.yuzumone:ExpandableTextView:0.3.0 '
29
29
}
30
30
```
31
31
@@ -42,7 +42,7 @@ dependencies {
42
42
### Attributes
43
43
``` xml
44
44
<net .expandable.ExpandableTextView
45
- app : expand =" false"
45
+ app : expanded =" false"
46
46
app : expand_enabled =" true"
47
47
app : collapse_lines =" 1"
48
48
/>
@@ -53,16 +53,16 @@ To set a state the TextView of ellipsize you use the setExpand functionality via
53
53
54
54
### XML
55
55
``` xml
56
- app:expand ="true"
56
+ app:expanded ="true"
57
57
or
58
- app:expand ="false"
58
+ app:expanded ="false"
59
59
```
60
60
61
61
### Kotlin
62
62
``` kotlin
63
- textView.setExpand( true )
63
+ textView.isExpanded = true
64
64
or
65
- textView.setExpand( false )
65
+ textView.isExpanded = false
66
66
```
67
67
68
68
## Expand_enabled
@@ -77,9 +77,9 @@ app:expand_enabled="false"
77
77
78
78
### Kotlin
79
79
``` kotlin
80
- textView.setExpandEnabled( true )
80
+ textView.isExpandEnabled = true
81
81
or
82
- textView.setExpandEnabled( false )
82
+ textView.isExpandEnabled = false
83
83
```
84
84
85
85
## Collapse_lines
@@ -92,7 +92,7 @@ app:collapse_lines="1"
92
92
93
93
### Kotlin
94
94
``` kotlin
95
- textView.setCollapseLines( 1 )
95
+ textView.collapseLines = 1
96
96
```
97
97
98
98
## OnExpandableClickListener
0 commit comments