Answer the question
In order to leave comments, you need to log in
How to fix error with getView() method in android?
There is a listView and its "children" have a picture and an inscription, in general, earlier in the getView method when I set the picture in this way:
if (title.getText() == "Text #1") {
//new ImgLoad().execute();
Picasso.with(retval.getContext()).load("http://i.imgur.com/DvpvklR.png").into(image_list_icon);
} else
if (title.getText() == "Text #2"){
Picasso.with(retval.getContext()).load("http://127.0.0.1:59777/smb/192.168.0.250/Files/1.jpg").into(image_list_icon);
}else
if (title.getText() == "Text #3"){
Picasso.with(retval.getContext()).load("http://127.0.0.1:59777/smb/192.168.0.250/Files/2.jpg").into(image_list_icon);
}else
if (title.getText() == "Text #4"){
Picasso.with(retval.getContext()).load("http://127.0.0.1:59777/smb/192.168.0.250/Files/3.jpg").into(image_list_icon);
}
if (title.getText() == lines_image.get(i)) {
Picasso.with(retval.getContext()).load(url_first + lines_image.get(i)).into(image_list_icon);
}
Answer the question
In order to leave comments, you need to log in
what are the suggestions?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question