Commit Graph

107 Commits

Author SHA1 Message Date
daimajia 85c318fc84 v1.1.8 2015-01-31 18:53:13 +08:00
daimajia 7cf4e663ae v1.1.8 2015-01-31 18:43:30 +08:00
daimajia c739b4b736 Merge branch 'jpshelley-create_recycler_adapter' 2015-01-31 18:31:35 +08:00
daimajia da7084cc8b merge from @jpselley, start support RecyclerView. 2015-01-31 18:31:21 +08:00
John Shelley 3189892d3f Update Gradle Wrapper
Updated gradle wrapper to 2.2
2015-01-31 01:24:44 -06:00
John Shelley baafdcbb95 Modularize Manager class
Seperated out the code thats used more then once and created 2 seperate subclasses called Adapter and Recycler based on the method of 'lists'.
2015-01-31 01:06:43 -06:00
John Shelley 418898c33c Setup Clicks, Deletion, Animation
Removed 2-way-view in favor of more simplistic items. Based on research most people have used the ViewHolder for onItemClick listener support, sometimes I've seen a ViewHolder implement View.OnClickListener, however that didn't work for our example so our root view has an itemclicklistener set.

On top of that, basic animations were added via a top starred github library.

The delete is hooked up to actually remove the item from the list. However it seems glitchy in comparison.

It should be noted that it will be left up to the user to determine UI/UX aspects such as removal. The Inbox App by Google uses a swipe to remove items, where the Gmail App by Google uses a swipe to 'queue' an item for dismisal, but not dismissing it until the user makes another interaction such as scrolling or clicking another email.

A 'closeAllItems()' method was added in our Managers, as well as a minor fix that was needed by adding 'shown layouts' correctly in our SwipeListener.
2015-01-30 23:49:25 -06:00
daimajia a92a2cdae7 try to fix #74 2015-01-24 10:22:39 +08:00
daimajia a9cc7d28eb support compile under build:gradle:1.0.0 2015-01-24 09:09:23 +08:00
代码家 b909a2a4bb remove useless offset 2015-01-17 23:57:39 +08:00
John Shelley 7ea40c5978 Fix click support. Showing 1 of many options 2014-12-24 23:19:07 -06:00
John Shelley 1f75c11e6a (recyclerview.adapter) Update adapter. See details ->
RecyclerViewAdapter in the demo now extends from RecyclerSwipeAdapter from the library. This greatly simplifies things for the users. They still must implement their own ViewHolder and extend from the abstract one inside the SwipeAdapter. See the demo for recyclerview for a better understanding of how it works.

Also increased the build and compile versions to 21. Added elevation to the top view for 5.0 devices. See the recyclerview on a device running android 5.0+ to see the difference from the edge.
This can be replicated with a shadow drawable gradient with lower devices. Maybe someone else can add this feature.
2014-12-19 10:32:59 -06:00
John Shelley a5a2e2c9ea (recyclerview, adapter) Initial RecyclerView update.. see details
Added more basic functionaloty to the recycler view activity and more improvements
2014-12-18 16:52:53 -06:00
John Shelley bd4749188c (demo, recyclerview) Update demo.. see details ->
Demo now includes the most simple form or using a recycler view in the codebase currently.
Next step would be to create a more simplified approach at a RecyclerViewSwipeAdapter that a user can extend from and only implement smaller methods instead of all the implementations.
2014-12-18 14:53:53 -06:00
John Shelley 25e38f34f3 (gradle) Update gradle issues..
Updating gradle specfic issues that arrised when using Android Studio 1.0.+
2014-12-18 10:58:50 -06:00
代码家 b3fe10cf33 Merge pull request #60 from rahulrj/master
Solved one NullPointerException
2014-12-16 20:51:04 +08:00
Rahul Raja 5ec9935ca2 Merge branch 'master' of https://github.com/rahulrj/AndroidSwipeLayout 2014-12-16 17:57:31 +05:30
Rahul Raja f957a49cd2 Solved one NullPointerException 2014-12-16 17:56:54 +05:30
代码家 4d66856185 Merge pull request #57 from rahulrj/master
Added horizontal and vertical offset for swiping
2014-12-13 10:01:24 +08:00
RAHUL RAJA ce1eb70c86 Update SwipeLayout.java
Changed Variable names
2014-12-12 23:04:15 +05:30
Rahul Raja dee951d85d Added horizontal and vertical offset for swiping 2014-12-12 16:44:48 +05:30
代码家 f3b50c4e17 Merge pull request #55 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2014-12-10 22:45:47 +08:00
The Gitter Badger cbff4cde88 Added Gitter badge 2014-12-10 14:45:15 +00:00
daimajia 1c4dfcc985 v1.1.7 2014-09-27 07:31:36 +08:00
daimajia fd22147ea3 fix #35, v1.1.7 2014-09-27 07:29:24 +08:00
代码家 0be6b95d3d v1.1.6
Support double click.
2014-09-22 11:05:33 +08:00
daimajia 883b4be3ba Merge branch 'master' of github.com:daimajia/AndroidSwipeLayout 2014-09-22 10:54:15 +08:00
daimajia e0b54dede3 support double click 2014-09-22 10:51:33 +08:00
代码家 7771395503 V1.1.5 2014-09-20 08:29:52 +08:00
daimajia 83bc638799 Merge branch 'master' of github.com:daimajia/AndroidSwipeLayout 2014-09-19 22:57:24 +08:00
daimajia 0b485a1e35 add swipe adapter utils 2014-09-19 22:56:14 +08:00
daimajia 677c318ab9 add Swipe Adapter utils 2014-09-19 22:55:20 +08:00
daimajia 8bc91b6664 more elegant demo 2014-09-19 22:54:49 +08:00
代码家 dd05a2ed9a Update README.md 2014-09-19 12:47:02 +08:00
代码家 74e6268cdf Update README.md 2014-09-19 12:44:33 +08:00
代码家 0482533a63 v1.1.4 2014-09-17 23:34:33 +08:00
daimajia c93c76488a v1.1.4 2014-09-17 23:21:42 +08:00
daimajia a0b0678465 Merge branch 'master' of github.com:daimajia/AndroidSwipeLayout 2014-09-17 23:13:19 +08:00
daimajia c3c583090f fix single mode not close bug 2014-09-17 23:12:58 +08:00
代码家 2402f8efef v1.1.3
better SwipeAdapter
2014-09-17 14:29:39 +08:00
daimajia 9e965d7c38 a simpler and better way to mange open items 2014-09-17 14:18:30 +08:00
daimajia bbb5c0883d v1.1.2 2014-09-17 12:12:02 +08:00
daimajia 7db7da3f58 a better auto-close SwipeAdapter(sigle item mode) 2014-09-17 12:10:31 +08:00
代码家 62742aa99c v1.1.1
Better selector effect.
2014-09-16 10:03:00 +08:00
daimajia 7ba5e8b350 better selector effect 2014-09-16 09:44:30 +08:00
代码家 bfd2f6b73d Update README.md 2014-09-13 21:50:50 +08:00
代码家 b479efba08 Update README.md 2014-09-13 21:34:18 +08:00
代码家 4bae377640 v1.1.0 2014-09-12 10:11:10 +08:00
daimajia 6c3db3425c fix #24, support disable swipe gesture and fix setEnabled(boolean) not works issue 2014-09-12 10:00:00 +08:00
代码家 de5c5f9d87 v1.0.9 2014-09-11 19:44:42 +08:00