我正在尝试创建一个在 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 部件。
谢谢。