简体   繁体   English

Android:软键盘高效按键效果如何?

[英]Android: soft keyboard efficient key press effect?

on softkeyboard, which one is better to give user a visual feedback during keypress: 在软键盘上,最好在按键时为用户提供视觉反馈:

1.redraw portion of button that was pressed to background canvas of main View to give pressed effect 2.each button has its own "pressed" View , and that View is set to visible (flashing) during keypress event (so no redraw needed but need more memory) 1.重画按钮的一部分,该按钮被按下到主View背景画布上以产生被按下的效果。2。每个按钮都有自己的“被按下” View ,并且在按键事件期间该View设置为可见(闪烁)(因此不需要重画,但是需要更多的内存)

I know its trade-off between speed and memory usage, but I just want to know what you will do under this situation. 我知道它在速度和内存使用之间的权衡,但是我只想知道在这种情况下您将要做什么。

You wont be able to see the key because your finger will be covering it! 您将看不到按键,因为您的手指会遮住它! The character being added to the focused text field might be enough. 添加到焦点文本字段中的字符可能就足够了。

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

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