我有两个textviews和一个浮动的操作按钮和一个ListView。 目前我能够使用swiperefreshlayout的列表视图,但我想它的时候我刷卡从活动的自上而下,列表视图应后台更新使用全视图即。 任何人都可以帮助我。 这是我当前的xml文件。Android的刷卡刷新布局问题
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView android:id="@+id/view_tickets_activity_text_view_note"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp" />
<TextView android:id="@+id/view_tickets_activity_text_view_customer_name"
android:layout_width="220dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/view_tickets_activity_text_view_note"
android:layout_below="@+id/view_tickets_activity_text_view_note"
android:layout_marginTop="10dp" />
<android.support.design.widget.FloatingActionButton android:id="@+id/view_tickets_activity_floating_btn_add_ticket"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignTop="@+id/view_tickets_activity_text_view_customer_name" />
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/view_tickets_activity_floating_btn_add_ticket"
android:layout_marginTop="15dp">
<ListView
android:id="@+id/view_tickets_activity_list_view_tickets"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</android.support.v4.widget.SwipeRefreshLayout>
</RelativeLayout>
我想你的解决方案,但是当我们滑下出现圆形的东西是不可见的,所以你有什么想法为什么是这样? –