Material Design implementation in Jetpack compose of a TextField
Questions tagged [android-compose-textfield]
242 questions
0
votes
0 answers
How to create a JSpinner-like widget in Jetpack Compose
I would like to create a widget in Jetpack Compose (Desktop) with similar functionality as the JSpinner in Swing, i.e. an editable text field and two buttons that increase/decrease the value in the text field. Also, I would like
the value to be…

Thomas
- 101
0
votes
0 answers
Could not get access "string" and drawable folder of Rescuers in Composes android
here is my code, unable to get access string and drawable folder in composes, where i have mistake help appreciated.

Ayaz Muhammad
- 138
- 10
0
votes
2 answers
Unable to change Elevation Color For Card in Jetpack Compose
I am using a Card in-order create different buttons.
I want my card to look exactly like shown in the image, and I tried many solutions online but none of that worked.
Just want to change Card elevation color, but can't find a way to do it.
Card(
…

Deep Mashru
- 23
- 6
0
votes
1 answer
When i change state and lottie animation visibility change to visible It changed Button size in whole screen
Here is the code how I implement my button.
Is there any way to lottie animation took place without increase size and without apply fix height of button.
Button(modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 10.dp),
…

Nirav Rangapariya
- 73
- 5
0
votes
1 answer
How can I get TextField value from another composable function in Jetpack Compose
I have created one function called TextInput that contained TextField
@Composable
fun TextInput(
inputType: InputType
) {
var value by remember { mutableStateOf("") }
TextField(
modifier =…

Unknown
- 187
- 7
0
votes
1 answer
visual transformation for price in jetpack compose
I am trying to implement visual transformation for price in format "##,##,###", main problem I am facing is when I parse the string using DecimalFormat if the first character is 0 and then user is entering a different number application is getting…

sarthak gupta
- 826
- 4
- 12
0
votes
1 answer
why this two items have different width in jetpack compose
Hey guys I am learning textfield in jetpack compose. I want to use multiple time so I make a function and use it. when I am passing start padding it decreases the width of other one. Can someone help me on this, where i am wrong here.
Column(
…

Kotlin Learner
- 3,995
- 6
- 47
- 127
0
votes
1 answer
How to disable showing the virtual keyboard when tapping on a TextField?
I'm trying to build a clone Android Calculator app so that I can simulate the display of the digits I'm using the TextField component as it, said that, I'd like to know how to disable invoking the virtual keyboard when tapping on one.
Because when…

Jorge Luiz
- 281
- 4
- 10
0
votes
1 answer
How to set border color in jetpack compose BasicTextField?
I use BasicTextField from package androidx.compose.foundation.text and it has a default grey field color as visible here:
I do not want this grey highlight, therefore I want to set the backgroundColor completely to black:
BasicTextField(
…

Ralf Wickum
- 2,850
- 9
- 55
- 103
0
votes
1 answer
Soft keyboard over view in dialog ( jetpack compose view)
I have a dialog view like
Dialog(
onDismissRequest = { openDialogCustom.value = false },
properties = DialogProperties(
dismissOnBackPress = true,
dismissOnClickOutside = false
)
) {
Column(Modifier.height(600.dp)) {
…

Anh Luu
- 176
- 1
- 7
0
votes
1 answer
How to set the inputType for a TextField as a binary (0 and 1) in Jetpack Compose?
I'm trying to set input type of the TextField as a Binary but there is no KeyboardOptions KeyboardType as Binary.
So how can I accomplish this ?
TextField(
value = text,
keyboardOptions = KeyboardOptions(keyboardType =…

Enca
- 3
- 3
0
votes
1 answer
How to mask a TextField to show the dd/mm/yyyy date format in Jetpack Compose?
Using Jetpack Compose, how can I format the TextField value to follow the "dd/mm/yyyy" format?

Thiago Souza
- 1,171
- 8
- 16
0
votes
1 answer
Jetpack compose state management, unable to change background color of Card
Using Jetpack Compose state management, I want to change background of Card in scrollable list, when user clicks on AlertDialog
As shown in below code, I have stored state as cardState with remember
When user is clicking on AlertDialog positive…

Kushal
- 8,100
- 9
- 63
- 82
-1
votes
1 answer
Composable drawLine looks different in Column
I am learning Compose and playing with it. My intention is to create custom textfield with hint animating above textfield itself, but I do not want to use label callback. Below is my composable used in column twice, however that gives me different…

yras8
- 459
- 4
- 14
-1
votes
3 answers
How can i make this custom text search field in jetpack compose?
I want this search bar.
Expected : -
I tried the below code but it's not working as expected.
Achieved: -
Row(
horizontalArrangement = Arrangement.SpaceBy,
verticalAlignment = Alignment.CenterVertically,
modifier =…

Amartya Singh
- 23
- 5