Skip to content

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

Notifications You must be signed in to change notification settings

kolyneh/ParallaxSwipeBack

 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%