ConstraintLayout in Cardview adding white space

和自甴很熟 提交于 2019-12-04 12:32:54

I found a solution to my problem. In the TextView within the ConstraintLayout, I replaced android:layout_height="wrap_content"

with:

android:layout_height="0dp" app:layout_constraintHeight_default="wrap"

The layout worked as intended with that change to all the TextView within.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!