gpt4 book ai didi

android - 手势是如何存储在android中的

转载 作者:搜寻专家 更新时间:2023-11-01 08:14:34 26 4
gpt4 key购买 nike

手势如何存储在 android 中。它们是存储为图像(jpeg 等)还是以任何其他格式存储。

最佳答案

手势包:android.gesture

http://developer.android.com/reference/android/gesture/Gesture.html

A gesture is a hand-drawn shape on a touch screen. It can have one or multiple strokes. Each stroke is a sequence of timed points. A user-defined gesture can be recognized by a GestureLibrary and a built-in alphabet gesture can be recognized by a LetterRecognizer.

这意味着每个手势都保存为 GestureStroke 序列,其中每个 GestureStroke 由两个以上 GesturePoint 类型的时间点定义。手势组合到包含 GestureLibrary 对象的文件中。库能够解析此库文件,由 GestureLibraries::fromFile([String or File argument])

加载

http://developer.android.com/reference/android/gesture/GestureLibraries.html#fromFile(java.io.File )
http://developer.android.com/reference/android/gesture/GestureLibrary.html
http://developer.android.com/reference/android/gesture/GestureStroke.html

关于android - 手势是如何存储在android中的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6136532/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com