2011-12-30 67 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" 

作品對我來說