手势中的多笔画不起作用
我尝试以手势实现多笔画,但它不起作用。
我的问题是,我想使用手势绘制多笔画,但是当我完成一笔画并尝试绘制另一笔画时,前一笔画消失了。我设置了以下设置,但它们不起作用。
android:gestureStrokeType="multiple"
android:eventsInterceptionEnabled="true"
android:fadeEnabled="false"
这是我的 XML 文件
<android.gesture.GestureOverlayView
android:layout_margin="5dp"
android:id="@+id/SeeAndDrawGesture"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gestureStrokeType="multiple"
android:uncertainGestureColor="#FF4040" >
</android.gesture.GestureOverlayView>
I have tried to implement Multiple Strokes in gesture but it does not work.
My question is, I want to draw multiple stroke using gesture but when I finish drawing one stroke and try to draw another the previous one disappears. I set the following settings but they don't work.
android:gestureStrokeType="multiple"
android:eventsInterceptionEnabled="true"
android:fadeEnabled="false"
This is my XML file
<android.gesture.GestureOverlayView
android:layout_margin="5dp"
android:id="@+id/SeeAndDrawGesture"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gestureStrokeType="multiple"
android:uncertainGestureColor="#FF4040" >
</android.gesture.GestureOverlayView>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用:
对我有用
try using:
works for me