Hi Mark Even if it's the same like what you said, I guess I have to make my own getView(int position, View convertView, ViewGroup parent)
http://developer.android.com/intl/fr/guide/samples/ApiDemos/src/com/example/android/apis/view/List14.html Do you think its just possible to change severale thinks on the List14.java or I Have to create my new own getView(...). I explain you what I want. I have some string and I want to introduce it into a ArrayAdapter. And I want to introduce also some different icon with that string like I want. Could you help me to know is it possible ?? my following starting (just string) code: ************************************************************************************************************************************************** setContentView(R.layout.content_tab_voicemail); ListView list=(ListView) findViewById (R.id.ListVoicemail); ArrayList<String> mStrings = new ArrayList<String>(); ArrayAdapter<String> mAdapter = new ArrayAdapter<String> (this,android.R.layout.simple_list_item_1, mStrings); // Récupérer les infos pour chaque message ex: Date for(int i=0 ; i < oClient.getnbMess() ; i++) { mAdapter.add(oClient.getMsg(i).getDate()); } list.setAdapter(mAdapter); ****************************************************************************************************************************************************** This code just add string into mAdapter Thanks Dany On Aug 7, 3:55 pm, Mark Murphy <[email protected]> wrote: > Dany BREARD wrote: > > I want to know if its possible to make a listview (text+icon) on a > > class extends Activity and not on a class extends ListActivity. > > Yes. You will need to call findViewById() to get your ListView, rather > than call getListView(). Similarly, there will be minor changes if you > want to be notified when the user clicks or selects an item in the list. > Otherwise, it should be the same. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, $35/Year --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

