-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
优化手势识别类TouchGestureDetector,ScaleGestureDetector使用Api27源码
- Loading branch information
huangziwei
committed
Aug 1, 2018
1 parent
d1c38c2
commit 3920cb0
Showing
7 changed files
with
636 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<!-- Use a larger scaling span for larger screen devices. --> | ||
<dimen name="androids_api27_config_minScalingSpan">32mm</dimen> | ||
</resources> |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<!-- Minimum span needed to begin a touch scaling gesture. | ||
If the span is equal to or greater than this size, a scaling gesture | ||
will begin, where supported. (See android.view.ScaleGestureDetectorApi27) | ||
This also takes into account the size of any active touch points. | ||
Devices with screens that deviate too far from their assigned density | ||
bucket should consider tuning this value in a device-specific overlay. | ||
For best results, care should be taken such that this value remains | ||
larger than the minimum reported touchMajor/touchMinor values | ||
reported by the hardware. --> | ||
<dimen name="androids_api27_config_minScalingSpan">27mm</dimen> | ||
</resources> |
Oops, something went wrong.