Questions tagged [textfield]

A text field (or text box) is a user-interface control allowing the user to input text into a program.

A typical text field is a rectangle, often with a border. It can be either single-line or multi-line. In addition to typing, text fields allow for a variety of other activities, such as text selection (cut, copy, paste).

This GIF ("File:Textbox2.gif" on Wikimedia Commons) depicts a text field with text being entered:

A text field with the word 'Wikipedia' being typed in

4965 questions
1
vote
1 answer

Align Textfield label to start of underbar using Jetpack Compose

By default the label of Textfield is not aligned with the start position of underbar. There seems to be some empty space before the label text. This is how my Textfields look like: I want the label of my textfield to be aligned to the start…
1
vote
1 answer

CodenameOne - Getting the text size inside TextViews or TextAreas

My CodenameOne app has a BrowserComponent in the layout (it's a WebView). It has also other components like TextFields. I need that the text in the BrowserComponent has the same size as the text in the TextFields (default value). I set the text size…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
2 answers

how can I add some Text or TextField or something above that ListTile in body?

ListTile is the only thing what can be in body here. idk why. I cant create anythin, even Text, in body now. Here is my code, it seems that I don't know correct structure of a project. That's how app should look…
Twis Ted
  • 11
  • 2
1
vote
1 answer

How to put the icon inside the React Material Ui text field?

I want to put the eye icon inside the text field which I use as a password but I couldn't find a way to place it inside the text field component in Material UI. This is the code;
1
vote
2 answers

Move TextField up when the keyboard has appeared in horizontal ScrollView that is inside vertical ScrollView SwiftUI

There has been a question to something related a while ago: Move TextField up when the keyboard has appeared in SwiftUI It seems like the previous problem has been fixed. However, if we put the VStack in a ScrollView. SwiftUI seems to ignore the the…
NilsBerni
  • 83
  • 2
  • 13
1
vote
0 answers

SwiftUI [iPadOS]: Why TextField embedded in a Sheet generates Layout Constraints conflicts when it becomes first responder?

I have a weird issue when I embed a TextField in a modal (sheet). I wrote a basic sample code to showcase the issue: struct ContentView: View { @State var showSheet = false @State var text = "" var body: some View { Button("Show Text…
MohG
  • 351
  • 4
  • 11
1
vote
1 answer

SwiftUI Clear Textfield FirstResponder

I'm looking to clear my FirstResponder TextField with an independent button that will save the field data and clear the input content so that we can write again. My code is based on the work of : Matteo Pacini ->…
MaxLand
  • 11
  • 2
1
vote
2 answers

TextField in Material Design UI Android

I want to do a editext like below. I dont want to use TableRow to do this. Is there any way to do in Material Design TextField? I set background for TextInputEditText rounded shape. There are some problem with my design. first line I want to have…
1
vote
1 answer

Is there a way to change the starting position of the cursor in a text field? Flutter

I am working with a TextField in Flutter and I need to change the starting position of the text cursor. The reason for this is that currently the cursor is too close to the border outline. image of textfield I tried adding an initial text to the…
1
vote
2 answers

How to change color style of TextField in flutter

I have a simple TextField widget like this TextField( obscureText: widget.placeholder == "Password" ? _isHidePassword : false, decoration: InputDecoration( hintText: "${widget.placeholder}", hintStyle:…
wahyu
  • 1,679
  • 5
  • 35
  • 73
1
vote
2 answers

Perform a API call with value from TextField and display the results in SwiftUI

Looking to perform an API call with the value from a Textfield and display the results in a list. Having trouble to use the $name value from the textfield into the url to then make the API call My code so far WebService.swift import…
zeem
  • 95
  • 10
1
vote
1 answer

Flutter change Textfield selected background color

I have a TextField which looks like this at the moment: As you can see the selected color is purple. But how can I change that color for that specific TextField ? I do not want to change the AppThemeData. I couldn't find anything on this ... Happy…
Chris
  • 1,828
  • 6
  • 40
  • 108
1
vote
2 answers

Border only left top on Flutter TextField

I was wondering if it is possible to have borders only on specific sides on Flutter TextField. In this particular case, I need only top and left, but would like to know in general if this is possible, thank you.
user3808307
  • 2,270
  • 9
  • 45
  • 99
1
vote
0 answers

Text aligment cursor problem in user Input field (WIX sites)

I'm creating my own site on the Wix platform, and I met one problem. When I'm setting up text alignment to the right side, after starting typing, the cursor moves to the left side of the text, but I want to make it usual and keep it on the right…
Faser
  • 23
  • 2
1
vote
0 answers

Why TextField changes font size first time its style is changed during runtime?

Check handle method bellow: I print out font size and style of TextField, then i set its style to a new style which defines font size as size of its font, then i print out its font size and style again: public class Control extends Application { …
Wortig
  • 963
  • 2
  • 11
  • 37
1 2 3
99
100