【发布时间】:2014-09-03 11:45:48
【问题描述】:
我在抽屉中使用 SwipeRefreshLayout。当我在列表视图中向上和向下滚动时,手势应该是直线向上和向下,如果手指只移动一点点而不抬起它,滚动手势就会停止并开始打开关闭抽屉的手势。 如果我没有使用 SwipeRefreshLayout,滚动手势在我抬起手指之前不会停止。
这是布局:
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_to_refresh_lisview_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical"
tools:ignore="NestedWeights" >
<views.IndexableListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF" />
</android.support.v4.widget.SwipeRefreshLayout>
【问题讨论】:
标签: android navigation-drawer gesture-recognition