I have to create a list view , with each item getting a separate icon along the right hand side. I have written a code , but its not working ? how do I proceed ? application cra
below some links are useful to for you same code as per your requirement....
http://www.androidhive.info/2012/02/android-custom-listview-with-image-and-text/
http://wptrafficanalyzer.in/blog/listview-with-images-and-text-using-simple-adapter-in-android/
http://android-example-code.blogspot.in/p/dynamic-custoized-list-view-in-android.html
http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/
OR
if (menuitems[0] != null) {
if(menuitems[0].equalsIgnoreCase("Availability")
{
icon.setImageResource(R.drawable.menu_availability);
// Set your another textview and another subtext here....
}
}
// Set another conditions also as per above code
Thanks