Android的设置开机画面(活动),如iPhone第二部分 [英] Android Setting Up Splash Screen(Activity) Like Iphone Part2

查看:108
本文介绍了Android的设置开机画面(活动),如iPhone第二部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

得到解决后打电话给我泼活动只有一个时间(<一个href=\"http://stackoverflow.com/questions/16163365/android-setting-up-splash-screenactivity-like-iphone-part1\">Part1问),现在我要建立我泼的活动。

在我的第一个布局,我想这样的功能:

图片吲; - >图像二&LT; - > Imgage三 - >第二个XML(活动)

同时每一个形象对他们将是一个页面控件,这将指明对图像当前是布局(如附截图)/或可以是任何其他方式来显示这一点。

这是指从图像一个我可以去像两个在滚动到右(我能回来像一个在滚动到左)从图像两个I可以去图像三上滚动右(我可以回来图像2,从图片三个IF我滚动到左)但是,如果我滚动到从第三图像那时我就应该得到我的第二个活动,再也不回来回的图像。


我想有有与页面控制器再经过我们进一步滚动到这样,我想,我的第二个活动应该被加载和飞溅不应该拿出向下滚动到第三/最后一个图像这三种图像滚动视图。

任何一个可以告诉我任何想法如何可以做到这一点。

为了与滚动视图和网页控制及防溅板;切换到次活动进行滚动时。
我不想动画我希望它手动工作像滚动/或任何其他方式来实现这一点。

编码将大大AP preciated。


解决方案

  1. 要实现滚动的图像,例如上面显示的使用 ViewPagerIndicator 库提供的这里。其简单的整合,并会采取几分钟。所有你所要做的就是阅读的使用的中给出的链接部分。


  2. 有关最后一页上的开关活动,只需执行 onPageChangeListener 中的链接描述和检查页码。


After getting solution to call my splash activity only one time (Part1 Question), Now i have to set up my splash activity.

On My First Layout i want functionality like this :

Image One <--> Image Two <--> Imgage Three --> Second xml(Activity)

Also on every image their will be a page control that will indicate on which image is currently on layout(Like the attached screenshot)/ or can be any other way to show this.

That Means From Image one i can go to image two on scrolling to right(I can come back to image one on scrolling to left) From Image two i can go to Image Three on scrolling right(I can come back to image 2 from Image three if i scroll to left)But if i scroll to right from Third Image then i should get to my Second Activity and never return back on those images.

i.e I want to have scroll view having those three images with the page controller then after we scroll down to the third/last image on further scrolling to right i want that my second activity should be loaded and the splash should never come up.

Can any one tell me any idea how this can be done.

To make splash sheet with scroll view and page control & switch to second activity when done scrolling. I don't want animation i want it to work manually like scrolling/ or any other way to implement this.

Coding will be much appreciated.

解决方案

  1. To implement scrollable images like shown above use ViewPagerIndicator library given HERE. Its simple to integrate and will take few minutes. All you have to do is read the usage section in given link.

  2. For switching activity on last page, simply implement onPageChangeListener described in link and check for page number.

这篇关于Android的设置开机画面(活动),如iPhone第二部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆