mabbas007 / TagsEditText

Android EditText for view tags or chips
Apache License 2.0
694 stars 124 forks source link

How am I suposed to get A List os tags? #28

Closed AnaxAndrade closed 7 years ago

AnaxAndrade commented 7 years ago

Can't figure out how to get List of tags - not from an event, but synchronously at any time. Like a public List getTags() method on the TagsEditText?

mabbas007 commented 7 years ago

I'll mark this as enhancement, and work on it asap

AnaxAndrade commented 7 years ago

Just Add:

public List<String> getTags(){
        return convertTagSpanToList(mTagSpans);
    }

To the File TagsEditText.java

PS: I wanted to make a Pull Request but after opening this repo on Android Studio couldn't get gradle to Sync because of (but no problem since yo just will have those 3 lines above):

Error:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection Possible causes for this unexpected error include:

  • Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

AnaxAndrade commented 7 years ago

@mabbas007 Any updates on this?

aleporf commented 7 years ago

... any updates i want to get a list

mabbas007 commented 7 years ago

Working on it, will push it in a couple of minutes