![](/img/trans.png)
[英]Android RecyclerView smooth scroll to view that's animating their height
[英]Achieving smooth scroll with recyclerview android design library
我希望在不實現自定義線性布局管理器的情況下使用android布局實現順暢的操作。 我的問題是,僅通過結合android設計庫和nestedscrollview即可實現。
<ParentLayout>
Textview
Imageview
Gallery(viewpager)
Recyclerview
Textarea
Textview
Textview
</ParentLayout>
我希望在整個布局中實現平滑滾動。 如果我在recyclview的最后一個元素,則滾動應該繼續進行parentlayout。 如何做到這一點以及應使用哪個父布局?
根據我對您需求的了解,您不需要嵌套的nestedscrollview。 只需將您的recyclerview放置在父滾動視圖中,就可以了
如果您提供要實現的代碼示例或線框,則幫助會更容易:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.