mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Show sequence numbers in the background as images load in list
Idea from ragesoss
This commit is contained in:
parent
6e3ee460a6
commit
48b292ed25
2 changed files with 10 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ public class ContributionsListFragment extends SherlockFragment {
|
|||
ImageView imageView = (ImageView)view.findViewById(R.id.contributionImage);
|
||||
TextView titleView = (TextView)view.findViewById(R.id.contributionTitle);
|
||||
TextView stateView = (TextView)view.findViewById(R.id.contributionState);
|
||||
TextView seqNumView = (TextView)view.findViewById(R.id.contributionSequenceNumber);
|
||||
|
||||
Contribution contribution = Contribution.fromCursor(cursor);
|
||||
|
||||
|
|
@ -66,6 +67,7 @@ public class ContributionsListFragment extends SherlockFragment {
|
|||
}
|
||||
|
||||
titleView.setText(Utils.displayTitleFromTitle(contribution.getFilename()));
|
||||
seqNumView.setText(String.valueOf(cursor.getPosition() + 1));
|
||||
switch(contribution.getState()) {
|
||||
case Contribution.STATE_COMPLETED:
|
||||
stateView.setText("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue