Skip to content

Custom view to expand long text with view more,less action , you can customize min lines , action color

Notifications You must be signed in to change notification settings

MostafaGad1911/ExpandableTextView

Repository files navigation

ExpandableTextView

Custom expadable text view

Examples :

       
    <mostafa.projects.expandabletextview.ExpandableTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:underlineColor="@color/brubble"
        android:padding="10dp"
        android:text="Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello           World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World             Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello             World"
        app:underlineMaxlines="3" />

Getting Started

Step 1: Add it to build.gradle (project level) at the end of repositories:

            allprojects 
              {
                 repositories 
   	           {	
   		       maven { url 'https://jitpack.io' }
   	           }  
              }

Step 2 : Add the dependency

       implementation 'com.github.MostafaGad1911:ExpandableTextView:1.1.1'
       

Example

About

Custom view to expand long text with view more,less action , you can customize min lines , action color

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages