Commit Graph

18 Commits

Author SHA1 Message Date
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
Arvind Menon 55ff957560 Adding methods to open and close items 2014-08-30 20:56:46 -04:00
daimajia 1ed01986ed #10 2014-08-30 12:11:54 +08:00
daimajia c0d5737356 #9 2014-08-30 11:21:56 +08:00
代码家 d1df4527ae Merge pull request #8 from StephaneBg/master
Add SimpleSwipeListener
2014-08-29 20:05:24 +08:00
StephaneBg 4078489f6e Add SimpleSwipeListener
Add class that implements funtions of interface SwipeListener not to
have to declare all if only some of them are used
2014-08-29 13:49:39 +02: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 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