Android:软键盘高效按键效果如何?
在软键盘上,哪一个更适合在按键过程中为用户提供视觉反馈:
1.重绘按钮的被按下到主View
背景画布的部分以提供按下效果 2.每个按钮都有自己的“按下”View
,并且该View
在按键事件期间设置为可见(闪烁)(因此不需要重绘,但需要更多内存)
我知道它在速度和内存使用之间的权衡,但我只想知道在这种情况下你会做什么。
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)
I know its trade-off between speed and memory usage, but I just want to know what you will do under this situation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将看不到钥匙,因为您的手指会遮住它!添加到焦点文本字段的字符可能就足够了。
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.