ArrayAdapter Help?
        Posted  
        
            by 
                ramsbh
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ramsbh
        
        
        
        Published on 2010-12-21T08:42:01Z
        Indexed on 
            2010/12/21
            8:54 UTC
        
        
        Read the original article
        Hit count: 298
        
android
Hi i want to display a list view in my application. Each row should contains a text and an image. i have used ArrayAdapter to display this, but how to insert an image after the text.Please help ?
String lvr[]={"Android","iPhone","BlackBerry","AndroidPeople"};
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
list1 = (ListView) findViewById(R.id.cg_listview1);
list1.setAdapter(new ArrayAdapter<String>(this,R.layout.alerts , lvr));
Here alerts is my layout contains only textView.
© Stack Overflow or respective owner