Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old July 16th, 2009, 12:16 AM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using a ListView in a ScrollView

Right now I have a design that I think would be served best by using a ListView inside of a ScrollView, but apparently that isn't supposed to be done.

I want something that will look like this.

<TEXT>
<LOOOOONG TEXT>
<list of items generated at runtime>

I already have code written to generate the list of items as a ListView, because I use it that way elsewhere in my app, but since this screen has long text above it sometimes the list gets cut off.

If I use a ScrollView to scroll through the long text, the ListView breaks.

Is there anything I can do?

ElPresPufferfish is offline  
Reply With Quote
Sponsors
Old February 20th, 2010, 02:34 PM   #2 (permalink)
New Member
 
Join Date: Dec 2009
Posts: 9
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Exactly the same problem and need help too..
Profete162 is offline  
Reply With Quote
Old July 19th, 2010, 09:03 AM   #3 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Listview inside Scrollview

Your problem is very common, I'm with the same problem here.

U
nfortunately, there is an UNsolved issue with ListView inside a ScrollView (and Google knows it), see here (Layout Problem Listview in Scrollview - Android Beginners | Google Groups), here (Android ScrollView layout problem - Stack Overflow), and here (Scrolling with Multiple ListViews for Android - Stack Overflow), none of all solutions provided could resolve this issue.

They say that it's your problem, you never could put listView inside a scrollView, but there is not NONE workaround of this problem coming from google yet, besides third providers solution's does not works always...

Anyone already has this problem?
carlosmacieljrpe is offline  
Last edited by carlosmacieljrpe; July 19th, 2010 at 09:07 AM. Reason: layout problems
Reply With Quote
Old July 19th, 2010, 02:24 PM   #4 (permalink)
cp1
Member
 
Join Date: Apr 2010
Posts: 328
 
Device(s):
Thanks: 12
Thanked 29 Times in 25 Posts
Default

Can you set it so that your text / long text only take up the first half of the screen? Then you can scroll that and scroll the list below it.
cp1 is offline  
Reply With Quote
Old July 20th, 2010, 12:07 PM   #5 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply cp1. The problem also appear when you have a lot of components on screen and in the end one ListView. This is the my problem. I could not change the screen layout.

Att,

Carlos Maciel
carlosmacieljrpe is offline  
Reply With Quote
Old December 8th, 2010, 02:49 AM   #6 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I used this solution - Ore Ni Makasero: Android: put ListView in a ScrollView

Works for me!
Nex_otaku is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Android Scrollview problem in listview siddaiah Application Development 3 September 22nd, 2010 02:16 AM
single line textview in a scrollview Leolicos Application Development 2 August 6th, 2010 02:46 PM
ListView purnachandrarao Developer 101 1 July 22nd, 2010 07:46 AM
Custom View inside ScrollView jshailes Application Development 1 April 19th, 2010 06:08 PM
ImageView within ScrollView, Height problem JoshKraker Application Development 1 December 17th, 2009 09:40 PM



All times are GMT -5. The time now is 12:19 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo