This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes listview not displaying contents properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "listview not displaying contents properly" Watch "listview not displaying contents properly" New topic
Author

listview not displaying contents properly

Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
hello.
when i add element it is not getting displayed in the listview....i want to display an image in image for the particular string value....the size of string is same as size of images array..it should display the image for the string value...but here it is displaying the image i select over other values created earlier....this is the problem only when i load a listview and then try adding record...it gives unexpected output

please suggest...any idea
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
the adapter class which im calling from list activity is
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
at line 76 i hav printed
System.out.println("getView " + position + " " + convertView);
which gives like following in logcat

iam really not unserstanding this...
please suggest if anyone get through

thankyou in advance
 
Consider Paul's rocket mass heater.
 
subject: listview not displaying contents properly
 
Similar Threads
how to display an image in a jsp through ajax
how to solve arrayindexoutofbound exception
How to maintain Aspect Ratio of Image using struts2
image not displaying on page
retrieve size of an image