It's good but i've to write your code differently:
ArrayList<String> array_list = renvoi_liste_recette_xml();
list.setAdapter(new ArrayAdapter<String>(this,
R.layout.liste,array_list));
But an error stay in the part "list.setAdapter" (list cannot be
resolve)

I've an other question in my XML file (which name is liste.xml here)
what i've to put for display my array ? A text view or nothing ?
Thanks again
Sweet

On 9 sep, 19:02, "Yusuf Saib (T-Mobile USA)" <yusuf.s...@t-mobile.com>
wrote:
> I'm not sure how you want to display a list of lists. For that you
> might want some kind of tree widget, not a list view. But if you want
> to display a list of string, use setAdapter():
>
>     list.setAdapter(new ArrayAdapter<String>(this,
> android.R.layout.list_item, array_list));
>
> Does that answer your question or did you have something else in mind?
>
> Yusuf Saib
> Android
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to