how to create listview with categories/segments?

i want to create listview in android with following scenario

Heading Category 1

item 1 item 2 item 3

Heading Category 2

item 1 item 2

Heading Category 3 item 1

and so on.

any one guide me how to achieve this? any help would be appreciated.


I think you want headers and items inside that. Below link should help you for this.

It provides you header and items under it. You can ofcourse use expandable list too as given by Ozone.

A part of the answer is there :

see also there : Android listview groups

I believe is what you are looking for. Check out this sample: samples/android-9/ApiDemos/src/com/example/android/apis/view/ in your Android SDK.

Need Your Help

A simple ndk project using the Eigen library and jni

android android-ndk jni

So today with some help from the people on here I put together a simple android app that uses the ndk. I imported the eigen library right into the jni folder that I created in the source tree and t...

Integrating Open ID and also leveraging Microsoft HealthVault

openid healthvault

I've seen several articles/questions regarding Open ID integration but I'm curious if I integrate this into my site and then try to integrate with Microsoft HealthVault which accepts live id or ope...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.