English 中文(简体)
是否在安乐文安装了处理pin-zo功能的APIC。
原标题:Is there a built in API for handling pinch-zoom functionality in Android

我只想知道,是否有某种类别使用甲状腺素2.1多种特性。 具体地说,我正试图执行pin子,并想知道,我是否总是必须衡量两个触动事件之间的距离,并自行计算动物群的水平?

Thanks, chris

问题回答

我试图做同样的事情,而且与往常一样,我的第一个本能就是研究安乐施会本身。 有趣的比照似乎出现在以下几类:ScaleGestureDetector,后者不是公开的,而是其 jadoc说

@hide 有待核准

希望它能在某个时候公开。

。 目前已是Adrend的一部分。

我认为,你需要计算动物群。 本条认为,获得你启动的良好资源是:

这取决于你想要达到的目标。

为了避免在2台前装置上使用多光谱仪,你需要为电算器(电压仪可以通过电压器进行)和1台电解器安装一个接口。 我们呼请我们的界面<代码>ScaleGestureDetector Interface和我们的“mmy implementationFakeScaleGestureDetector<>。

此处是支持2.0前装置的样本:

// If you don t care about pre-2.0 devices, just make this a
// ScaleGestureDetector and skip the API check in the constructor.
private final ScaleGestureDetectorInterface mScaleDetector;

public MyView {
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ECLAIR) {
        // Use the fake version which won t call any multitouch APIs
        mScaleDetector = new FakeScaleGestureDetector();
    } else {
        // We are using SDK 2.0+, use the real implementation.
        mScaleDetector = new ScaleGestureDetector(context,
            new MyScaleListener());
    }
}

@Override
public boolean onTouchEvent(MotionEvent event) {
    // On pre-2.0, the implementation does nothing.
    return mScaleDetector.onTouchEvent(event);
}

private class MyScaleListener extends
        ScaleGestureDetector.SimpleOnScaleGestureListener {
    @Override
    public boolean onScale(ScaleGestureInterface detector) {
        float scaleFactor = detector.getScaleFactor();
        // If you were using a matrix to zoom an ImageView, you would do
        // something like this:
        mMatrix.postScale(scaleFactor, scaleFactor, detector.getFocusX(),
            detector.getFocusY());
        return true;
    }
}

一些开发商制造了 ha,使 b和海 Dolphin的多to成为可能。 这些是按习俗分类的,我确信可以下载。

谷歌还在其里程碑上正式发布了Nexus One和Mtoola的多邮袋。 这意味着,你应当能够为其找到一个正式类别,但我必须说,它用的是第2.1版的安康。

我还认为,可以放心地假设,你希望用根基电话开展工作。 颜色意味着你可能 st在使用安乐器2.1处,可能全部 down到2.0处。

你们是否试图把zo变成一个形象? 作为一种简单的解决办法,你可以使用网上电文来显示你的形象,它已经建立了平流层功能。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...