[android-developers] Re: ListView in ScrollView

2008-06-27 Thread kelvin
Oops. That was meant to be in response to Romain's message. Mark, yea, the Spinner control doesn't really go with the UI effect that I'm attempting to accomplish, but again, thanks for the time. On Jun 27, 12:12 pm, kelvin <[EMAIL PROTECTED]> wrote: > I have thought about using a single ListVie

[android-developers] Re: ListView in ScrollView

2008-06-27 Thread Romain Guy
Spinner has changed dramatically since M5. It now behaves more like a combo box on a desktop. When you click it, it shows a ListView in a popup window on top of the activity. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[android-developers] Re: ListView in ScrollView

2008-06-27 Thread kelvin
I have thought about using a single ListView, but unfortunately it doesn't really go with my "design" such as it is. I haven't looked into what it'd take to do what you're saying with an Adapter-backed LinearLayout, but that sounds what exactly like what I need. I can hopefully figure it out, bu

[android-developers] Re: ListView in ScrollView

2008-06-27 Thread Mark Murphy
> Thanks for the response. Yea, I probably wasn't clear. I actually > don't care about the scrollability since yes, I am in a ScrollView. I > DO care about the AdapterView characteristics. I am using the > ScrollView because I have a number of other views in the activity > besides the ScrollVi

[android-developers] Re: ListView in ScrollView

2008-06-27 Thread Romain Guy
Have you thought about adding your other elements in the ListView as headers and footers instead? This will give you an efficient "single page" scrolling ListView with all of your items. You could also easily populate a LinearLayout from an adapter. All you need is to set change listeners on the

[android-developers] Re: ListView in ScrollView

2008-06-27 Thread kelvin
Thanks for the response. Yea, I probably wasn't clear. I actually don't care about the scrollability since yes, I am in a ScrollView. I DO care about the AdapterView characteristics. I am using the ScrollView because I have a number of other views in the activity besides the ScrollView and I a

[android-developers] Re: ListView in ScrollView

2008-06-27 Thread kelvin
On Jun 27, 11:44 am, "Romain Guy" <[EMAIL PROTECTED]> wrote: > Why would you do it this way? ListView will already load and display > as many elements as it can. You are just forcing ListView to work in a > way that's it is not meant for and, worse, you are forcing it to work > in a very inefficie

[android-developers] Re: ListView in ScrollView

2008-06-27 Thread Mark Murphy
Maybe I'm misreading your message, but I don't see where the ScrollView comes into play. You say you want to use ListView, because you want scrollability (which ListView has) and you want AdapterView characteristics (and ListView has AdapterView as an ancestor). So, just use a ListView. If I'm

[android-developers] Re: ListView in ScrollView

2008-06-27 Thread Romain Guy
> So I would like to have all the views in the ListView loaded and > displayed if possible. I've managed this by instantiating and > measuring each element inside of the ListView when onMeasure is called > on the ListView, adding them all up (and padding for dividers), and > setting the measured