【发布时间】:2015-10-03 10:53:57
【问题描述】:
我在 FrameLayout 中有一个 WebView,用于添加选项卡,因为我正在创建浏览器。 FrameLayout 在 SwipeRefreshLayout 内。
问题:每当我在 WebView 中快速滚动内容时,工具栏后面都会出现刷新图标。只有当 WebView 内容位于顶部时才会发生这种情况。它与FrameLayout有关,当我删除它时,问题就消失了。
布局如下:
<SwipeRefreshLayout
android:id="@+id/swipeRefresh"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<FrameLayout
android:id="@+id/webViewFrame"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
</SwipeRefreshLayout>
【问题讨论】:
-
我终于从这个链接中得到了答案 - stackoverflow.com/questions/24658428/…
标签: android android-webview android-framelayout swiperefreshlayout