如何在listview中分隔項目

[英]How to Separate items in listview


Hello I am creating a App that fetches articles from a blog and I want to show titles in a listview (Cards UI) , so far I have added background design necessary for this Task.

您好我正在創建一個從博客中獲取文章的應用程序,我想在列表視圖(卡片UI)中顯示標題,到目前為止,我已添加了此任務所需的背景設計。

What I want to Achieve:

我想要實現的目標:

image

What I have Acheived:

我的成就:

image2

so , How do I separate out listview like in the image?

那么,如何在圖像中分離出listview?

1 个解决方案

#1


1  

You need to specify a null background for your ListView, and a 9patch image (card) background for your item views. Combining this with a significant dividerHeight will give you the desired result.

您需要為ListView指定空背景,並為項目視圖指定9patch圖像(卡片)背景。將其與顯着的dividerHeight相結合將為您提供所需的結果。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2014/05/26/3b4bfbaecef4fe9569066bd36f5c58.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com