today i have a question i was wondering about. Let's say that i have a listview which shows only a list of text. The listview layout is a simple list view containing only a Textview.
Now, when i show the result, the first view, i want to show is a textview with let's say Image (i think the layout should change here). After that, it will show the regular textview. You see, in applications like news they show the first news with big pictures and text, and the rest of the list with only texts. Can you give me some idea on that ? or do i have to make it seperate ?
Thank you. my simple adapter->
@Override
public void onPostExecute(Void result) {
super.onPostExecute(result);
// Dismiss the progress dialog
if (pDialog.isShowing())
pDialog.dismiss();
// Updating parsed JSON data into ListView
ListAdapter adapter = new SimpleAdapter(getActivity(), postList, R.layout.list_item,
new String[] { POST_TITLE,POST_CONTENT, GUID },
new int[] {R.id.email, R.id.mobile, R.id.guid });
newsList.setAdapter(adapter);
}