Commit Graph

11 Commits

Author SHA1 Message Date
daimajia 93793031ce fix #9, change to screen coordinates 2014-09-02 08:14:34 +08:00
Arvind Menon 9bd67cead6 Fixing accidental open when in a scroll view 2014-09-01 15:48:15 -04:00
daimajia ae890a8c9a complicated nested support, listview, gridview open item close item support 2014-08-31 09:26:04 +08:00
daimajia 1ed01986ed #10 2014-08-30 12:11:54 +08:00
daimajia c0d5737356 #9 2014-08-30 11:21:56 +08:00
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 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 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 9a9ade7eeb Android Swipe Layout born 2014-08-25 12:08:30 +08:00