开发者

ListView customize first cell

开发者 https://www.devze.com 2023-03-26 22:10 出处:网络
Can I have a List开发者_开发知识库View where I can customize the first cell, and then repeat the other cells with some other custom view. Any suggestions to set manually the first row and then set ada

Can I have a List开发者_开发知识库View where I can customize the first cell, and then repeat the other cells with some other custom view. Any suggestions to set manually the first row and then set adapter for other cells in different style. Can anyone help on this?


You can add header to your ListView. Use addHeaderView() method. If header doesn't fits your needs, read this nice explanation how to apply different layouts to different list items.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号