Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextField not support #3

Open
tkkcc opened this issue Jun 13, 2024 · 2 comments
Open

TextField not support #3

tkkcc opened this issue Jun 13, 2024 · 2 comments

Comments

@tkkcc
Copy link

tkkcc commented Jun 13, 2024

i try to use TextField in floating window, but keyboard input doesn't work

            val floatingWindow = ComposeFloatingWindow(applicationContext)
            floatingWindow.setContent {
                var text by remember {
                    mutableStateOf("aaa")
                }
                TextField(text, {
                    text = it
                })
//                FloatingActionButton(
//                    modifier = Modifier.dragFloatingWindow(),
//                    onClick = {
//                        Log.d("", "tap floating button")
//                    }) {
//                    Icon(Icons.Filled.Call, "Call")
//                }
            }
            floatingWindow.show()
@tkkcc
Copy link
Author

tkkcc commented Jun 14, 2024

it works with only FLAG_NOT_TOUCH_MODAL, same as xrubioj/JetpackComposeOverlayTest#1

@tkkcc
Copy link
Author

tkkcc commented Jun 14, 2024

it also needs to be TYPE_PHONE on android 7, to let IME padding work at expected. and this match behavior of TYPE_APPLICATION_OVERLAY on 14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant