View view = getListView().getAdapter().getView(0, null, null);
That won't work... getView() is called by the system when it wants to add
a view to be displayed in your listview. What you are doing here is
essentially creating a new View and then not doing anything with it.
What you should be
I have a listview using a custom cursoradapter to fill the listview.
The row.xml
code
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=match_parent
android:layout_height=match_parent
2 matches
Mail list logo