All Projects → liuguangqiang → Swipeback

liuguangqiang / Swipeback

Licence: apache-2.0
SwipeBack is an android library that can finish a activity by using gesture.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Swipeback

Any Touch
👋 手势库, 按需2kb~5kb, 兼容PC / 移动端
Stars: ✭ 567 (-66.98%)
Mutual labels:  gesture
Touchkit
基于mtouch封装的,更便于业务使用的贴纸手势库
Stars: ✭ 48 (-97.2%)
Mutual labels:  gesture
Fragmentation
[DEPRECATED] A powerful library that manage Fragment for Android
Stars: ✭ 9,713 (+465.7%)
Mutual labels:  swipeback
Macgesture
Global mouse gestures for macOS
Stars: ✭ 626 (-63.54%)
Mutual labels:  gesture
Photobrowser
Elegant photo browser in Swift. 图片与视频浏览器。
Stars: ✭ 975 (-43.21%)
Mutual labels:  gesture
React Soft Slider
Simple, fast and impartial slider
Stars: ✭ 54 (-96.85%)
Mutual labels:  gesture
Android Zblibrary
🔥Android MVP 快速开发框架,做国内 「示例最全面」「注释最详细」「使用最简单」「代码最严谨」的 Android 开源 UI 框架。 🔥An Android MVP Framework with many demos, detailed documents, simple usages and strict codes.
Stars: ✭ 5,000 (+191.21%)
Mutual labels:  swipeback
Aicustomviewcontrollertransition
Easy and tidy way for creating custom UIViewController transitions for iOS
Stars: ✭ 130 (-92.43%)
Mutual labels:  gesture
Gesture recognition
a gesture recognition verification lock
Stars: ✭ 37 (-97.85%)
Mutual labels:  gesture
React Gesture Responder
a gesture responder system for your react application
Stars: ✭ 99 (-94.23%)
Mutual labels:  gesture
Lunar Unity Console
High-performance Unity iOS/Android logger built with native platform UI
Stars: ✭ 628 (-63.42%)
Mutual labels:  gesture
Mbdrawingview.swift
Gesture-based drawing overlay view
Stars: ✭ 16 (-99.07%)
Mutual labels:  gesture
React Cube Navigation
3d cube style navigation pattern, like that found in Instagram Stories
Stars: ✭ 59 (-96.56%)
Mutual labels:  gesture
Navigation Toolbar
Navigation toolbar is a slide-modeled UI navigation controller made by @Ramotion
Stars: ✭ 587 (-65.81%)
Mutual labels:  gesture
Zhpopupcontroller
Help you pop up custom views easily. and support pop-up animation, layout position, mask effect and gesture interaction etc.
Stars: ✭ 1,481 (-13.74%)
Mutual labels:  gesture
Sensitive
Special way to work with gestures in iOS
Stars: ✭ 547 (-68.14%)
Mutual labels:  gesture
Rxgesture
RxSwift reactive wrapper for view gestures
Stars: ✭ 1,069 (-37.74%)
Mutual labels:  gesture
Paintview
An Android View with Gesture Supported for Painting
Stars: ✭ 136 (-92.08%)
Mutual labels:  gesture
Audiovideocodec
一款视频录像机,支持AudioRecord录音、MediaCodec输出AAC、MediaMuxer合成音频视频并输出mp4,支持自动对焦、屏幕亮度调节、录制视频时长监听、手势缩放调整焦距等
Stars: ✭ 113 (-93.42%)
Mutual labels:  gesture
Forcetouch
Simple implementation of ForceTouch on Android
Stars: ✭ 84 (-95.11%)
Mutual labels:  gesture

SwipeBack Build Status

SwipeBack is a android library that can finish a activity by using gesture.

You can set the swipe direction,such as left,top,right and bottom.

Screenshots

image

image

Sample Download

Sample Download

image

Usage

Gradle

dependencies {
   	compile 'com.github.liuguangqiang.swipeback:library:1.0.2@aar'
}

Maven

<dependency>
  	<groupId>com.github.liuguangqiang.swipeback</groupId>
  	<artifactId>library</artifactId>
  	<version>1.0.2</version>
  	<type>aar</type>
</dependency>

SwipeBackActivity

SwipeBackActivity is a base activity for using this library more easier.This Activity will help us to show a shadow.

image

public class CommonActivity extends SwipeBackActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_common);
        setDragEdge(SwipeBackLayout.DragEdge.LEFT);
    }

}

Layout and activity theme.

SwipeBackLayout must contains only one direct child.

<com.liuguangqiang.swipeback.SwipeBackLayout
	xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/swipeBackLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
	
	<!-- SwipeBackLayout must contains only one direct child -->

</com.liuguangqiang.swipeback.SwipeBackLayout>
 <style name="Theme.Swipe.Back" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
 </style>

Swipe Direction

You can set DragEdge to change the swipe direction.

 public enum DragEdge {
      	LEFT,
      	
        TOP,
        
        RIGHT,
        
        BOTTOM
    }

Support Views

SwipeBackLayout must contains only one direct child.

Such as:

  • LinearLayout,
  • RelativeLayout,
  • ListView,
  • ViewPager
  • WebView

License

Copyright 2015 Eric Liu

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].