[英]RecyclerView smoothScrollToPosition() is not working with nestedScrollView. I want to scroll to the bottom whenever the fragment is created
[英]About WebView In NestedScrollView. Can not show bottom content
我無法使用NestedScrollView顯示Webview底部內容。 底部欄不是應用程序欄。
對不起我的英語。 謝謝〜
依存關系
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:recyclerview-v7:23.3.0'
compile 'com.android.support:design:23.3.0'
我的密碼
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/view_toobar" />
<android.support.v4.widget.SwipeRefreshLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<WebView
android:id="@+id/web_view"
android:layout_width="match_parent"
android:layout_height="match_parent"></WebView>
</android.support.v4.widget.NestedScrollView>
</android.support.v4.widget.SwipeRefreshLayout>
</android.support.design.widget.CoordinatorLayout>
您應該了解有關材料小部件的更多信息,因為您在NewstedScrollView中使用了一些新參數。 該參數是ActionBar大小下方的滾動空間。 只需將其刪除,或更新您的代碼即可!
app:layout_behavior="@string/appbar_scrolling_view_behavior"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.