ConstraintLayout layout_marginBottom 无效
可能是因为您设置了其他属性导致了此问题。请检查以下几点:
-
检查您的 ConstraintLayout 是否有足够的空间来放置您的视图。如果您的视图没有足够的空间,则可能会将视图裁剪或隐藏。
-
检查您是否已将其他属性设置为与 layout_marginBottom 冲突。例如,如果您使用了 android:layout_gravity="bottom" 或 android:layout_alignParentBottom="true",则可能会导致 layout_marginBottom 失效。
-
检查您的视图是否具有足够的高度以容纳 layout_marginBottom 的值。如果您的视图高度不足,那么即使您设置了 layout_marginBottom,也不会有任何效果。
如果您仍然遇到问题,请提供更多细节或代码以帮助我们更好地了解您的情况。
原文地址: https://www.cveoy.top/t/topic/g62L 著作权归作者所有。请勿转载和采集!