2011-12-30 71 views
0

我试图在手势中实施多笔画,但它不起作用。手势中的多笔画不起作用

我的问题是,我想用手势绘制多笔画,但是当我画完一笔画并尝试绘制另一笔画时,前一笔画消失。我设置了以下设置,但它们不起作用。

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> 
+0

机器人:gestureStrokeType = “多” 应该让你绘制多个笔划。 – Vinoth 2011-12-30 06:26:22

+1

但它不工作@Vinoth – RizN81 2011-12-30 08:05:32

回答

2

尝试使用:

android:fadeOffset="in miliseconds" 

作品对我来说