android-compose-textfield Questions
2
Solved
I discovered today that MaterialTheme applies an alpha to Text's colour. As you can see from the example attached, when I change the background colour, the text's colour appears to be different bec...
Terrazzo asked 13/10, 2022 at 2:9
3
Solved
I need a text field in jetpack compose that works with a mask like this: NNNNN-NNN where N is an integer from 0 to 9. I need my composable function to have this mask in the OutlinedTextField :
@Com...
Melitamelitopol asked 5/9, 2021 at 14:9
5
Solved
Hi I need to remove the underline in my TextField because it look ugly when the TextField is circular. I have sat the activeColor to transparent, but then the cursor wont show (because it's transpa...
androidandroid-textinputlayoutandroid-jetpack-composeandroid-compose-textfieldandroid-jetpack-compose-text
Underscore asked 18/1, 2021 at 19:14
2
I'm looking for a way to disable the keyboard auto suggestions with the TextField Composable.
In the olden days of Android from about 4 months ago, using EditText you could do something like this, ...
Stockton asked 22/9, 2021 at 19:17
6
Solved
I want to enter only numbers in Textfield. I tried this stackoverflow logic to restrict alphabet and special characters but when I press dot in my keyboard it's crash.
Error
2022-08-18 09:47:13.966...
Jaffe asked 18/8, 2022 at 8:55
5
Solved
I would like to remove the purple line/indicator (see the following image) of TextField.
Is that possible or should I create my own custom TextField to achieve that?
Demos asked 15/10, 2020 at 1:12
2
Solved
In currently transitioning my app to Jetpack compose and I'm facing some problems to adapt my current color palette in some cases.
I have some TextInputLayout on my xml files that inherit the highl...
Gumbotil asked 13/8, 2021 at 23:40
2
Solved
I have a screen where some textfields I want to show a 'fake' keyboard. The keyboard should be able have as many buttons as I like and be displayed however I want. Just as shown below.
My question...
Thin asked 20/5, 2022 at 16:51
4
Solved
How can I add a suffix to TextField input that flows (moves) with the user input text?
Lajuanalake asked 23/11, 2022 at 8:7
5
Solved
In general, most components in Jetpack Compose seem to be very easy to customize.
However, the same cannot be said for the TextField. For example, say that I wanted to make something like this:
On...
Christoper asked 26/10, 2020 at 18:7
2
I have a lazyColumn which I want to use inside the column but I get the below error and app crashes:
Nesting scrollable in the same direction layouts like LazyColumn and Column(Modifier.verticalSc...
Smukler asked 3/11, 2021 at 9:22
2
Solved
The solution I have so far is to use a Transparent Color for the cursor.
I am looking for a better way to hide it if there is any.
cursorBrush = SolidColor(Transparent)
TextField should be focused...
Kilt asked 9/8, 2022 at 6:21
4
Solved
I started working with Jetpack compose (1.0.0-beta07) and I ran into a pretty strange problem with TextField. According to all possible documentation and instructions, I do everything right, but An...
Arin asked 20/5, 2021 at 9:45
7
Solved
Is there any out of the box solution for limiting the character size in TextField's ?
I don't see any maxLength parameter like we had in XML.
Krak asked 17/4, 2021 at 8:11
10
Solved
I'm using the Jetpack Compose TextField and I want to close the virtual keyboard when the user press the the action button (imeActionPerformed parameter).
val text = +state { "" }
TextField(
valu...
Hypnosis asked 2/12, 2019 at 5:25
5
Solved
I'm using Jetpack compose 1.0.0-alpha07. I made a login screen that contains two TextFields customized using other composables.
However, setting ImeAction in keyboardOptions does not seem to work. ...
Fanelli asked 21/11, 2020 at 19:34
2
Solved
Reproducible with code:
var value by remember { mutableStateOf("Hello\nWorld\nInvisible") }
TextField(
value = value,
onValueChange = { value = it },
label = { Text("Enter text&q...
Ashil asked 30/9, 2022 at 1:29
2
Solved
I want the keyboard to pop up by an auto requesting focus on a text field in jetpack compose when the user navigates to a composable. As of now, this is what I have tried but it doesn't seem to wor...
Denunciation asked 6/7, 2021 at 10:7
3
Solved
How to implement a thousands separator visual transformation which also works with decimals too. I have found an implementation of thousand separator visual transformation for Int numbers but the p...
Portuguese asked 23/11, 2022 at 12:19
5
Solved
I need to show error message in OutlinedTextField and I don't find any documentation about how to do it. I found several ways in tutorials, for example to create custom input field with hint or cre...
Tie asked 29/7, 2021 at 9:13
5
Solved
I want something like this:
• Hey this is my first paragraph.
• Hey this is my second paragraph.
And this is the second line.
• Hey this is my third paragraph.
Comprise asked 15/1, 2022 at 18:23
9
Solved
I want to create textfield with hint text in jetpackcompose. Any example how create textfield using jectpack? Thanks
Byrnie asked 15/11, 2019 at 19:6
8
Solved
Here is how OutlinedTextField code looks like in jetpack-compose:
OutlinedTextField(
value = "",
onValueChange = {},
label = {Text("Input")}
)
The default color of the outli...
Beery asked 3/3, 2021 at 9:0
7
Solved
I was wondering if there is a solution for Exposed drop-down menu for jetpack compose?
I couldn't find a proper solution for this component inside jetpack compose. Any help?
Coumarone asked 15/4, 2021 at 15:7
6
Solved
How can we achieve this in jetpack compose
I'm doing something like this
Button(
elevation = ButtonDefaults.elevation(
defaultElevation = 0.dp,
pressedElevation = 8.dp,
disabledElevation = 0.d...
androidandroid-jetpack-composeandroid-compose-textfieldandroid-compose-buttonandroid-jetpack-compose-button
Marinelli asked 22/5, 2022 at 10:58
1 Next >
© 2022 - 2024 — McMap. All rights reserved.