Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prongbang/expandabletextview
Expandable Text View Android Library
https://github.com/prongbang/expandabletextview
android android-library expandable textview textview-expand
Last synced: 22 days 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-08T16:47:23.000Z (over 4 years ago)
- Last Synced: 2024-10-24T08:06:05.515Z (2 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![screenshot gif](https://github.com/prongbang/ExpandableTextView/blob/master/screenshots/screenshots.gif?raw=true)
## 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