Skip to content

An android library that can finish a activity by using gesture.

Notifications You must be signed in to change notification settings

Richyeohx/SwipeBack

Repository files navigation

SwipeBack

An android library that can finish a activity by using gesture.

Using help

Let your activity exnteds SwipeBackActivity and setting style as Translucent and windowAnimationStyle set null, but you also custom windowAnimationStyle

Such as

  public class MainActivity extends SwipeBackActivity{
      @Override
      protected void onCreate(saveInstanceState Bundle){
          super.onCreate(saveInstanceState);
          setContentView(R.layout.activity_main);
      }
  }

declared styles.xml

<style name="AppTheme.Translucent" parent="AppTheme">
  <item name="android:windowBackground">@android:color/transparent</item>
  <item name="android:windowIsTranslucent">true</item>
  <item name="android:windowAnimationStyle">@null</item>
</style>

Next step

  • Support fragment

About

An android library that can finish a activity by using gesture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages