numeric-keypad

Is there a way to show a number pad (preferably with a bubble) in a TextInput field using Kivy and Python? NEW ISSUE WITH CODE

我的梦境 提交于 2021-01-27 16:18:24
问题 I have an app where you input numbers (a lot) and it gets hard that the keyboard is also letters, I would like it to be just numbers (0-9), and a dot. Is there any way to do this using Kivy's .kv file and Python? I have tried input_type: 'number' in the .kv file, but I couldn't get it to work. Thanks! Edit: I have also tried using bubbles, no luck. Although, it would be nice to have a bubble number pad if possible. Edit 2: I have put another bounty on this question because when I put the

Is there a way to show a number pad (preferably with a bubble) in a TextInput field using Kivy and Python? NEW ISSUE WITH CODE

陌路散爱 提交于 2021-01-27 16:16:18
问题 I have an app where you input numbers (a lot) and it gets hard that the keyboard is also letters, I would like it to be just numbers (0-9), and a dot. Is there any way to do this using Kivy's .kv file and Python? I have tried input_type: 'number' in the .kv file, but I couldn't get it to work. Thanks! Edit: I have also tried using bubbles, no luck. Although, it would be nice to have a bubble number pad if possible. Edit 2: I have put another bounty on this question because when I put the

Best settings for HTML <input type=“number”>, for mobile devices

落花浮王杯 提交于 2019-12-23 07:57:19
问题 I've been reading many other questions, like these[1][2][3] for example, but the problem still persists. I need to find the "cleanest" way to have a HTML input for mobile devices and which respects all these three rules: suitable mainly for numbers , integer or float shows the numeric keypad on mobile devices , on Chrome for Android and Safari for iOS, with no strange extra keys fully respects the HTML5 rules (tested by W3 validator) What have I tried? I've been across these solutions, which

Android Display Numeric Keypad on Button Click

为君一笑 提交于 2019-12-21 05:16:09
问题 In my application, I am trying to display the numeric keypad when the user clicks on a button. When the button is clicked, I shift the focus to the EditText in my layout using requestFocus() and next I need to display the numeric keypad so that the user can type in the values.. The values will always be numeric and hence I need to show only the numeric keypad. I tired using this inside my button's onClick() method but it does not work. InputMethodManager imm = (InputMethodManager

Does android have a numeric keypad?

霸气de小男生 提交于 2019-12-17 18:52:21
问题 Is there a way in android to invoke a numeric only keypad, i.e. a virtual keypad that contains only the numbers 0 to 9 and a "." sign? 回答1: Try doing android:inputType="phone" ? 回答2: Basically, you need what Peter Boughton said. More generally, if you need to invoke different type of keyboard, depending on the input you expect on your EditText component, you should use the IMF (Input Media Framework) and different IMEs (Input Media Editors). You can customize not only the input symbols, but

Struggling to Launch Numeric keypad on activity start

假如想象 提交于 2019-12-11 04:23:04
问题 I have few TextView's in my activity, when activity starts i want to show soft numeric keypad or that activity should always show keypad. I have tried: To set android:windowSoftInputMode="stateAlwaysVisible" in manifest for activity but didn't worked. Added this code in activity onCreate, it shows the alphanumeric keypad but not numeric. InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); Need

Create an HTML Numeric Keypad without <table> layout

非 Y 不嫁゛ 提交于 2019-12-09 23:43:26
问题 I am trying to create an HTML 'numeric keypad', like those found on some keyboards. I am stumped on how to do the layout without using a table. I am using Bootstrap (v3.1.1) so my first instinct was to attempt to use its col- classes to reproduce the 4 columns of keys found on a keypad. This was awkward though and I couldn't easily get the sizing of the buttons to be consistent between the different levels of nested div containers. I failed fast. I knew I could use a <table> based layout to

how can I dismiss keyboard when I will just touch anywhere except UITextField?

断了今生、忘了曾经 提交于 2019-12-09 14:40:24
问题 Hello I have two UITextFields in my application, and want to dismiss the keyboard when I just touch anywhere except the UITextFields how can I do this? 回答1: use tochesBegin method for this purpose - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [yourFirstTextField resignFirstResponder]; [yourSecondTextField resignFirstResponder]; } You do not need any thing else.When you touch anywhere on view then both textField resign no need to to know which one having focus.and when you

Create an HTML Numeric Keypad without <table> layout

倾然丶 夕夏残阳落幕 提交于 2019-12-04 18:59:35
I am trying to create an HTML 'numeric keypad', like those found on some keyboards. I am stumped on how to do the layout without using a table. I am using Bootstrap (v3.1.1) so my first instinct was to attempt to use its col- classes to reproduce the 4 columns of keys found on a keypad. This was awkward though and I couldn't easily get the sizing of the buttons to be consistent between the different levels of nested div containers. I failed fast. I knew I could use a <table> based layout to accomplish this easily with colspan s and rowspan s. But it didn't feel right using a table layout for

How to open number dialer pad programmatically in android?

岁酱吖の 提交于 2019-12-04 16:17:37
问题 I want to display Number Dial Keypad (Phone Call) Programmatically on button click in android. Code is available for direct number dialing but I only need to show the dial keypad when I click the Button. 回答1: Intent intent = new Intent(Intent.ACTION_DIAL); startActivity(intent); 回答2: Intent intent = new Intent(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel:9999999999")); startActivity(intent); For this we don't need to add any permission in AndroidManifest.xml 回答3: Intent intent = new