GestureDetector德precated问题 [英] GestureDetector Deprecated Issue

查看:124
本文介绍了GestureDetector德precated问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个code

itemizedOverlay = new MyItemizedOverlay(drawable,this);
itemizedOverlay.setGestureDetector(new GestureDetector(new MyGestureDetecor()));

新GestureDetector 标记为的德precated 的Eclipse中。

but new GestureDetector is marked as Deprecated in Eclipse.

我要避免使用去precated方法。

I want to avoid the use of deprecated methods.

我怎么能解决这个问题?

How could I fix this problem?

什么是无德precated形式?

What is the non-deprecated form?

推荐答案

选择其他构造之一。有 5所定义的 GestureDetector 构造。二 - 那些不包括上下文作为第一个参数 - 被标记为pcated德$ P $。您正在使用其中的一个。

Choose one of the other constructors. There are five defined constructors on GestureDetector. Two -- the ones not including a Context as the first parameter -- are marked as deprecated. You are using one of those.

这篇关于GestureDetector德precated问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆