textfield

html textfield in WebView in an Android application is hidden by the soft keyboard

牧云@^-^@ 提交于 2019-11-30 15:18:18
问题 I have an Android application that is a TabHost with a WebView. I use it to load a specific html file that has a text field in its bottom part. When I touch the html textfield, the soft keyboard pops up, and hides the textfield, so that I cannot see what I have typed. Here is the layout: <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill

AS3 TextField autoscroll to the bottom

可紊 提交于 2019-11-30 14:48:28
How to autoscroll to the bottom of the TextField in ActionScript while adding text there programmatically: var _output:TextField = new TextField(); for (var i:int = 0; i < 100; ++i) { _output.appendText("Hello World!"); } Also consider that the vertical scrolling of the TextField should be enabled, and once a new text was added then autoscroll to the bottom should be executed again. You should listen for Event.CHANGE event on the TextField in question. Event description relative to textField And if you capture this event, you play with scrollV property. Say, like this: _output.addEventListener

How do you change the background color of a TextField without changing the border in javafx?

99封情书 提交于 2019-11-30 14:00:26
问题 I am trying to change the background color of my TextField "colorBox0" to "value0" but it gets rid of the border. Here is a simplified version of my code: static Paint value0 = Paint.valueOf("FFFFFF"); TextField colorBox0; colorBox0.setBackground(new Background(new BackgroundFill(value0, CornerRadii.EMPTY, Insets.EMPTY))); Any help is very much appreciated Thank you 回答1: I found that you can construct a string of css code out of a string and a variable by using the to string method and the

html textfield in WebView in an Android application is hidden by the soft keyboard

落爺英雄遲暮 提交于 2019-11-30 13:57:52
I have an Android application that is a TabHost with a WebView. I use it to load a specific html file that has a text field in its bottom part. When I touch the html textfield, the soft keyboard pops up, and hides the textfield, so that I cannot see what I have typed. Here is the layout: <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/main"

Textfield CSS styling using JavaFx

删除回忆录丶 提交于 2019-11-30 10:30:58
I'm trying to style some textfields using JavaFX, but I'm not getting desired results. My goal is to have the textfield be represented by a singular underline. Here's my CSS: .text-field{ -fx-font-family: "Quicksand"; -fx-font-size: 18; -fx-padding: 1,1,1,1; -fx-border-color: grey; -fx-border-width: 2; -fx-border-radius: 1; -fx-border: gone; -fx-background-color: transparent; -fx-text-fill: grey; } I have researched this question, but the answers I find to similar ones don't really contain enough information to reproduce and apply properly to my program. It doesn't help that I'm not very

Hello , I want to create a javafx TextField where the user can only input in the current order A11111111A [closed]

被刻印的时光 ゝ 提交于 2019-11-30 10:10:20
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year . So the first and last input should be letters, and between them should be only numbers. Here is my code : tf.textProperty().addListener(new ChangeListener<String>() { public void changed(final ObservableValue<? extends String> ov, final String oldValue, final String newValue) { String text_of_first

Delayed text color change in Swing text field

你。 提交于 2019-11-30 09:34:22
问题 Is it possible to change the color of a text in a text field?I am trying to build an interpreter, so I was wondering on how would you change the color of the text in real time. For example the word I enter in the text field is: printf("hi"); The word printf becomes green after a few seconds. Is it possible? 回答1: package test; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JOptionPane; import javax.swing.JTextField; import

How to get all the textfields from a view in swift

不问归期 提交于 2019-11-30 08:19:35
问题 I have a view which has more than 15 UITextFields . I have to set bottomBorder(extension) for all the UITextFields . I can set it one by one for all the UITextFields and its working too. I want to set the bottom border for all the UITextFields at once. Here is the code I am trying but it seems like that for loop is not executing. I have even tried it in viewDidLayoutSubViews but for loop not executing there too. override func viewDidLoad() { super.viewDidLoad() /** setting bottom border of

Horizontal Scrolling and TextField Error

[亡魂溺海] 提交于 2019-11-30 07:19:56
I have created a CustomTextField which scrolls itself towards left when i type text which are extra than the width of the TextField for which a HorizonalFieldManager is used But now the problem is if i Right click with my mouse and scroll it it goes on to inadequate length but does not stop to the last word i type What is the problem here ?? Is it a bug I just need that to disable HorizontalScrolling when it reaches the last word It should be able to scroll just between the start and end of last word in word Check out the code import net.rim.device.api.ui.Color; import net.rim.device.api.ui

Best way to restrict a text field to numbers only?

瘦欲@ 提交于 2019-11-30 05:55:49
问题 I'm using the following Javascript to restrict a text field on my website to only accept numerical input, and no other letters or characters. The problem is, it REALLY rejects all other key inputs, like ctrl - A to select the text, or even any other browser functions like ctrl - T or ctrl - W while the text box is selected. Does anyone know of a better script to only allow numerical input, but not block normal commands (that aren't being directly input into the field)? Thanks Here is the code