Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/388.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/194.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 如何在Android中以这种方式显示我的笔记?_Java_Android_Android Recyclerview_Android View - Fatal编程技术网

Java 如何在Android中以这种方式显示我的笔记?

Java 如何在Android中以这种方式显示我的笔记?,java,android,android-recyclerview,android-view,Java,Android,Android Recyclerview,Android View,我对安卓系统有点陌生,想开发一个记笔记的应用程序 我正在弄清楚所有的小事情,但似乎无法弄清楚这一点,我如何才能以这种方式显示我的数据请查看下面的图片。 我应该使用回收器视图、卡片视图吗?我是说我应该用什么样的视角 我需要一点正确的方向 非常感谢您的帮助 多谢各位 您需要添加GridlayoutManager: // this in Activity, getContext() in Fragment recyclerView.setLayoutManager(new GridlayoutMana

我对安卓系统有点陌生,想开发一个记笔记的应用程序

我正在弄清楚所有的小事情,但似乎无法弄清楚这一点,我如何才能以这种方式显示我的数据请查看下面的图片。

我应该使用回收器视图、卡片视图吗?我是说我应该用什么样的视角

我需要一点正确的方向

非常感谢您的帮助

多谢各位


您需要添加GridlayoutManager:

// this in Activity, getContext() in Fragment
recyclerView.setLayoutManager(new GridlayoutManager(this, 2)); 

这看起来像是一个
RecyclerView
,它使用
GridlayoutManager
CardView
作为单个视图。