Coder Social home page Coder Social logo

armcha / autolinktextviewv2 Goto Github PK

View Code? Open in Web Editor NEW
267.0 4.0 30.0 17.46 MB

AutoLinkTextView is a TextView that supports automatic detection of Hashtags (#), Mentions (@) , URLs (http://), Phone Nubers and emails

Kotlin 100.00%
autolinktextview regex url-detection android

autolinktextviewv2's Issues

Could not resolve com.github.armcha:AutoLinkTextViewV2:3.0.0.

Seems like the package disappeared from the repos. Any ideas?

> Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
   > Could not find com.github.armcha:AutoLinkTextViewV2:3.0.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/github/armcha/AutoLinkTextViewV2/3.0.0/AutoLinkTextViewV2-3.0.0.pom
       - https://jcenter.bintray.com/com/github/armcha/AutoLinkTextViewV2/3.0.0/AutoLinkTextViewV2-3.0.0.pom
       - https://repo.maven.apache.org/maven2/com/github/armcha/AutoLinkTextViewV2/3.0.0/AutoLinkTextViewV2-3.0.0.pom
       - https://jitpack.io/com/github/armcha/AutoLinkTextViewV2/3.0.0/AutoLinkTextViewV2-3.0.0.pom

Non-standard ASCII characters break hashtag color streak (see screenshot)

When hashtag contains some non-standard non-English letters like German or Cyrillic letters, hashtag color breaks from that letter on. Just take a look at screenshot:

Screenshot_20191211-145139

Also it happens sometimes that hashtag is not detected at all and remains completely white, although I'm still not sure if it's a library issue or something on my side..

AutoLink is not working When we change the Textview attributes

Autolink cannot be applied when we change the textview's height into a fixed height.

<io.github.armcha.autolink.AutoLinkTextView
    android:id="@+id/autoLinkTextView"
    android:layout_width="match_parent"
    android:layout_height="240dp"
    android:background="@color/colorPrimary"
    android:gravity="center"
    android:padding="10dp"
    android:textColor="@android:color/black" />

莫名其妙的空指针

 Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void io.github.armcha.autolink.AutoLinkTextView.addAutoLinkMode(io.github.armcha.autolink.Mode[])' on a null object reference

Two different custom mode in single autolinktextview

Hello,
Is it possible to have two different custom mode in a single text to display on AutoLinkTextView ?
For example: Android is a operating system.
I want to custom on wording "Android" and "system" and display on AutoLinkTextView.

Thanks advanced for your reply.

Have a good day.

Support Arabic hastags

Please change hastags regex to below regex to support Arabic hastags.
internal val HASH_TAG_PATTERN: Pattern = Pattern.compile("(?<![a-zA-Z0-9_])#(?=[0-9_]*[a-zA-Zء-ي])[a-zA-Zء-ي0-9_]+")

use java

hi
how can set 'addAutoLinkMode' in java ?

URL first letter not highlighted

if the url is the starting at the first word in the textview the first letter in the url not highlighted,this library has this commit for this issue but the library doesn't have this changes version 2.1.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.