I am creating a listiview programmatically. I keep a divider between listview elements. I wish to keep a transparent divider because I have a background image to be shown. I
@kusi if you have not setContentView(R.layout.yourlayout); then you should have to declare it and then in that layout file you have to declare this ListView
note that you must have to set id of this listview as android:id="@android:id/list" in case you have extends ListActivity in your Activity Class.