Commit Graph

11 Commits

Author SHA1 Message Date
Peter Cai 7425e3c68c SwipeLayout: Allow childs to deny swipe gesture
When used with ScorllView(or horizontal) inside SwipeLayout, the swipe
gesture may conflict with the scroll action. If use requestDisallowInterceptTouchEvent, the scroll action will be back but the parent ListView's scroll action may be disallowed too.

This patch solved this problem by introducing a "SwipeDenier"
interface whose implementation should return if this swipe event should
be denied. When onInterceptTouchEvent is called, SwipeLayout will call
all SwipeDenier and if one of them returns true, the event will not be
intercepted and passed to child views.

Tested in app: https://github.com/PaperAirplane-Dev-Team/BlackLight
which requires HorizontalScrollView inside SwipeLayout

Signed-off-by: Peter Cai <xqsx43cxy@126.com>
2014-08-29 17:16:53 +08:00
daimajia 92ac1f371e add styleable ability 2014-08-28 09:01:19 +08:00
StephaneBg e9377a4d8b Fix gradle files 2014-08-27 14:10:22 +02:00
StephaneBg f1a4188d89 Add styleable ability
Fix mismatch of application package between gradle and manifest.
Remove unused resources.
Update demo with new ability.
2014-08-27 12:52:46 +02:00
daimajia fd66ce4d15 remove useless 2014-08-26 21:44:57 +08:00
daimajia c9588c0ae7 fix #3 2014-08-26 21:39:05 +08:00
Peter Cai c7c8bac09a SwipeLayout: Allow match_parent and wrap_content
This patch makes SwipeLayout extend FrameLayout, which has a complete
measuring function and allows useage of match_parent and wrap_content.

Tested in app: https://github.com/PaperAirplane-Dev-Team/BlackLight
Works just all right.

Signed-off-by: Peter Cai <xqsx43cxy@126.com>
2014-08-26 13:28:55 +08:00
daimajia 5106665d73 fix error status in GridView 2014-08-26 07:42:47 +08:00
daimajia f1f11d99d8 fix #1 2014-08-25 17:29:40 +08:00
daimajia 29cf7d21ff remove useless 2014-08-25 12:15:19 +08:00
daimajia 9a9ade7eeb Android Swipe Layout born 2014-08-25 12:08:30 +08:00