使用图像和视频在 android 中创建自动滑块?

Creating an auto-slider in android with images and videos?

我是 android 的新手,我想制作一个应用程序,它会在给定的时间间隔内自动显示图像。这个应用程序不仅包含图像,还包含视频,它应该会滑过所有这些(图像和视频),当有人点击 window 上的任何地方时,一个新的 activity 应该开始。 关于我该怎么做的任何帮助?我已经阅读了 Stack Overflow 本身的所有 flipper 或 pager 命令,但我无法实现这一点。谁能帮我? 另外,管理员应该能够更新和修改将要显示的 image/videos?任何帮助将不胜感激。

首先在每个项目上创建 viewpager(如果要创建自定义视图寻呼机,请遵循此 link https://github.com/JakeWharton/ViewPagerIndicator) and provide id to each item, on create view change the item of the view, increase item number and again at last number decrease( for this you can use this link https://github.com/Trinea/android-auto-scroll-view-pager)单击从列表中获取数据并执行您自己的任务。