You can do that. A ListView does not have to have the @android:id/list
id, only when used in a ListActivity.

On Mon, Mar 23, 2009 at 4: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

--~--~---------~--~----~------------~-------~--~----~
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