Skip to content

aqoong/ExpandableTextView

Repository files navigation

ExpandableTextView

[Android CustomView] ExpandableTextView

Alt Text

[Custom View] This is free Custom View for Android. View for use on the same screen as SNS feeds.

How to Use

  • [xml]
 <com.aqoong.lib.expandabletextview.ExpandableTextView android:id="@+id/textView" app:collapseLine="2" <!-- standard line count --> app:text_more="show_more" <!-- defalut : "More" --> android:layout_width="match_parent" android:layout_height="wrap_content" /> 
  • [.java]
ExpandableTextView textView = findViewById(R.id.textView); textView.setText('any text', 'show more option text'); textView.setState(ExpandableTextView.STATE.COLLAPSE | EXPAND); 

Add ExpandableTextView Lib

  • project build.gradle
 allprojects { repositories { google() jcenter() ... maven { url "https://jitpack.io"} ... } } 
  • app build.gradle release
 dependencies { ... implementation 'com.github.aqoong:ExpandableTextView:x.y.z' ... } 

About

[Android CustomView] ExpandableTextView

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages