0
我目前正在与Web服务的应用程序,以及它需要不断更新这个原因,所以我尝试运用拉刷新设计错误SwipeRefreshLayout V4 - 拉刷新
我的浮动按钮消失当我使用SwipeRefreshLayout V4
SwipeRefreshLayout V4
<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fab="http://schemas.android.com/apk/res-auto"
android:id="@+id/fragment_main"
...>
<android.support.v7.widget.RecyclerView
android:id="@+id/reciclador"
..../>
<com.melnykov.fab.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
... />
</android.support.v4.widget.SwipeRefreshLayout>
这是当我没有实现它
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fab="http://schemas.android.com/apk/res-auto"
android:id="@+id/fragment_main"
....>
<android.support.v7.widget.RecyclerView
android:id="@+id/reciclador"
... />
<com.melnykov.fab.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
... />
</RelativeLayout>
前
后
非常感谢你 –