LucaMs Expert Licensed User Longtime User Mar 9, 2017 #1 Is there a method to know the cursor position in an EditText when an user "scrolls" and release it? https://developer.android.com/reference/android/widget/EditText.html#getDefaultMovementMethod() https://developer.android.com/reference/android/text/method/MovementMethod.html#onKeyUp(android.widget.TextView, android.text.Spannable, int, android.view.KeyEvent) [Like Whatsapp, for example: you can move the cursor and insert an emoticon]
Is there a method to know the cursor position in an EditText when an user "scrolls" and release it? https://developer.android.com/reference/android/widget/EditText.html#getDefaultMovementMethod() https://developer.android.com/reference/android/text/method/MovementMethod.html#onKeyUp(android.widget.TextView, android.text.Spannable, int, android.view.KeyEvent) [Like Whatsapp, for example: you can move the cursor and insert an emoticon]
Erel B4X founder Staff member Licensed User Longtime User Mar 9, 2017 #2 1. Emojis are regular characters. 2. The SelectionStart property will return the cursor position. You can use it to insert characters. Upvote 0
1. Emojis are regular characters. 2. The SelectionStart property will return the cursor position. You can use it to insert characters.
LucaMs Expert Licensed User Longtime User Mar 9, 2017 #3 Erel said: 1. Emojis are regular characters. Click to expand... I'm trying to use this DonManfred's wrapper. If I used "regular characters" I think I should use "special" font files. Erel said: 2. The SelectionStart property will return the cursor position. You can use it to insert characters. Click to expand... But I need an event to now when the selection start changes. Thank you, Erel Upvote 0
Erel said: 1. Emojis are regular characters. Click to expand... I'm trying to use this DonManfred's wrapper. If I used "regular characters" I think I should use "special" font files. Erel said: 2. The SelectionStart property will return the cursor position. You can use it to insert characters. Click to expand... But I need an event to now when the selection start changes. Thank you, Erel
LucaMs Expert Licensed User Longtime User Mar 9, 2017 #4 LucaMs said: But I need an event to now when the selection start changes. Click to expand... No, it is enough to get the selection start when user "selects" (clicks) the character to insert. Upvote 0
LucaMs said: But I need an event to now when the selection start changes. Click to expand... No, it is enough to get the selection start when user "selects" (clicks) the character to insert.
Erel B4X founder Staff member Licensed User Longtime User Mar 9, 2017 #5 The standard font does support emojis: https://www.b4x.com/android/forum/t...-solution-for-display-emoji-in.61083/#content Upvote 0
The standard font does support emojis: https://www.b4x.com/android/forum/t...-solution-for-display-emoji-in.61083/#content
LucaMs Expert Licensed User Longtime User Mar 9, 2017 #6 Erel said: The standard font does support emojis: https://www.b4x.com/android/forum/t...-solution-for-display-emoji-in.61083/#content Click to expand... I know that thread, and I tried (months ago) but it seems that there are few "image characters" available; all of these (more than 800) should be available, or am I wrong? Upvote 0
Erel said: The standard font does support emojis: https://www.b4x.com/android/forum/t...-solution-for-display-emoji-in.61083/#content Click to expand... I know that thread, and I tried (months ago) but it seems that there are few "image characters" available; all of these (more than 800) should be available, or am I wrong?
LucaMs Expert Licensed User Longtime User Mar 9, 2017 #7 LucaMs said: I know that thread, and I tried (months ago) but it seems that there are few "image characters" available Click to expand... I got only these: Upvote 0
LucaMs said: I know that thread, and I tried (months ago) but it seems that there are few "image characters" available Click to expand... I got only these:
Erel B4X founder Staff member Licensed User Longtime User Mar 10, 2017 #8 This means that only these characters are included in the default font Upvote 0