문제

I am developing an android application where currently: 1. splash screen displays 2. splash goes away and login screen appears

What I would like to happen is for the splash screen to stay on the screen until a user swipes the screen left or right which will then bring them to the login screen.

I am relatively new to this and have no idea how to go about implementing this. Any help would be greatly appreciated.

도움이 되었습니까?

해결책

There can be more than one way to achieve this -

1.) Use a View Pager approach - http://developer.android.com/training/animation/screen-slide.html

2.) You can detect swipe gesture and than start your login activity and finish Splash Activity. Take a look to start from here - http://goo.gl/Do3z71

다른 팁

Use a ViewPager to achieve what you want:

http://developer.android.com/training/animation/screen-slide.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top