Skip to content

I tried to use it but it's not changing the text color. #31

@mr0kaushik

Description

@mr0kaushik

JAVA

content.addAutoLinkMode(
                AutoLinkMode.MODE_HASHTAG,
                AutoLinkMode.MODE_PHONE,
                AutoLinkMode.MODE_URL,
                AutoLinkMode.MODE_EMAIL,
                AutoLinkMode.MODE_MENTION);

        content.setHashtagModeColor(ContextCompat.getColor(this, R.color.colorBlueType1));
        content.setEmailModeColor(ContextCompat.getColor(this, R.color.colorBlueType1));
        content.setMentionModeColor(ContextCompat.getColor(this, R.color.colorBlueType1));
        content.setUrlModeColor(ContextCompat.getColor(this, R.color.colorBlueType1));

        content.setText("Enter Content www.gmail.com @the #hkjhs thor.jane@gmail.com");

XML

<LinearLayout
        android:id="@+id/editPart"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/headPart">

        <com.luseen.autolinklibrary.AutoLinkTextView
            android:padding="8dp"
            android:id="@+id/body"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:maxLength="280"/>

    </LinearLayout>

IMG_20190520_152937 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions