Questions tagged [android-compose-textfield]

Material Design implementation in Jetpack compose of a TextField

242 questions
1
vote
2 answers

UI doesn't show character in OutlinedTextField onValueChange (Wordle game)

I'm new to Android and I was making my hands dirty with Jetpack Compose. My first assignment is to develop a Wordle-like game where a user has to find out a hidden work in N number of guesses. I'm using OutlinedTextField to represent the grid that…
1
vote
1 answer

Editable Dynamic ExposedDropDownMenuBox in Jetpack Compose

I'm trying to get this drop down menu to be dynamic. When I type into the textfield, I expect the list to be updated (filtered for what the user types in) and the user can select from the filtered drop down list. I've checked here, the sample code…
1
vote
1 answer

Background is higher then textfield

Background is higher than textfield. How Can I fix that? Code: I played with padding. but it is not about it. i added column outside "OutlinedTextField" but it didnt worked. I want to make textfield same size with background.
1
vote
1 answer

Jetpack Compose (Android) Permanently Showing OutlinedTextField Label in Material 3

Is it possible using the Jetpack Compose Material 3 OutlinedTextField to have the Label show all the time. I.e., The Label is normally shown inside the OutlinedTextField greyed out, you click on it and it appears above the field and now shows the…
1
vote
1 answer

VisualTransformation for the American Phone number in compose

I'd want to add phone number formatting as the user types in the field. So far, it's functioning, but the cursor is in the wrong location when the field is empty. When we have the initial value, it moves the cursor to the right location. Note: I…
1
vote
0 answers

IInputConnectionWrapper: beginBatchEdit on inactive InputConnection Jetpack Compose

Please help. I am getting the below warnings when typing text values in Jetpack Compose TextField. The UI freezes and text is not updated after entering one letter.The logcat also gets flooded with repeated messages over and over(if I log inside…
1
vote
1 answer

Text disappearing when adjusting height of TopAppBar on Android Jetpack Compose

I am trying to adjust the height of the TopAppBar in an Android app, using Jetpack Compose. When I update the Modifier of the TopAppBar to adjust to height = 150.dp, I see that the bar has a larger height but the text and navigation icon button…
1
vote
1 answer

Label not moving up when focused in BasicTextField

Label not moving up when I focus on the BasicTextField but it's only moving up when I start typing. Here is the BasicTextField I'm using I'm using the same properties of the TextField. Wondering why TextField works like this and BasicTextField which…
1
vote
0 answers

How to create a Mentionable TextField in Jetpack Compose?

I am a newbie in Android Jetpack Compose and today I have a task that requires to create a TextField with mention. Please see my description. What I need to do: When I type "@" with the keyboard/press a button, a list of members is displayed. When…
1
vote
1 answer

How do I create a placeHolder in the BasicTextField?

I have a certain TextField where I needed to specify my padings. When there is no text in it, I want to output something like "It's empty here". Unfortunately, BasicTextField does not allow me to add placeHolder as a modifier. Perhaps you know how…
1
vote
0 answers

Keyboard hiding behind compose popup android

I have created a popup in jet pack compose android which is attached with screen bottom and taking inputs. Using popup() jetpack component. But as soon as I focus on text field keyboard is opening but it’s behind the popup. I am not sure why…
1
vote
1 answer

How to use the ConstraintLayout's layout_constraintWidth_percent in Jetpack Compose?

My layout consists of 2 texts with an arrow image between them. All elements are placed in a composable Row and aligned to the left, right behind eachother. When the texts are short it looks like this: |Origin → destination | When the texts…
P Kuijpers
  • 1,593
  • 15
  • 27
1
vote
1 answer

How to set LineHeight using AnnotatedString in Jetpack Compose

I'm working right now with AnnotedStrings to create this Text with two different text styles: I'm setup this text using a SpanStyle. How do I setup the line height this way? In the SpanStyle is missing this attribute.
1
vote
1 answer

Equivalent of "expandedHintEnabled" in Jetpack Compose TextField

Is there any way to put OutlinedTextField's label on top (expanded) and still have the placeholder, when OutlinedTextField is not in focus? In xml layouts we have TextInputLayout that has expandedHintEnabled attribute that does the expanding.
1
vote
1 answer

Is it possible to make overline text (ā) in Jetpack Compose?

I want to make text Overline, but in TextDecoration have only Underline and LineThrough styles. I tried use TextDecoration