简体   繁体   English

如何自定义ListView Android

[英]How to custom ListView android

I would like to know , if it's possible , if i can have a custom ListView which looks like an array. 我想知道,如果可能的话,我是否可以拥有一个看起来像数组的自定义ListView。 And if it's possible , how i begin ? 如果可能的话,我该如何开始? i create other layout? 我创建其他布局? listeview ? listeview? I put the link of the mockup of the listView. 我把listView的模型的链接。 I hope that you understand my question (it's not to hard =)) 希望您理解我的问题(不难=)

Link of the image : Click here 图片链接: 点击这里

Of course, at the end, i will get data with webservice (but it's ok for me =)) 当然,最后,我将通过Web服务获取数据(但对我来说是可以的=))

Weolcome to SO, of course it is possible to create your own ListView. 欢迎使用SO,当然可以创建自己的ListView。 You just have to implement a so called custom ArrayAdapter and a Layout which would represent a row in your ListView. 您只需要实现一个所谓的custom ArrayAdapter和一个Layout,它将代表ListView中的一行。 Have a look at this great Site, with a tutorial with exactly what you are looking for-. 看看这个很棒的网站,并提供包含您所寻找内容的教程。

VOGELLA TUTORIAL VOGELLA补习

Do not be scared of the long code, after the first tries it should be very clear what to do! 不要害怕长代码,在第一次尝试之后应该很清楚该怎么做!

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

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