android - 平板电脑的图库 View

标签 android android-fragments

我想为平板电脑实现galary类型 View ,但它的行为应该像ViewPager,即,当我向左或向右滑动它时,它应该自动移动到近端(左或右)。

我用谷歌搜索了一下,但有点困惑,实现这一目标的最佳方法是什么。

enter image description here

最佳答案

@Akhilesh Mani 尝试一下:

这是一个使用 ViewPager 的示例:

https://github.com/chiuki/android-swipe-image-viewer

仅将网格放入 fragment 内。

关于android - 平板电脑的图库 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23823516/

相关文章:

android - 无法将类型 'Android.Support.V4.App.Fragment' 转换为 'Android.Gms.Maps.MapFragment'

android - 更新到 Android N 后 LogCat 不工作

java - Android 应用程序无法启动 Activity 组件信息 android.content.res.Resources$NotFound

android - 多功能 Instant App 崩溃问题

android - 显示/隐藏 DrawerLayout 取决于当前 fragment

android - api 22 不调用 onDestroy

android - 将 TextView 放在父 ConstraintLayout 中居中,但根据左/右锚定 View 调整大小

java - 将 Hashmap 写入文件

android - RxJava2 Single.Concat 用于存储库模式

android - 每次在选项卡内导航时启用一个 ActionBar 按钮。