错误出现原因:
android:layout_width="match_parent" android:layout_height="wrap_content"
解决办法:
android:layout_width="match_parent" android:layout_height="match_parent"
如果属性设置为wrap_content的话
因为读取页面会在加载数据之前执行,而此时数据为空,所以导致页面加载时heigth和width为空数据时候的值,导致页面不能显示。