AndroidTagGroup icon indicating copy to clipboard operation
AndroidTagGroup copied to clipboard

Problem with adding new tags using Google Keyboard

Open meness opened this issue 9 years ago • 9 comments

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.

meness avatar Aug 22 '15 11:08 meness

I am using mTagGroup.getInputTagText() but its returning empty why?

Ayaz12 avatar Dec 18 '15 13:12 Ayaz12

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 avatar Aug 27 '16 18:08 kizitonwose

@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.

korenyoni avatar Sep 01 '16 18:09 korenyoni

@yonkornilov Thanks a lot for that. I've fixed it. Does it compile on your end now?

kizitonwose avatar Sep 01 '16 20:09 kizitonwose

@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.

korenyoni avatar Sep 01 '16 20:09 korenyoni

@yonkornilov Yes, it now works. Thanks a lot.

kizitonwose avatar Sep 03 '16 13:09 kizitonwose

@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!

srujanb avatar Jan 23 '17 14:01 srujanb

@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 avatar Feb 03 '17 18:02 kizitonwose

@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??

srujanb avatar Feb 03 '17 19:02 srujanb