【发布时间】:2011-12-02 00:04:49
【问题描述】:
我正在尝试创建一个在 Android 中使用 scrollView 的应用程序。碰巧 scrollView 不支持矩阵。因此我不能这样做:
Matrix matrix = new Matrix();
Matrix eventMatrix = new Matrix();
// possible touch states
final static int NONE = 0;
final static int DRAG = 1;
final static int ZOOM = 2;
int touchState = NONE;
有谁知道是否可以通过其他过程实现缩放和捏合功能?感谢您的帮助。
谢谢。
[重新编辑]
scrollView 将作为一个容器,以便可以在其中放置各种 UI。这样,scrollView 就可以作为一个 UI 部件。
谢谢。
【问题讨论】:
-
拜托,任何人,非常感谢!!
-
我也有同样的要求。你能把代码分享给我吗?
标签: android android-layout scrollview android-scrollview