Closed pirakleous closed 4 years ago
Consider using less hierarchies of layout and set a smaller reveal size
I tried it but nothing happens
I prefer you show the codes
hello you are right the problem was at reveal size. its now working with size of 15dp is there any whay this works with bigger size without the delay time?
I guess the problem is the canvas is drawing in loop in this library. So either modify the source code or use small reveal size.
hi,winsontan520: I have the same issue,when i use match_parent this is my layout:
<FrameLayout
android:id="@+id/frame_scratch"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">
<!--result image view-->
<com.welltang.common.widget.ImageLoaderView
android:id="@+id/image_result"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:visibility="gone" />
<com.welltang.common.widget.scratch.WScratchView
android:id="@+id/coverScratchView"
android:layout_height="match_parent"
android:layout_width="match_parent"/>
</FrameLayout>
Hello i have added a layout below the view and when i am trying to scratch is to slow. ( i do the moves and after some time i see the image start scratching).
This is my layout below the scratchview