https://github.com/prongbang/expandabletextview
Expandable Text View Android Library
https://github.com/prongbang/expandabletextview
android android-library expandable textview textview-expand
Last synced: about 1 month ago
JSON representation
Expandable Text View Android Library
- Host: GitHub
- URL: https://github.com/prongbang/expandabletextview
- Owner: prongbang
- License: mit
- Created: 2018-02-14T16:36:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-08T16:47:23.000Z (almost 6 years ago)
- Last Synced: 2025-11-23T00:04:06.641Z (7 months ago)
- Topics: android, android-library, expandable, textview, textview-expand
- Language: Kotlin
- Homepage:
- Size: 894 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Expandable Text View
Expandable Text View Android Library

## Download
> build.gradle
```gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
```
### Support Library
```gradle
implementation 'com.github.prongbang:expandabletextview:1.0.1'
```
### AndroidX
```gradle
implementation 'com.github.prongbang:expandabletextview:2.0.0'
```
## How to use
> MainActivity.kt
```kotlin
btnExpand.setOnClickListener {
tvDescription.expandTextView()
}
btnCollapse.setOnClickListener {
tvDescription.collapseTextView()
}
btnCycle.setOnClickListener {
tvDescription.cycleTextViewExpansion()
}
```
> activity_main.xml
```xml
```
> Properties
```xml
app:duration="200"
app:collapsedMaxLines="5"
app:autoDuration="true"
```
### Thank