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...

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...

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...

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, ...

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...

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?

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...

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...

4

Solved

How can I add a suffix to TextField input that flows (moves) with the user input text?

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...

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...

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...

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.

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...

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...

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...

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...

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

8

Solved

Here is how OutlinedTextField code looks like in jetpack-compose: OutlinedTextField( value = "", onValueChange = {}, label = {Text("Input")} ) The default color of the outli...

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?

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...

© 2022 - 2024 — McMap. All rights reserved.