Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Read More Link #20

Open
eoboite opened this issue Dec 4, 2017 · 2 comments
Open

FR: Read More Link #20

eoboite opened this issue Dec 4, 2017 · 2 comments

Comments

@eoboite
Copy link

eoboite commented Dec 4, 2017

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

@Ikbeniyare
Copy link

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

@liamcottle
Copy link
Contributor

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants