2
|
Emily · 技术社区 · 7 年前 |
1
1
用这条线
您正在将书籍的空列表传递给ListView的适配器。因此,您的ListView将为空,因为它没有要显示的内容。
你必须做的是:
在Book myClass级别声明ArrayList
尝试拆分此行
分为以下两行:
然后在你的
在你的
之后,你必须重新创建你的
这应该是正确的方式 |
2
1
首先创建公共
当应用程序开始旋转活动时
之后,您可以在发生时获得传递数据值
我希望你能用这个解决方案得到一个解决方案,这不是完整的源代码校正。这是你应该在技术上做的解决方案。 |
3
0
当方向改变时,这将覆盖默认行为。 |
xxmilcutexx · 横向/滚动视图中缺少视图 7 年前 |
Jagger R. House · 动态编辑器窗口未正确缩放 7 年前 |
DarkW1nter · 在Xamarin中处理页面方向更改 7 年前 |
anonymox · 根据xcode 7.1中的屏幕方向使用不同的图像 8 年前 |
Kris · 需要帮助在android中旋转图像视图和方向更改动画(4侧旋转) 10 年前 |
Snake · 设置整个应用程序的屏幕方向 10 年前 |