AndroidTagGroup
AndroidTagGroup copied to clipboard
Problem with adding new tags using Google Keyboard
Hi,
There is a problem with adding new tags using Google Keyboard apparently. The library should have two types of listener, onTouch and onClick events. There is no problem on the emulator but on real device I cannot add new tags by clicking on empty area or pressing the enter key.
I am using mTagGroup.getInputTagText() but its returning empty why?
Hi @meNESS, I fixed this issue in my fork, you can find the repo here
use:
compile 'com.github.kizitonwose.AndroidTagGroup:1.6.0'
@KizitoNwose You need to lower your compileSdkVersion to 23 in order for it to build on jitpack.io. I had to do that myself on my own fork. But once it builds it works wonderfully, thank you.
@yonkornilov Thanks a lot for that. I've fixed it. Does it compile on your end now?
@KizitoNwose haven't tried it, still using my own fork because I did another minor change that I need for my app. Check the jitpack.io logs for the snapshot build though. If the log says the build was sucessful then you're good.
@yonkornilov Yes, it now works. Thanks a lot.
@kizitonwose I tried yours, its working! Thanks! But is it possible to listen to the input changes in the edit tag? I badly want that!
@srujan7 You can't do that at the moment. If you're trying to validate the tags, you can check the new tag and return true
or false
in the onAppend()
method. This determines if the new tag is added to the group.
@kizitonwose yh! I downloaded the lib and did changes myself. Btw I couldnt import the lib in my project as it is. I had to remove two lines (maven related) from the gradle file to remove build errors. Is that how it is meant to be??