Just a Tiny IT Bird

犯了一个非常低级的错误,而且在网上找了好久都没有找到答案。

<com.handmark.pulltorefresh.library.PullToRefreshListViewandroid:id="@+id/ptrflv_hotCommodity"android:layout_width="match_parent"android:layout_height="wrap_content"android:padding="5dp"/>添加了这个组件,但就是不显示,上拉没反应,,从服务器端加载下来的数据也不显示。搞了好久,最后发现是android:layout_height="wrap_content"的问题,把wrap_content改成match_parent就好了。

粗心的错误最浪费时间……想一想也能很直观地想出来这里必须不能用wrap_content呀。。。醉了醉了

版权声明:本文为博主原创文章,未经博主允许不得转载。

泪,一种痛苦的雨滴,不知从什么时候开始已在我的世界下个不停。

Just a Tiny IT Bird

相关文章:

你感兴趣的文章:

标签云: