android.gesture.GestureOverlayView 手势立即消失
这是我的signature.xml源代码
<android.gesture.GestureOverlayView
android:id="@+id/signature" android:layout_width="fill_parent"
android:layout_height="120dip"
android:gestureStrokeWidth="2" android:gestureColor="#000000"
android:background="#ffffff" android:gestureStrokeType="multiple"
android:fadeOffset="10000" android:eventsInterceptionEnabled="true">
</android.gesture.GestureOverlayView>
相关的java代码:
public class Signature extends LinearLayout {
public Signature(final Context context){
super(context);
inflate(context, R.layout.signature, this);
GestureOverlayView overlayView= (GestureOverlayView) findViewById(R.id.signature);
问题是手势笔划立即消失。这是好的代码吗?我可以在 LinearLayout 中使用手势吗?
This is my source code of signature.xml
<android.gesture.GestureOverlayView
android:id="@+id/signature" android:layout_width="fill_parent"
android:layout_height="120dip"
android:gestureStrokeWidth="2" android:gestureColor="#000000"
android:background="#ffffff" android:gestureStrokeType="multiple"
android:fadeOffset="10000" android:eventsInterceptionEnabled="true">
</android.gesture.GestureOverlayView>
Related java code :
public class Signature extends LinearLayout {
public Signature(final Context context){
super(context);
inflate(context, R.layout.signature, this);
GestureOverlayView overlayView= (GestureOverlayView) findViewById(R.id.signature);
The issue is that the gesture stroke disappears instantly. Is this good code? Can I use Gesture in LinearLayout?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论