In my application, I use SDK
of Parse.com
. The SDK provides a method for loading API objects in assíncrona
and in another thread
named fetchInBackground()
. Within getView()
of my adapter
the following happens:
ParseObject driver = object.getParseObject("object");
driver.fetchInBackground(new GetCallback<ParseObject>() {
@Override
public void done(ParseObject parseObject, ParseException e) {
if(e==null){
item.name.setText(parseObject.getString("name"));
notifyDataSetChanged();
}
}
});
I'm trying to set the name in item.name
which is a TextView
, but the name only appears when I roll the list and return, in case when I reload the item.