/ParallaxSwipeBack

带视觉差的侧滑返回,类似于新版微信和lofter的侧滑返回效果。核心代码小于50行

Primary LanguageJava

Android ParallaxSwipeBack

带视觉差的侧滑返回,类似于新版微信和lofter的侧滑返回效果。核心代码小于50行.
image

Usage

`public class MainActivity extends ParallaxSwipeBackActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    findViewById(R.id.next).setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent intent = new Intent(MainActivity.this,NextActivity.class);
            intent.putExtra("index",0);
            startParallaxSwipeBackActivty(MainActivity.this, intent);
        }
    });

}`   

Very little code, are all here ParallaxSwipeBackActivity

代码非常少,都在这里

http://blog.csdn.net/hanhailong726188/article/details/46433229