Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
113 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
  • 489
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
110 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
111 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
1 answer
148 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
1 vote
1 answer
134 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
1 answer
782 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
0 votes
1 answer
136 views

I'm building a screen in Jetpack Compose where I want a BasicTextField to be "active" as soon as the screen loads. By "active," I mean that the label should animate upward (just ...
Vivek Modi's user avatar
  • 7,859
1 vote
1 answer
407 views

I'm encountering an issue with the label in BasicTextField in Jetpack Compose. When the text field gains focus (either by clicking or tapping), the label's height behaves strangely and does not ...
Vivek Modi's user avatar
  • 7,859
2 votes
1 answer
792 views

I want to apply a visual transformation to a BasicTextField in Jetpack Compose. I've tried some code, but I'm facing several issues. For example, the cursor doesn't stay in the correct position, and ...
Vivek Modi's user avatar
  • 7,859
0 votes
1 answer
381 views

Having this simple example: @Composable fun SimpleFilledTextFieldSample() { var text by remember { mutableStateOf("Hello") } TextField( value = text, onValueChange = ...
Special Muesli's user avatar
0 votes
1 answer
188 views

In my Jetpack Compose app, it seems that any time I open a popup such as DropdownMenu while I'm typing something, the keyboard will disappear. Perhaps this happens because the TextField loses focus? I ...
realDonaldDuck's user avatar
0 votes
0 answers
161 views

I'm working on a Jetpack Compose project where I need a full-screen TextField. However, I'm running into an issue where the cursor hides behind the keyboard when the user types long text. I've already ...
Tawhid Monowar's user avatar
0 votes
2 answers
347 views

I have a textfield and trying to achieve something like When I set a value to textfield programmatically. Its a username field on login form. If it is saved previously by user then we mask first 4 ...
dchks11's user avatar
  • 695
1 vote
1 answer
279 views

I'm working on three pages: StartPage, LoginPage, and SignupPage, and I'm integrating them into a HorizontalPager. In the SignupPage, i'm using requestFocus on textField. The navigation flow is Start -...
Fatima Jamal's user avatar
2 votes
1 answer
114 views

Ex: 23456-232 while typing above card number. we want to auto populate immediately - after 5th digit typed, then, user can enter last 3 digits. how to achieve this in Jetpack compose in android.
harikrishnan's user avatar
  • 1,945
2 votes
1 answer
621 views

I am facing some unexpected TextStyle behaviour while applying different styles in Jetpack Compose. This is my code: @Composable fun TextDecorationExample() { var isUnderlined by remember { ...
J K's user avatar
  • 23
1 vote
1 answer
264 views

It needs to make a row in the column, the row should have two text items, the second should right align the first text item. And when the first text has longer text content, it should grow up to a max ...
lannyf's user avatar
  • 11.1k
1 vote
0 answers
41 views

Surface { Box(contentAlignment = Alignment.Center, modifier = Modifier .fillMaxSize() .padding(32.dp)) { var state by remember { mutableStateOf(TextFieldValue("")) } ...
Jeff Liu's user avatar
  • 141
-1 votes
1 answer
129 views

When ever I use the Text() function, it shows this error: None of the following functions can be called with the arguments supplied. Text(AnnotatedString, Modifier = ..., Color = ..., TextUnit = ..., ...
Shahid Faried's user avatar
0 votes
1 answer
78 views

I've a composable that contains a text composable which displays the a duration string provided in the params of the composable function. The problem is that the duration string is getting updated ...
Pravesh Singh's user avatar
3 votes
3 answers
315 views

I'm trying to create default parameters via leadingIcon: @Composable () -> Unit= {} or trailingIcon: @Composable (() -> Unit)? = null, but ran into a problem. An empty form is created on the ...
Denis Skurtu's user avatar
0 votes
1 answer
1k views

I get this compile error: None of the following functions can be called with the arguments supplied This is my code: import androidx.compose.foundation.layout.padding import androidx.compose....
Tony's user avatar
  • 111
1 vote
0 answers
538 views

I'm trying to achieve a floating label effect with BasicTextField2 in Jetpack Compose. My goal is to have a placeholder that: Is initially displayed inside the text field when empty. Transitions to a ...
Vivek Modi's user avatar
  • 7,859
0 votes
1 answer
254 views

I'm developing an app with Jetpack Compose, in the Theme.kt i have imported and overriden the primaryColor as it shows private val LightColorScheme = lightColorScheme( primary = Primary ) Below ...
Andre's user avatar
  • 31

1
2 3 4 5
9