Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个自定义列表。我想放入高度为 30 像素的自定义列表项。但是当我这样做时,它们出现在 50 px 左右。无论我做什么,自定义列表项的高度都无法降低到 30 像素。
是否自定义列表项的高度固定为某个最小高度?
API告诉将高度设置为小于50的值时还有其他问题。所以应该有可能......但我也无法设置更小的高度!也许那是一个错误?
原来这是预启动 SDK 的问题。它建议改用 ListView,并使用 CustomItem 创建项目。很好用。