Material Design implementation in Jetpack compose of a TextField
Questions tagged [android-compose-textfield]
242 questions
0
votes
0 answers
Set Ellipsis at the start (left) of the text in jetpack compose
I want to set the ellipsis in the start of the text compose when the text is overflow like this picture below:
However, I did created with the ellipsis property of the compose. The result was not correct:
Here the code I tried:
// current…

Nguyễn Hoàng Ân
- 56
- 2
- 5
0
votes
0 answers
Jetpack Compose TextField text underline stays when disabled
I have a TextField for which I want to programmatically controll whether it's enabled.
When I disable the TextField, I want the focus to be cleared and the keyboard to be hidden.
The following is a minimum example of the behavior I…

Robin
- 333
- 1
- 12
0
votes
0 answers
Make children of LazyVerticalGrid increase their spanSize to accomodate their intrinsic max width
I'm trying to use LazyVerticalGrid to display some Layouts containing text. I'd like these items with an intrinsic max width greater than one column's width to have a span of 2 etc. In this manner text is more likely to be single-line, and will wrap…

Andrew G
- 2,596
- 2
- 19
- 26
0
votes
0 answers
How to decrease height of OutlinedTextField in android using Jetpack Compose
I want to to decease he heigh of Outlined Text Field in jetpack compose.
but when i add height(50) modifier then the text inside the OulinedTextField is cutting.
OutlinedTextField(
value = emailText,
onValueChange = { text ->…

Ajay
- 11
- 1
0
votes
0 answers
Jetpack ComposeView Keyboard is overlapping OutlinedTextField
In Kotlin Jetpack ComposeView: Keyboard is overlapping OutlinedTextField in devices with smaller screens .
Device details:
Name : Nokia 6.1
Android version: 10
Model : TA-1089
password field overlapping gif link here
below is the code kotlin and…

nikita soloman
- 3
- 1
- 6
0
votes
1 answer
Compose TextField SupportingText Cut Off on Long Text Value
I'm making a form screen with Compose, and I've made a text box using an OutlinedTextField with an exact height set. The text box has supporting text that says "Optional", and if I enter too many lines in the box, the supporting text gets cut…

pjp94
- 13
- 3
0
votes
0 answers
How to override/customize Material theme with Jepack / Compose?
Material theme restricts setting height on search bar but we want to reduce it because it looks too fatty per our design system
Material theme restricts increasing height of the topbar (default height is 56dp) and it also does not go well with our…

Vineet Kapoor
- 8,249
- 1
- 11
- 14
0
votes
1 answer
Jetpack compose text field cleared when non-compose state is read
I have a Jetpack compose form, created from this tutorial. It shows errors nicely by validating the form when you click the submit button. I want the button on my form to be dynamically enabled, using the same form state.
The issue is that…

Daniel Wilson
- 18,838
- 12
- 85
- 135
0
votes
1 answer
Change OutlinedTextField border thickness in jetpack compose
I have a custom OutlinedTextField in my Jetpack Compose project, and I'm facing an issue with the default border thickness. The default border appears to be very thin, and I want to change its thickness. However, I couldn't find any direct property…

Saeed Noshadi
- 829
- 12
- 34
0
votes
1 answer
Autofill suggested emails from system/Google account with keyboard for email text field?
I know we can save email and password (Android/Google password manager/ auto fill service) if signing in the app and keyboard can suggest saved accounts
But if a user installs the app for the first time, how can we suggest an email from the…

user924
- 8,146
- 7
- 57
- 139
0
votes
0 answers
How to prevent the keyboard from opening automatically when using Jetpack Compose BaseTextField in version 1.4.3?
I'm currently working with Jetpack Compose version 1.4.3, and I have a BaseTextField component in my UI. However, I noticed that whenever the screen is launched or when the BaseTextField gains focus, the keyboard automatically opens. I want to…

PlusInfosys
- 3,416
- 1
- 19
- 33
0
votes
1 answer
How to measure a Composable before displaying it as InlineTextContent?
I want to use a Composable as InlineTextContent in an AnnotatedString. This requires supplying a width and height to the Placeholder. Is there a way to pre-measure my Composable to know the width and height before it is swapped in and displayed?

coding4mobile
- 31
- 5
0
votes
0 answers
Is there any possible way to not let it take up space in the home page as my logo is pushed with this hidden back icon
Here is the code i used:
Is there any possible way to not let it take up space in the home page as my logo is pushed with this hidden back icon.
I used the Scaffold and TopBar. And also using navigating Host. Any help would be appreciated.
0
votes
1 answer
How to define nested Surfaces in Android Jetpack Compose
The following code produces this screenshot. The code is a slightly modified version of the default app generated by Android Studio Flamingo.
What I expect from this code is for the border to appear around the Text, not around the background. I also…

Bungles
- 1,969
- 2
- 25
- 54
0
votes
0 answers
MarqueeText fade gradient not work correctly
I have 2 texts, one that scrolls automatically with the basicMarquee effect (since it exceeds the width size and executes the effect) and the other, which does not exceed the width and does not execute the effect:
I have the text applied as…

Jéluchu
- 394
- 4
- 13