Skip to main content
0 votes
0 answers
27 views

I am creating an auto-complete TextField using ExposedDropdownMenuBox in Jetpack Compose. I am using a custom component, SpotifyTextField that has a fixed height of 48.dp. My goal is to make each ...
Fatima Jamal's user avatar
3 votes
1 answer
117 views

I want to use state based TextField. I've learned that to use a state-based TextField, I must change the bom version to alpha. How can I change the bom version to alpha in libs.versions.toml? [...
Jorpy's user avatar
  • 529
1 vote
1 answer
292 views

Here is my code: Components.kt package com.example.jettipapp.components import androidx.compose.foundation.text.KeyboardActions import androidx.compose.foundation.text.KeyboardOptions import androidx....
Aadvik's user avatar
  • 1,522
0 votes
1 answer
96 views

I want to use SearchBar from Compose, but I need to set another height. However, the problem is that if I do this, then the EditText inside & all the content would remain fixed at the top. I need ...
radus14's user avatar
  • 180
1 vote
1 answer
385 views

With the code provided in Kotlin documentation, I'm getting the following error when implementing a TextField: val state = rememberTextFieldState("Initial text", TextRange(0, 12)) TextField(...
mfusco's user avatar
  • 51
1 vote
1 answer
113 views

How can I set a character limit in a BasicTextField (or BasicTextField2) in Jetpack Compose? With the new BasicTextField function, which uses a state: TextFieldState as a parameter, it is no longer ...
Rulogarcillan's user avatar
0 votes
1 answer
131 views

I want to disable capitalization on my OutlinedTextField that i want to be of an email type. Obviously this email type should have capitalization disabled. So here is what I tried and with no effect (...
Jawegiel's user avatar
  • 131
0 votes
1 answer
113 views

I have an OutlinedTextField with label text. When the field is empty, I want the label hint aligned to the end of the field, like this: . However, the only way I've found to do this is by expanding ...
theasianpianist's user avatar
0 votes
0 answers
36 views

I am using Jetpack Compose and a simple text field Here is my code @Composable fun SimpleFilledTextFieldSample() { var text by remember { mutableStateOf("") } val focusRequester = ...
Anudeep Ananth's user avatar
0 votes
1 answer
156 views

When I create a TextField using a TextFieldValue as it's value, as soon as I type a character it runs in an infinite loop, logging both my debug message before the condition check and 'show(ime(), ...
Oscar Nowell's user avatar
0 votes
1 answer
73 views

I want to set focus to an OutlinedTextField, programmatically, and I want the software keyboard to appear. But what I get is that when I set the focus to the OutlinedTextField, the software keyboard ...
18446744073709551615's user avatar
1 vote
1 answer
139 views

I'm using Compose's BasicTextField, and when I drag the cursor, the text doesn't scroll. var text by remember { mutableStateOf("123456789123456") } Box(contentAlignment = Alignment.Center) {...
seven years's user avatar
0 votes
0 answers
36 views

This is my code. When I place the cursor with my finger, it will randomly move to another location than where I placed it. var textFieldValueState by remember { mutableStateOf( ...
km11's user avatar
  • 568
0 votes
1 answer
800 views

Trying to understand how to limit font scaling, from this example here: Text( text = "This is resizing text with font scale ${LocalDensity.current.fontScale}", fontSize = 20.sp ) On ...
Ralf Wickum's user avatar
  • 3,178
2 votes
1 answer
159 views

I'm using InputTransformation in Jetpack Compose to filter user input in a BasicTextField. The transformation works correctly, but the cursor remains in the same position after entering text instead ...
Vivek Modi's user avatar
  • 7,859

15 30 50 per page
1
2 3 4 5
29