【问题标题】:Recyclerview Height cutoffRecyclerview 高度截止
【发布时间】:2020-06-03 18:53:06
【问题描述】:

这是我的布局结构:

<ScrollView
-height - match>
<CoordinatorLayout
-height - wrap>
<AppbarLayout
-height - wrap>
<CollapsingToolbarLayout
-height - wrap>
<ConstraintLayout>
//min height is set dynamically.
</ConstraintLayout>
</CollapsingToolbarLayout>
</AppbarLayout>
<RecyclerView
->scroll behaviour
->height-wrap/>
<CoordinatorLayout>
</ScrollView>

因为存在滚动视图,我无法在折叠工具栏布局中应用最小高度。有什么办法可以调整高度(这里我的回收站视图被截断了)

【问题讨论】:

    标签: android android-recyclerview android-coordinatorlayout android-appbarlayout


    【解决方案1】:

    将此属性添加到recylerview app:layout_constrainedHeight="true"

    查看以下内容了解更多详情 Last Item in recyclerview is cut off

    【讨论】:

    • 嘿约瑟夫尝试将高度更新为 'android:layout_height="0dp" '
    猜你喜欢
    • 2018-02-17
    • 2015-04-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多