luckybilly / luckybilly/SmartSwipe
如何修改触碰范围
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.1k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
请描述您遇到的问题
- 预期行为:Activity是上方一个播放器,下方剩下的区域是Fragment,就跟大部分视频软件一样。预期状况是只有在下方Fragment区域触碰右滑才有反应,在上方播放器则不反应(避免与播放器快进快退手势冲突),在下方Fragment区域往右滑动时,一样整个Activity往右滑掉关闭。如何才能覆写滑动的触碰范围?
- 实际行为:使用的是ActivitySlidingBackConsumer,不做任何处理的话就是整面触碰都能滑动,尝试了setHeight,只是似乎没有用
### 当前使用的SmartSwipe版本号:
例如: **1.1.2**

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with ActivitySlidingBackConsumer and the setHeight option mentioned in the report, then trace how the swipe touch region is selected. Done means the upper player ignores the back-swipe gesture while a right swipe in the lower Fragment area still closes the Activity; verify the behavior with the reported SmartSwipe version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100