Also, while we are at it, make it part of strings.xml.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
<string name="title_book_bags">Book bags</string>
<string name="search_result_text"> Search result :</string>
<string name="renew_button">renew</string>
+ <string name="record_of">Record %1$d of %2$d</string>
<!-- Search Details View -->
<string name="show_more_text">Show More...</string>
<string name="preference_notifications_title">Notification settings</string>
-</resources>
\ No newline at end of file
+</resources>
}
});
- record_header.setText("Record " + position + "of " + total);
+ record_header.setText(String.format(getString(R.string.record_of), position, total));
titleTextView.setText(record.title);
authorTextView.setText(record.author);