在Safari和Chrome for Mac等浏览器中,当您在页面开始时尝试向上滚动时,仍然可以向上滚动一点,但会遇到阻力,当您松开时页面会反弹回来。
我的页面顶部有一个导航栏。当用户向上滚动超过页面顶部时,导航栏将与页面的其余部分一起向下移动,就像在中一样。如何才能使导航栏即使在滚动过程中也停留在页面的顶部?
为了实现导航栏ala ,我有以下布局配置:
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<!-- This is the Lower Layer hosting the navbar -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="