me.biubiubiu.swipeactivity:library

android justified textview


License
Apache-2.0

Documentation

#SwipeActivity

Swipe to finish activity. Because it quite difficult for large screen device to reach the back button on the left top corner, i create this project to make activity be closed when user swipe for a distance. You can find this effect on My favourite app smzdm.

##Integrate

gradle

compile 'me.biubiubiu.swipeactivity:library:1.2'

eclipse

Import library to your project.

##Usage

You only need to make your activity to be the child of SwipeActivity.

public class SecondActivity extends SwipeActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}

##Customization

Be default, SwipeActivity extends stock Activity. if you want to use SherlockActivity or ActionBarActivity, you just need to change the parent of SwipeActivity, then it's good to go.

##Compatibility

API 8 and above