android:如何找出设备的非触摸敏感填充
对于绘图应用程序,我必须确保画布不大于屏幕的可触摸区域,否则我会在画布上有填充,用户无法在其中绘图。
我猜我的 Galaxy S 上的像素约为 10 像素。 有没有办法找出非触摸敏感像素的确切数量?
For a drawing app, I have to make sure that the canvas is not bigger then the touchable area of the screen, cause otherwise I would have a padding on the canvas, where it is not possible for the user to draw on.
On my Galaxy S that's about 10 pixel I guess.
Is there a way to find out the exact number of pixels which are not touch-sensitive?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抱歉,但这没有意义。我认为也许组件还不够好,但是android中的屏幕必须具有触摸所有窗口位置的能力。
如果你有理由而制片人犯了那个可怕的错误,程序认为你没有整个可触摸区域,那么你会给做得很好的制片人带来坏事。
无论如何,如果您考虑用户的可用性,请不要使用像素,而应使用dip。
Sorry but that has no sense . I think that maybe components are not good enough , but the screen in android must have the capability to touch all window places .
If you have the reason and the producer make that horrible mistake , program thinking that you don't have the whole touchable area , you would make a bad thing for producers that do it well.
Anyway if you are thinking in usability for users , don't work with pixels , work with dip .