【问题标题】:ViewCompat.setNestedScrollingEnabled() not working on KitKatViewCompat.setNestedScrollingEnabled() 在 KitKat 上不起作用
【发布时间】:2017-06-07 08:07:46
【问题描述】:

ViewCompat.setNestedScrollingEnabled() 不适用于 KitKat。它在 Lollipop 上运行良好。

可能是什么问题以及如何解决?

【问题讨论】:

  • 您尝试应用嵌套滚动的视图是什么类型?
  • 不工作 ... 可能是什么问题 =>好吧,既然你只说它不工作,小心省略any 有关错误的详细信息,有人怎么知道?现在是阅读 how to ask a question... 的好时机
  • Android L 和 M 设备,工作嵌套滚动视图 ViewCompat.setNestedScrollingEnabled()
  • 但在 Android L 设备下它不能滚动

标签: android scrollview android-nestedscrollview


【解决方案1】:

我进行了大量搜索并找到了自己的解决方案!!! 我为这段代码感到高兴并且工作正常

<android.support.v4.widget.NestedScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    android:fillViewport="true">

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多