Skip to main content

All Questions

0 votes
0 answers
17 views

Compose TextField lose focus when newline on Samsung Note 10 Lite

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

How do I fix the Text error in Android Studio without creating a function for this?

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
1 vote
0 answers
34 views

android compose soft keyboard

I am trying to create a fully custom TextField in Android using Jetpack compose everything is ok with the hardware keyboard but the soft keyboard is not opening this is how I start: (with simple code) ...
Atras VidA's user avatar
0 votes
1 answer
29 views

Text composable not updating only in RELEASE build

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
0 votes
0 answers
26 views

How to Dynamically Resize the Item Width or the Font Size in the Item in a LazyColumn in Jetpack Compose

I am using a LazyColumn to display the name of a person in a vertical style so that it could be seen amongst the crowd easily. But I want the font size of the characters in the list to dynamically ...
Mohammed Mustafa Ali's user avatar
3 votes
3 answers
117 views

Optional to pass leadingIcon, trailingIcon parameters to own OutlinedTextField

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
3 votes
1 answer
58 views

wrong keyboard is shown for compose TextField when app comes from background

I am migrating my application from Android to Jetpack Compose and for now i am using ComposeView inside fragments. Inside Login Fragment there is a OutlinedTextField which must accept Phone number ...
Hossein Panahi Irdemousa's user avatar
0 votes
1 answer
159 views

I get this error for a Text Composable: "None of the following functions can be called with the arguments supplied"

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
  • 109
0 votes
0 answers
49 views

Adding modifier to the text inside of TextField in Jetpack Compose

I want to add modifier to the text inside of textfield. TextField( modifier = Modifier .background(Color.White) .fillMaxWidth() .testTag(ADD_EDIT_TITLE_TAG) ....
Zaur Hasanov's user avatar
1 vote
0 answers
121 views

BasicTextField2: Placeholder with Floating Label Behavior jetpack compose

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
  • 6,089
0 votes
1 answer
33 views

How to wrap word with previous word if only last word does not fit

I have a text of different sizes it might fit 1-3 lines usually. I am building the text with annotated string and the last two words is always "search everywhere". However, I got a problem I ...
Oathkeeper's user avatar
0 votes
1 answer
131 views

Why does my text change color in Jetpack Compose Android App?

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
  • 11
0 votes
1 answer
32 views

Change background color of clicked sentence in Text

I want to implement a feature where when I click on a specific sentence within this paragraph, the background color of that sentence changes. I've tried looking into gesture detection and text ...
Kursat's user avatar
  • 21
1 vote
0 answers
52 views

Scrollbar within a TextField Composable

I am trying to add a scrollbar within a TextField() Composable that scrolls according to the text, something like this. I am unaware of any existing in-built APIs to achieve this in a TextField() ...
Saneen K P's user avatar
0 votes
0 answers
21 views

Custom text display with jetpack compose [duplicate]

Help me, how can i display text using jetpack compose like on the image.enter image description here The upper one should start above the last letter of the lower one I tried to use Box and 2 Text ...
asdasd's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
26