426 questions
Score of 0
0
votes
0 answers
0
answers
57 views
57
views
InputConnection Support on Android 9+
I feel a little lost. I've created a subclass of TextureView which should support text input via keyboard. I've tested my code on physical device with Android 12 and Emulator and it works fine. But, ...
Score of 1
1
vote
0 answers
0
answers
63 views
63
views
Missing first KeyEvent when using ComponentActivity.setContent()
I want to intercept all KeyEvents in Activity regardless of focus.
Minimal working example:
class MainActivity : ComponentActivity() {
@SuppressLint("RestrictedApi")
override fun ...
Score of 1
1
vote
2 answers
2
answers
458 views
458
views
Using custom input method in compose 1.7.0 and above
I was using LocalTextInputService and TextInputService to show my own custom input TextField in app. But they are deprecated in compose 1.7.0 and as result CoreTextField is stopped receiving ...
Score of 0
0
votes
1 answer
1
answer
277 views
277
views
Android app custom input method is disabled and deselected on app launch from Android Studio
Context:
I am developing an app that implements a custom input method (a custom keyboard). It builds fine, and I can enable and switch over to the keyboard manually, but every time I launch the app ...
Score of 0
0
votes
1 answer
1
answer
332 views
332
views
Overriding AOSP keyboard
Error:
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.inputmethod.latin.CarIME" on path: DexPathList[[zip file "/data/app/~~6CnZ_EwlgHaoEjQXjHx4lA==/com....
Score of 1
1
vote
0 answers
0
answers
429 views
429
views
How to create input connection from Jetpack Compose Text Field?
I have my own custom keyboard created with jetpack compose, in my custom keyboard there's a feature that shows a textfield and we can type that textfield with the keyboard too, so I have to switch ...
Score of 0
0
votes
2 answers
2
answers
388 views
388
views
Suggestion text is not displaying in android keyboard
When I use inputType as "textUri", Suggestion text input is not displaying.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://...
Score of 0
0
votes
1 answer
1
answer
209 views
209
views
InputMethodService onCreateInputView not called
I have a simple InputMethodService implementation:
class MyKeyboardView : InputMethodService() {
override fun onCreate() {
super.onCreate()
Timber.d("onCreate")
}
...
Score of 1
1
vote
0 answers
0
answers
792 views
792
views
Android. How to implement a custom keyboard?
I'm going to develop a custom keyboard, but I don't understand the sequence of steps that I need to perform in order for everything to work properly.
My requirements: the keyboard should automatically ...
Score of 0
0
votes
1 answer
1
answer
72 views
72
views
How do I create keypreview from InputMethodService using PopupWindow in android?
I am trying to create custom keyboard for android system with Buttons and it is working fine. But now I want to add key preview. I am new in android, plese help me if it is possible showing ...
Score of 2
2
votes
0 answers
0
answers
80 views
80
views
android custom IME getSelectedText blocks main thread
I have a soft keyboard app. I am trying to getSelectedText() of the EditText in order to handle occasions when user has selected some text. I need to do this because my app does not access the app ...
Score of 2
2
votes
2 answers
2
answers
1560 views
2k
views
Can a Compose LazyList be scrolled to adjust for keyboard?
I have been wrestling with IME padding/adjustment for my app. I have written a little toy app to try and focus on just the problem. The app presents a scrollable list of cards with info on them, the ...
Score of 0
0
votes
1 answer
1
answer
796 views
796
views
Is this statement "Although Android gives focus to the first text field in your layout when the activity starts" still valid?
I found the subject statement in Handle input method visibility section
I would like to try to open my keyboard on activity start. However, my only EditText is not focused on activity start. My layout ...
Score of 1
1
vote
1 answer
1
answer
196 views
196
views
How to simulate typing with char-by-char delay using InputConnection?
I need to simulate typing text with char-by-char delays using soft input keyboard on a WebView. I can't use WebView#dispatchKeyEvent because it's not suitable for typing Unicode text and does not ...
Score of 0
0
votes
0 answers
0
answers
384 views
384
views
Jetpack Compose not updating View when using InputMethodService
You can find a sample project to reproduce the issue on Github
Button click works, but showing/ hiding the "Text" inside Column is not working when using InputMethodService
@Composable
fun ...