简体   繁体   English

如何在ListView中的第一项上添加上边距?

[英]How to add top margin on first item in the ListView?

This is a pretty simple question. 这是一个非常简单的问题。 I would like to add a top margin to the first item in my ListView. 我想在ListView的第一项中添加一个上边距。 Is that possible? 那可能吗?

只需将topPaddingandroid:clipToPadding="false"到ListView

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM