滑动初始屏幕以进入登录屏幕(Android应用程序) [英] Swipe a splash screen to get to a login screen (Android Application)
问题描述
我正在开发一个android应用程序,其中: 1.启动画面显示 2.启动画面消失,出现登录屏幕
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.)使用View Pager方法- http://developer.android .com/training/animation/screen-slide.html
1.) Use a View Pager approach - http://developer.android.com/training/animation/screen-slide.html
2.)您可以检测滑动手势,然后开始登录活动并完成Splash活动.看看从这里开始- http://goo.gl/Do3z71
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
这篇关于滑动初始屏幕以进入登录屏幕(Android应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!