Java Code Examples for android.widget.TextView.getLinksClickable()

The following are Jave code examples for showing how to use getLinksClickable() of the android.widget.TextView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: qmui   File: QMUILinkify.java   View Source Code Vote up 5 votes
private static final void addLinkMovementMethod(TextView t) {
    MovementMethod m = t.getMovementMethod();

    if ((m == null) || !(m instanceof LinkMovementMethod)) {
        if (t.getLinksClickable()) {
            t.setMovementMethod(LinkMovementMethod.getInstance());
        }
    }
}
 
Example 2
Project: boohee_v5.6   File: TimeLineUtility.java   View Source Code Vote up 5 votes
public static void addLinksWithShowMore(TextView view, Post post) {
    if (post.cut) {
        handleLinksWithShowMore(view, post);
    } else {
        view.setText(convertNormalStringToSpannableString(post.body));
    }
    if (view.getLinksClickable()) {
        view.setMovementMethod(LongClickableLinkMovementMethod.getInstance());
    }
}
 
Example 3
Project: QMUI_Android   File: QMUILinkify.java   View Source Code Vote up 5 votes
private static void addLinkMovementMethod(TextView t) {
    MovementMethod m = t.getMovementMethod();

    if ((m == null) || !(m instanceof LinkMovementMethod)) {
        if (t.getLinksClickable()) {
            t.setMovementMethod(LinkMovementMethod.getInstance());
        }
    }
}
 
Example 4
Project: boohee_v5.6   File: TimeLineUtility.java   View Source Code Vote up 4 votes
public static void addLinks(TextView view) {
    view.setText(convertNormalStringToSpannableString(view.getText().toString()));
    if (view.getLinksClickable()) {
        view.setMovementMethod(LongClickableLinkMovementMethod.getInstance());
    }
}