Add missing space to record header collab/drizea/android
authorDan Wells <dbw2@calvin.edu>
Tue, 26 Mar 2013 20:42:27 +0000 (16:42 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 26 Mar 2013 20:42:27 +0000 (16:42 -0400)
Also, while we are at it, make it part of strings.xml.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/Android/res/values/strings.xml
Open-ILS/src/Android/src/org/evergreen/android/utils/ui/BasicDetailsFragment.java

index f968b05..cf4e7a1 100644 (file)
@@ -69,6 +69,7 @@
     <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>
index b5be7a9..9944c98 100644 (file)
@@ -282,7 +282,7 @@ public class BasicDetailsFragment extends Fragment {
             }
         });
 
-        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);