Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/381.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 项目并排显示的列表视图_Java_Android_Android Studio - Fatal编程技术网

Java 项目并排显示的列表视图

Java 项目并排显示的列表视图,java,android,android-studio,Java,Android,Android Studio,我正在尝试为我的应用程序创建自定义照片库。本质上,我希望它看起来像这样 我不确定如何使用ListView来实现这一点 谢谢你的帮助 我鼓励您使用RecyclerView,它比性能更好 使用RecyclerView后,将GridLayoutManager与RecyclerView一起使用,以便可以水平或垂直拆分项目 看看这个例子。 快乐编码 查看GridView或RecyclerView的GridLayoutManager

我正在尝试为我的应用程序创建自定义照片库。本质上,我希望它看起来像这样

我不确定如何使用ListView来实现这一点


谢谢你的帮助

我鼓励您使用RecyclerView,它比性能更好

使用RecyclerView后,将GridLayoutManager与RecyclerView一起使用,以便可以水平或垂直拆分项目

看看这个例子。


快乐编码

查看GridView或RecyclerView的GridLayoutManager