Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.84 KB

README.md

File metadata and controls

36 lines (30 loc) · 1.84 KB

Release Action


Release Action User Interface for Android

This is an Android Layout Library provides Release Action after pulling view. User interface is similar to chrisbanes/Android-PullToRefresh. The mechanism to judge scroller is similar to SwipeRefreshLayout. And the implementation is based on FlyingLayout.

You just wrap a target View or Layout in ReleaseActionLayout and setup listeners and indicator views. Then it'll fire actions when you release your finger after pulling the target view.

Features

  • Supports eight directions.
    • four orthogonal directions and their combinations (diagonal).
  • Action is cancelable unlike SwipeRefreshLayout.
  • Customizable indicator view.
    • SimpleReleaseActionLayout prepares minimum indicator views.
  • Only one change your layout hierarchy: wraps a target View in ReleaseActionLayout.
  • Works with views having correctly View#canScrollHorizontally/Vertically.
    • Or make custom layout overrides ReleaseActionLayout#canChildScrollHorizontally/Vertically.
  • Example application includes:
    • ListView
    • ViewPager
    • WebView
  • Strange Features:
    • When one direction indicator appears by swipe, you can also use another direction-actions by continuous swiping like a gesture.
    • and more...

Repository at https://github.com/tkgktyk/ReleaseAction.

Introduction

See Quick Start Guide.

Get the example application in this repository on Google Play:

Get it on Google Play