I have a listview with some items. When clicking an item from this list, I have another activity with a new listview which will show some informations abaut the item which was clicked.
the second list view will not open quickly and the user have to wait a couple of seconds and I would like to add a ProgressBar circle in the first ListView near the item which was clicked.
How can I do this? I am using custom adapters for my lists.
I have this code to be executed in background:
final ListView lv3 = (ListView) findViewById(R.id.SubmissionLogsTable);
int prePosition = getIntent().getIntExtra("position", 1);
ArrayList<SubmissionLog_Database> submissionLogs = GetSubmissionLogs(prePosition);
lv3.setAdapter(new SubmissionLogListAdapter(this,submissionLogs));