Here ExpanderTextView come again!. It is just a TextView ,when text line count is more than 3 , it will shrink with ellipsize and read more text. When select the TextView, it will show whole original text.
On project level build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
On module level build.gradle
dependencies {
implementation 'com.github.amlwin:ExpanderTextView:v1.0.1'
}
Here is the things for further improvements.
- MVP ExpanderTextView
- live on jitpack
- can control line count from xml and programmatically
- can change CONTINUE_TEXT (currently it's available only Read more).
- can change CONTINUE_TEXT (currently it come with Blue).
- a bit neat animation.
ExpanderTextView is influence from