Hey,

Thank you for your answers!
Indeed I am using a ListActivty..
The problem was I couldn't click on my listviews when i made several
listviews..

But I made onclicklisteners for every listview and now it is working!

THX

On Mar 23, 7:56 pm, Romain Guy <[email protected]> wrote:
> > And it's a bit off topic, but yes, a ListView handles scrolling, which
> > is messed up when in a ScrollView, but I really would have liked my
> > list to be at the bottom of an interface that happened to scroll off
> > the screen, just like this scrollable text box I'm typing in is at the
> > bottom of a web page, which also happens to be scrollable. It seems
> > ridiculous to me that that can't be done. But that is my side rant
> > that belongs in another discussion, I guess.
>
> ListView was not meant for that. Just don't use a ListView.
>
>
>
>
>
> > On Mar 23, 12:54 pm, Romain Guy <[email protected]> wrote:
> >> > Short Answer: I don't think you can
>
> >> Yes you can.
>
> >> > ListActivity hosts a ListView object that can be bound to different
> >> > data sources. -- Note the singular "a", as in "one"
>
> >> That's with a *ListActivity*. You can use a regular Activity instead.
> >> And actually even with a ListActivity you can use several ListViews.
>
> >> > I've had my own problems with ListViews and ListActivitys, as well,
> >> > including not being able to put a ScrollView around it and still have
> >> > the ListView scroll. Instead, the ListView now permanently has to take
> >> > up a chunk of the screen real estate, and everything else has to be
> >> > wrapped in a ScrollView on another section of the screen. Oh well.
>
> >> A ListView already handles scrolling, do not put it in a ScrollView.
> >> And it has nothing to do with ListActivity.
>
> >> > On Mar 23, 6:44 am, Wouter <[email protected]> wrote:
> >> >> Hey,
>
> >> >> I want to have multiple listviews in my activity. Every listview will
> >> >> have a different adapter and every item in the listview must be
> >> >> clickable (other actions for every listview).
>
> >> >> So my problem now is that I can't create multiple clickable
> >> >> listviews.
> >> >> I have one listview like this <ListView android:id="@android:id/
> >> >> list"..
> >> >> and the other listview looks like this <ListView android:id="@+id/
> >> >> flightList"
>
> >> >> The first listview looks like this in my activity
> >> >> hotelList = (ListView)findViewById(android.R.id.list);
>
> >> >> the second:
> >> >>  listView = (ListView) findViewById(R.id.flightList);
>
> >> >> I can click on the first list and it does what it has to do, but i
> >> >> cant do anything with the second list..
> >> >> probably because it hasn't the android:id/list declaration :(
>
> >> >> does someone knows how I can solve this problem or other suggestions
> >> >> how I can get multiple lists in 1 activity!
>
> >> >> Thank you,
>
> >> >> Wouter
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> [email protected]
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  All such questions should be posted on
> >> public forums, where I and others can see and answer them
>
> --
> Romain Guy
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to