ListView with sections problem :(

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

ListView with sections problem :(

Postby supersk » Fri Jan 15, 2010 9:40 pm

Hi all,

I'm trying to build a nice listview that can have sections in it with title. something like:

Book 1
chapter1
chapter2
chapter3
..
chapter50
Book 2
chapter 1
chapter 2
..
..

And I'm not able to add the TextViews that should cut the listview into parts.
I tried to make a linear layout that had :
textview
listview
textview
listview

but it doesnt scroll between them(only inside each listview).
I tried to put listviews into scrollview but that didnt work either(YES I KNOW YOU SHOULD NEVER...!?)
i tried to make a custom row and adapter and put in each cell a title and remove/add it on desire but when
i did that the element containing the title was clickable and the title was an element, which is not good for me.

Any ideas?

supersk
supersk
Freshman
Freshman
 
Posts: 6
Joined: Tue Dec 08, 2009 4:34 pm

Top

Postby qlimax » Sat Jan 16, 2010 3:10 am

hi,
have you tried somthing like this?
http://jsharkey.org/blog/2008/08/18/sep ... ndroid-09/


thx jeff

bye
¯`·.¸¸.><((((º>¯`·.¸¸. ><((((º>
User avatar
qlimax
Master Developer
Master Developer
 
Posts: 271
Joined: Mon Aug 31, 2009 10:54 am
Location: Swiss

Postby supersk » Sat Jan 16, 2010 6:02 pm

Thanks Jeff,

I did try it now and its exactly what i needed:)

supersk
supersk
Freshman
Freshman
 
Posts: 6
Joined: Tue Dec 08, 2009 4:34 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests