Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 830 Bytes

File metadata and controls

29 lines (24 loc) · 830 Bytes

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