Hi,
I'm just trying to set the content of a List View from a String[]
array.
and i tried using the ArrayAdapter to set the List Adapter. as...
setListAdapter(new ArrayAdapter<String>(this,R.layout.mycustomlayout,
R.id.content_text_view, list);
where list is my String[] array.
mycustomlayout file is as follows....
<LinearLayout
android:orientation="Vertical"
.............
>
<TextView
android:id="@+id/listtitle"
...................
/>
<TextView
android:id="@+id/list_intro"
.................
/>
<TextView
android:id="@+id/content_text_view"
.......
/>
Do tell me what i'm doing wrong.
I seem to be getting a nullpointerexception in the above mentioned
line in my code.
Thanks....
Shrikanth
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---