AutoLinkTextView icon indicating copy to clipboard operation
AutoLinkTextView copied to clipboard

FR: Read More Link

Open eoboite opened this issue 8 years ago • 2 comments

I have a feature request for read more link to truncated text that expands text on click?

eoboite avatar Dec 04 '17 20:12 eoboite

Please it will be awesome if you add the read more link

Ikbeniyare avatar Feb 15 '18 03:02 Ikbeniyare

You could use armcha/AutoLinkTextView as a child view of an already existing library for expanding text views, for example Manabu-GT/ExpandableTextView

<com.ms.square.android.expandabletextview.ExpandableTextView
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:expandableTextView="http://schemas.android.com/apk/res-auto"
        android:id="@+id/expand_text_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        expandableTextView:maxCollapsedLines="4"
        expandableTextView:animDuration="200">

    <com.luseen.autolinklibrary.AutoLinkTextView
            android:id="@id/expandable_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp"
            android:textSize="16sp"
            android:textColor="#666666" />

    <ImageButton
            android:id="@id/expand_collapse"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:padding="16dp"
            android:layout_gravity="right|bottom"
            android:background="@android:color/transparent"/>

</com.ms.square.android.expandabletextview.ExpandableTextView>

liamcottle avatar Mar 06 '18 05:03 liamcottle