如何坚持的GestureOverLayView的手势? [英] How to persist the gestures of the GestureOverLayView?

查看:227
本文介绍了如何坚持的GestureOverLayView的手势?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我写一个字ABC在我的GestureOverlayView,虽然这样做我需要保存在屏幕上所有的字母,直到我preSS一个清除 button.Can谁能告诉我一个好办法做到这一点..
我会写一,这是作为一个手势(而不是中风),即有一件事我虽则就像使用的ImageView 或在GestureOverLayView底部的 SurfaceView 。并假设当我画的AGestureOverLayView然后在onGesturePerformed事件将采取的手势,然后拿到行程,然后将其转换为路径,然后绘制的路径到下面的ImageView或SurfaceView.Can有人建议我的code或引导我,我想他们的各种组合,但未能解决这个问题。

Suppose I am writing a word "abc" in my GestureOverlayView and while doing so I need to save all those alphabets in the screen until I press a clear button.Can anyone tell me a good way to do this.. I will write "a" which is taken as a gesture (not as stroke) i.e One thing I though of was like use a ImageView or SurfaceView on bottom of a GestureOverLayView.and Suppose when I draw "a" on GestureOverLayView then in the "onGesturePerformed" event it will take the Gesture and then get the strokes and then convert them into paths and then draw the paths onto the underlying ImageView or SurfaceView.Can anyone suggest me the code or guide me.I tried various combinations of them but couldn't solve it..

推荐答案

有一个在SDK的samples目录中称为GestureBuilder的应用程序。这个应用程序显示了如何坚持用户绘制手势。

There's an app called GestureBuilder in the samples directory of the SDK. This app shows how to persist gestures drawn by the user.

这篇关于如何坚持的GestureOverLayView的手势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆