Comments (13)
It seems the compatibility problem of the ime,
What's the ime you've been installed?
from androidtaggroup.
I'm using the default Android keyboard (in Android 5.0).
from androidtaggroup.
Hi, I am using OnEditorActionListener
to handle "Enter" key to "submit" a new tag and OnKeyListener
to detect the "Backspace" key to delete the tag. which works fine with the third-part soft keyboard (e.g. QQ IME) or the hardware keyboard.
But it does not work with the Google Keyboard.
And I find the documentation states that the key events will only be propagated for the hardware key strokes, not software.
It is completely up to the manufacturer to honour that or to actually treat the soft and hard keyboards with equal terms.
Do you have a workaround deal with the Google Keyboard?
BTW, you can tap to blank area of the tag group to "submit" a new tag, and you can double-click the "Normal" state tag to delete it.
from androidtaggroup.
Thanks for the tips, I will try to see if it works.
Maybe you could try to use android:imeOptions and listen when the user press on that key on the keyboard? (maybe actionDone
, or let the developer choose its own).
from androidtaggroup.
Thank you, I have release the 1.1 version for some bug fixed, and a new method submitTag()
to "submit" a new tag via code:)
from androidtaggroup.
Thank you for the new release. The submitTag()
is helpful!
I found this SO question about this issue. I cloned your project and test the proposed solution, and it works.
I simply added the following in the TagView
constructor:
setRawInputType(InputType.TYPE_CLASS_TEXT);
setImeOptions(EditorInfo.IME_ACTION_GO);
from androidtaggroup.
Awesome, thank you the tips.
But I don't think the GO action is appropriate for the context.
And i found a SO question about detect the delete(backspace).
I will test it and keep looking for workaround :)
from androidtaggroup.
Maybe you can use GO something else) by default, and let the user customise the action he wants to use (via a method like setImeOptions()).
from androidtaggroup.
Do you have any news about this? Did you have time to test and find a workaround?
from androidtaggroup.
Having the same issue! 'Enter' on the stock keyboard just makes a new line
from androidtaggroup.
I made some test but i didn't found how to solve it... As a workaround, you can set the IME_ACTION_GO
.
from androidtaggroup.
I think it may help if you set the edittext to singleLine 'android:singleLine="true"' the 'enter' key then becomes 'done' and is easy to target
from androidtaggroup.
Hi, i set the edittext to singleLine, then the 'enter' key becomes 'done' and it just collapse the soft keyboard when click, no new tag added, on the Google Keyboard.
from androidtaggroup.
Related Issues (20)
- 在RecyclerView中时,TagView未恢复到未按下状态 HOT 2
- How to change the shape of the tag from oval to rectangle? HOT 1
- Why there is no `atg_textStyle`
- 可不可以做个Material风格的
- checked状态 HOT 1
- Regarding focusable mode
- Update View
- How to use autofillHints property in TagGroup?
- How make tag checked on tap HOT 3
- while input the same text as before ,lib while make application crash
- How to change selected tag color ? HOT 4
- 如何修改圆角的程度 HOT 1
- Tags Suggestion?
- On space new tag?
- New tags is hidden when insert emails
- 需要添加到proguard取消混淆吗
- I think 'only deletable mode' is needed HOT 2
- Not able to upload android app on playstore due to this library
- 魅族手机显示tag,圆角起始处向右偏移了一点,导致右边宽度被裁剪一点,附解决方法
- How to add dynamic headers in Tag group
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidtaggroup.