简体   繁体   English

嵌套滚动视图中的滚动视图不起作用

[英]Scroll View inside Nested Scroll View does't work

Is it true or not ? 是真的吗? i want to scroll on the listview too inside my activity by using nested scroll view. 我也想通过使用嵌套滚动视图在活动中在listview上滚动。 Please help. 请帮忙。 Thanks in advance 提前致谢

<android.support.v4.widget.NestedScrollView
    android:id="@+id/login_form"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <LinearLayout
        android:id="@+id/insertkend_form"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <ListView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/listAksesoris">
            </ListView>

        </ScrollView>

   </LinearLayout>

</android.support.v4.widget.NestedScrollView>

现在可以正常工作,只需删除scrollview并添加到listview android:nestedScrollingEnabled="true"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 滚动视图不起作用 - Scroll view does not work ItemTouchHelper 滚动在嵌套在水平滚动视图中的 recyclerView 中不起作用 - ItemTouchHelper scroll doesn't work in recyclerView that is nested in a horizontal Scroll view 在嵌套滚动视图中使用水平回收器视图时,折叠工具栏布局不起作用 - Collapsing toolbar layout doesn't work when using horizontal recycler view inside nested scroll view 回收器视图在嵌套滚动视图中不平滑 - Recycler view not smooth inside nested scroll view Recyclerview 滚动在嵌套滚动视图中的片段中不起作用 - Recyclerview scrolling doesn't work in fragment that in nested scroll view 滚动视图内的按钮在单击时不起作用-android - buttons inside scroll view dosen't work on click - android 嵌套滚动视图中的两个Recycler视图 - Two Recycler views inside nested scroll view 嵌套滚动视图中的StreetViewPanoramaView不起作用 - StreetViewPanoramaView inside Nested scroll view not working 嵌套滚动视图中的 recyclerview 不滚动 - recyclerview inside nested scroll view is not scolling window.scroll事件在android网络视图上不起作用 - window.scroll event does't work on android web view
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM