https://kotlinlang.org logo
#compose
Title
# compose
t

Thiago

07/21/2020, 3:53 AM
I found using dev14. There is a big ripple to the FilledField when clicked. And I can grab the label to copy the text. Are those actions expected already?
Copy code
setContent {
            MaterialTheme(
                colors = lightColorPalette(
                    background = colorResource(id = R.color.loginPageBackgroundColor),
                    primary = colorResource(id = R.color.colorPrimary),
                    primaryVariant = colorResource(id = R.color.colorPrimaryDark),
                    secondary = colorResource(id = R.color.colorAccent)
                )
            ) {
                Column(
                    modifier = Modifier.fillMaxSize(),
                    horizontalGravity = Alignment.CenterHorizontally,
                    verticalArrangement = Arrangement.Center
                ) {
                    var text by savedInstanceState { "" }

                    FilledTextField(
                        modifier = Modifier.fillMaxWidth(),
                        value = text,
                        onValueChange = { text = it },
                        label = { Text(text = "Username") },
                        keyboardType = KeyboardType.Email,
                        imeAction = ImeAction.Done
                    )
                }
            }
        }
l

Leland Richardson [G]

07/21/2020, 4:00 AM
cc @Siyamed I’m guessing not. If you would be willing to file a bug it would be much appreciated!
(this might be a known issue though)
s

Siyamed

07/21/2020, 4:02 AM
That ripple is huge! :) I didnt see it before
Selecting the label is expected at the current stage. We have been discussing the selectability of various text
Lets create a ticket for the ripple (again i didn't see it currently, it might be smthng that has been fixed)
m

Marcin Środa

07/21/2020, 8:47 AM
Is a keyboard bug a known issue? (it's not possible to type on your hardware keyboard, only soft keyboard on emulator works)
j

Joost Klitsie

07/21/2020, 12:24 PM
I have the same with OutlinedTextField @Siyamed if it is interesting to know 🙂 @Marcin Środa I only had the hardware keyboard not working when filling in a password, perhaps it is related with input type/transformations?
m

Marcin Środa

07/21/2020, 1:41 PM
Even a simple textfield doesn't work with hardware keyboard:
Copy code
FilledTextField(
    value = state.value,
    onValueChange = { text: TextFieldValue ->
        viewModel.setState(text)
    },
    label = {}
}
👍 1
And agree - ripple is huge
m

Madhava

07/22/2020, 11:28 PM
+1 I have this problem as well, as well as issues with the keyboard ime override.