-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d59876
commit 2f4b35f
Showing
6 changed files
with
101 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,14 +13,56 @@ | |
|
||
package com.github.wangyiqian.stockchart.listener | ||
|
||
import com.github.wangyiqian.stockchart.entities.GestureEvent | ||
|
||
/** | ||
* @author wangyiqian E-mail: [email protected] | ||
* @version 创建时间: 2021/11/29 | ||
*/ | ||
interface OnGestureListener { | ||
|
||
/** | ||
* 是否正在缩放 | ||
* 滑动中 | ||
*/ | ||
fun onHScrolling() {} | ||
|
||
/** | ||
* 开始fling | ||
*/ | ||
fun onFlingBegin() {} | ||
|
||
/** | ||
* 手指离开屏幕 | ||
*/ | ||
fun onTouchLeave() {} | ||
|
||
/** | ||
* 开始缩放 | ||
*/ | ||
fun onScaleBegin(focusX: Float) {} | ||
|
||
/** | ||
* 缩放中 | ||
*/ | ||
fun onScaling(totalScaleX: Float) {} | ||
|
||
/** | ||
* 单击 | ||
*/ | ||
fun onTap(x: Float, y: Float) {} | ||
|
||
/** | ||
* 开始长按 | ||
*/ | ||
fun onLongPressBegin(x: Float, y: Float) {} | ||
|
||
/** | ||
* 长按中 | ||
*/ | ||
fun onLongPressing(x: Float, y: Float) {} | ||
|
||
/** | ||
* 结束长按 | ||
*/ | ||
fun onScaling(totalScaleX: Float){} | ||
fun onLongPressEnd(x: Float, y: Float) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters