mabbas007 / tagsedittext Goto Github PK
View Code? Open in Web Editor NEWAndroid EditText for view tags or chips
License: Apache License 2.0
Android EditText for view tags or chips
License: Apache License 2.0
the tagsBackground property is making the app crash whenever any value is set.
Is there a way to set a maximum number of tags permitted? Is there a way to set the Edit Text as single line? (the default attribute is not working)
Thanks
Hi, How to set fixed length of tag?
I want to add drawable resource image in tag 'tagsCloseImageRight'. But EditText is not accepting drawable resource value. Its accepting only integer value.
after adding one tag,
tagsEditText.showDropDown() is not showing the suggestions . Am I missing something?
Hy, I wonder how to add data programmatically ?
for example I have List, and I want every element of list as different tags.
Hi,
I want to make my tag without any space and also when we click on space tag create .
How is that possible.Please guide me
Thanks
How to set as input type as number
I want to show like this : https://www.screencast.com/t/afUmcSxJf
Cursor in edit text center tag.
Please help me.
Thank you so much.
Unable to resolve compile 'com.github.mabbas007:TagsEditText:v1.0.5'
com.github.mabbas007:TagsEditText:v1.0.4
is working.
Hi
Thanks for an awesome library.
I'm facing an issue with the current version of library.
when i enter a tag suppose "abc" and then add another tag with the same name and a number added to it after a space "abc 2" the tag text gets deleted and only 2 is added as a text. For this situation to reproduce the text must be same for both the tags and the second tag must be followed by a space and then any number.
How can use for RTL text?
Can we customised prompt , Right now its is not looking good.
Please let me know if there is any way to change prompt background color , textview color , margin , padding etc
When the user is typing a new item (that isn't in fruits.xml) and pushes the enter key the tag is created. I want the same but when the user types ',' (comma) key.
I'm reading the code but I don't found that code.
how can prevent enter key from keyboard ?
I just want to add tags from the suggestion list not manually entered
I have this error in my xml when I follow the 3 step.
"Namespace 'TagsEditText' is not bound"
Edit: if I replace 'TagEditText' by 'app' everything works fine but I don't understand why.
as I add "compile 'com.github.mabbas007:TagsEditText:1.0.5'" in my dependencies I get the error that
Failed to resolve compile 'com.android.support:appcompat-v7:25.3.1'
Hi
I'm using the features of TagsEditText well. Nice and good. I found one problem.
After typing several tags and clearing a few tags and typing again, tagging does not work properly with the following error. It's okay if you just type it, but it seems to be a problem if you delete it and retype it.
Please advice me. and fix it
Fatal Exception: java.lang.IndexOutOfBoundsException: replace (8 ... 12) ends beyond length 11
at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1265)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:515)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:509)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:508)
at mabbas007.tagsedittext.TagsEditText.removeTagSpan(TagsEditText.java:570)
at mabbas007.tagsedittext.TagsEditText.access$800(TagsEditText.java:51)
at mabbas007.tagsedittext.TagsEditText$3.onClick(TagsEditText.java:557)
at android.text.method.LinkMovementMethod.onTouchEvent(LinkMovementMethod.java:217)
at android.widget.TextView.onTouchEvent(TextView.java:10059)
at android.view.View.dispatchTouchEvent(View.java:10723)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550)
at android.widget.ScrollView.dispatchTouchEvent(ScrollView.java:738)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:559)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1870)
at android.app.Activity.dispatchTouchEvent(Activity.java:3236)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:71)
at io.userhabit.service.main.b.g.dispatchTouchEvent(Unknown Source)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:521)
at android.view.View.dispatchPointerEvent(View.java:10952)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5121)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4973)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4504)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4557)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4523)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4656)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4531)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4713)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4504)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4557)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4523)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4531)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4504)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7011)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6940)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6901)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7121)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
My tag corners are sharp angle, but the github sample image they are rounded.
Nice Library, can you please tell me how to add tags on a click of another button
How to add , instead of enter key to make tags
Error:(25, 13) Failed to resolve: com.github.mabbas007:TagsEditText:v0.95
This library is conflicting with androidx. So, please migrate to androidx.
Hi, I want to set Strings as tags but it doesn't work
I can't seem to import the library using gradle
compile 'com.github.mabbas007:TagsEditText:v1.0.1'
In my case all hashtag need to be start with # and it needs to be disappear after complete. Can i do it by existing libray, if possible please give me an example.
Hello
How to implement text change color of suggestion drop down?
Like
if I am typing "Abc" than I need a suggestion box with Abc character will be different colour
i added tags in as - mabbas007.tagsedittext.TagsEditText as 20 characters like in ---
String[] language ={"C","C++","Java",".NET","iPhone","Android","ASP.NET","PHP","C","C++","Java",".NET","iPhone","Android","ASP.NET","PHP","ASP.NET","PHP","ASP.NET","PHP"};
and its showing me as a simple string not as a tag
First, congratulation for your library.
I have a button
which save the tags in data base and clear the TagsEditText
. But the next time when I type new tags and I press return, in the TagsEditText
appear old tags and new tags because when the user press save button I should clean Collection<String> tags
but I don't know how do it.
Thanks
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.github.mabbas007:TagsEditText:1.0.5
When setTagsWithSpaces is enabled app behaves weirdly when user spams space key. It starts to copy characters
How can I prevent from adding existing tag? Or if I have "John Smith" tag and I click to add this one again, how can I remove all "John Smith" tags?
When I try to put in XML the tag "tagsBackground" and the value a drawable appear that error!
Here i have scenario like i want to add tag after every 8 digit , When i complete the 8 digit than i want to add tag with a string like "NCT-12345678". I have implement logic for count 8 digit while user insert.
but i could not add that as Tag. My logic for insert tags like below
`
try {
if (digit == 8) {
String getCurrentString = charSequence.toString();
if (getCurrentString.length() > 0) {
String getCurrentText = getCurrentString.substring(getCurrentString.length() - 8);
List<String> allTags = tag_value.getTags();
allTags.add("NCT-" + getCurrentText.toString());
final String[] charSequenceItems = allTags.toArray(new String[allTags.size()]);
for (int j = 0; j < charSequenceItems.length; j++) {
Log.e("NCT", charSequenceItems[j].toString());
}
Runnable runnable = new Runnable() {
public void run() {
tag_value.setTags(charSequenceItems);
}
};
new Handler().postDelayed(runnable,1000);
}
digit = 0;
}
} catch (Exception e) {
e.printStackTrace();
}`
Right now the behavior is that whenever the Tag is clicked, it is removed.
It is possible to remove the Tag only when the closeRight drawable is clicked?
Any suggestions?
i enter 50 tags...when i scroll to show my 1st tag then directly pointed my last tag...how to i show my 1 st tag and remove that directly move to bottom scroll ?
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?
hi, thanks for this great lib!
i wanna ask, is it possible to implement dropdown autocomplete when we type something like hashtag in instagram?
thanks
I would like to have imeOption Next on my soft keyboard when editing tags in TagsEditText, but setting android:imeOptions="actionNext"
is not working for me.
<mabbas007.tagsedittext.TagsEditText android:id="@+id/tetTagovi" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@id/tvOpisLabel" android:layout_alignParentStart="true" android:nextFocusForward="@id/etOpis" android:imeOptions="actionNext" TagsEditText:allowSpaceInTag="true" TagsEditText:tagsBackground="@drawable/tag_background" TagsEditText:tagsCloseImageRight="@drawable/tag_close" />
the tags is limit 8,how can I do that
How to set max tags inserted?
Hi I am using your library to generate the tags in dialog fragement. following is my code snippet.
<mabbas007.tagsedittext.TagsEditText android:id="@+id/tagsEditText" android:layout_width="match_parent" android:layout_height="wrap_content" TagsEditText:allowSpaceInTag="true" TagsEditText:tagsCloseImageRight="@drawable/tag_close" TagsEditText:tagsBackground="@drawable/square" TagsEditText:tagsCloseImageLeft="@drawable/dot" TagsEditText:tagsTextColor="@color/colorPrimaryDark" TagsEditText:tagsTextSize="@dimen/defaultTagsTextSize" TagsEditText:tagsCloseImagePadding="@dimen/defaultTagsCloseImagePadding"/>
The problem is, it does generate square tags instead of round tags. can you please let me know what i am doing wrong? Thanks in advance.
please, help me
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.