简体   繁体   English

设置键盘协调:如何设置键盘x,y co ordination

[英]set Keyboard coordination: How to set the keyboard x,y co ordination

I have list of products which have EditText in TableLayout . 我有TableLayout中包含EditText的产品列表。

I want Keyboard in right/left of EditText and it needs to be containing 0-9 ,.(dot) ,Delete,and Done.Don't need other keys. 我想在EditText右/左边键盘,它需要包含0-9,。(点),删除和完成。不需要其他键。

Each time when the user click EditText , it will show key pad to right of EditText (trigger/onClickListner). 每次用户单击EditText ,它都会在EditText右侧显示键盘(trigger / onClickListner)。

Currently I did Like this: 目前我这样做:

在此输入图像描述

How we can implement. 我们如何实施。

And normal list is : 正常的清单是:

在此输入图像描述

I want keypad right of /left of text-box.Keyboard may be user define/predefine.How we can implement these. 我想要文本框右侧/右侧的键盘。键盘可以是用户定义/预定义。如何实现这些。 I have created one keyboard.Its always display the bottom of the screen. 我创建了一个键盘。它总是显示屏幕的底部。 I need right of textbox or left. 我需要文本框或向左。

How can i set the keyboard coordination . How can i set the keyboard coordination Please tell me... 请告诉我...

I don't have any idea on how to do this. 我对如何做到这一点一无所知。 I want to implement this. 我想实现这个。

My created keyboard width & high is too small than default. 我创建的键盘宽度和高度都比默认值小。 Please advice me / guide me on this. 请指教我/指导我。

How can i set the keyboard coordination.

If you are using your custom Keyboard you Can't locate it at your desired position . 如果您使用自定义键盘,则Can't locate it at your desired position By Default it will appears at the Bottom only. 默认情况下,它仅显示在底部

So you can try with Custom Pop up window , Another Post for your requirement. 因此,您可以尝试使用Custom Pop up窗口Another Post满足您的要求。

You can try with Quick Action Dialog for you requirement 您可以根据需要尝试使用“ 快速操作”对话框

Also check this Touch Calculator Source for you reference. 另请查看此触控计算器来源以供参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM