在3.6.1节中按照书上代码编写,运行结果如下图所示:没有像125页中竖着显示的效果,而是一个水果占一个屏幕,请高手帮忙解答。
 
你肯定看的是第一行代码第二版吧?把fruit_item.xml中的android:layout_width="match_parent"
android:layout_height="match_parent">改成android:layout_width="wrap_content"
android:layout_height="wrap_content">就好了 我是看的https://blog.csdn.net/clzh2013/article/details/53897357这位大神的文档才想到的