简体   繁体   English

如何在Android应用程序开始时制作可移动幻灯片?

[英]How to make movable slideshow at the start of android application?

First of all I apologise for my English, because I am maybe not specific enough. 首先,我对我的英语表示歉意,因为我可能不够具体。 I would like to make a slideshow at the start of android application. 我想在android应用程序的开头进行幻灯片放映。 For example you can see the android application of linkedIN. 例如,您可以看到linkedIN的android应用程序。 I don´t want it to move on its own. 我不希望它自己移动。 I want user to move it. 我希望用户移动它。 There will be eg three pictures with text fields and buttons and user will be able to move them right or left. 例如,将有三张带有文本字段和按钮的图片,用户将可以向右或向左移动它们。 Is there any tutorial how to make this probably easy thing? 有没有教程如何使这可能变得容易? Thanks in advance. 提前致谢。

You can use the ViewPagerIndicator Library by Jake Wharton 您可以使用Jake Wharton的ViewPagerIndicator库

Source: ViewPagerIndicator 资料来源: ViewPagerIndicator

A complete example of implementing ViewPagerIndicator is available here & might be useful, 此处提供了实现ViewPagerIndicator的完整示例,可能会有用,

Android Jake Wharton ViewPager Indicator Tutorial Android Jake Wharton ViewPager指标教程

You can use ViewFlipper widget provided with Android SDK as follows: 您可以按以下方式使用Android SDK随附的ViewFlipper小部件:


Step1:Add ViewFlipper element into you activity layout xml.Inside ViewFlipper element add Three ImageView elements 步骤1:将ViewFlipper元素添加到活动布局xml中。在ViewFlipper元素中添加三个ImageView元素
Step2: Use either buttons[Next or Prev.] to navigate across images 步骤2:使用[下一个或上一个]按钮浏览图像
Step3: Use Proper Events to detect swipe 步骤3:使用适当的事件来检测滑动

For details refer link: http://javatechig.com/android/android-viewflipper-example 有关详细信息,请参见链接: http : //javatechig.com/android/android-viewflipper-example

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM