[Android] res: Kill one hardcoded string warning

Edward Wang git at videolan.org
Sun Sep 9 03:43:39 CEST 2012


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sat Sep  8 21:40:39 2012 -0400| [00d02040c2e32c39e352fb095878377fa9cc6964] | committer: Edward Wang

res: Kill one hardcoded string warning

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=00d02040c2e32c39e352fb095878377fa9cc6964
---

 vlc-android/res/layout-land/audio_player.xml |    2 +-
 vlc-android/res/layout/audio_player.xml      |    3 +--
 vlc-android/res/layout/audio_player_qvga.xml |    3 +--
 vlc-android/res/layout/player.xml            |    4 ++--
 vlc-android/res/values/strings.xml           |    1 +
 5 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/vlc-android/res/layout-land/audio_player.xml b/vlc-android/res/layout-land/audio_player.xml
index 8cba6b1..2e04229 100644
--- a/vlc-android/res/layout-land/audio_player.xml
+++ b/vlc-android/res/layout-land/audio_player.xml
@@ -159,7 +159,7 @@
                 android:layout_marginBottom="10dip"
                 android:clickable="true"
                 android:onClick="onSpeedLabelClick"
-                android:text="1.00x"
+                android:text="@string/speed_placeholder"
                 android:textSize="24dp" />
 
         </LinearLayout>
diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index 8e604ab..af4df2d 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -56,7 +56,7 @@
 
             <TextView
                 android:id="@+id/current_speed"
-                android:text="1.00x"
+                android:text="@string/speed_placeholder"
                 android:layout_height="60dip"
                 android:layout_width="60dip"
                 android:layout_marginTop="10dip"
@@ -186,4 +186,3 @@
             android:onClick="onNextClick" />
     </LinearLayout>
 </LinearLayout>
-
diff --git a/vlc-android/res/layout/audio_player_qvga.xml b/vlc-android/res/layout/audio_player_qvga.xml
index 3ca71c0..136738c 100644
--- a/vlc-android/res/layout/audio_player_qvga.xml
+++ b/vlc-android/res/layout/audio_player_qvga.xml
@@ -62,7 +62,7 @@
                 android:layout_height="wrap_content"
                 android:clickable="true"
                 android:onClick="onSpeedLabelClick"
-                android:text="1.00x"
+                android:text="@string/speed_placeholder"
                 android:textSize="20dp" />
 
         </LinearLayout>
@@ -179,4 +179,3 @@
             android:onClick="onNextClick" />
     </LinearLayout>
 </LinearLayout>
-
diff --git a/vlc-android/res/layout/player.xml b/vlc-android/res/layout/player.xml
index cc0586a..0039d17 100644
--- a/vlc-android/res/layout/player.xml
+++ b/vlc-android/res/layout/player.xml
@@ -226,11 +226,11 @@
                     android:id="@+id/player_overlay_speed"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
-                    android:text="1.00x"
+                    android:text="@string/speed_placeholder"
                     android:textSize="22dip"
                     android:clickable="true" />
             </LinearLayout>
         </LinearLayout>
     </org.videolan.vlc.widget.SlidingPanel>
 
-</FrameLayout>
\ No newline at end of file
+</FrameLayout>
diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index 7c9d0d3..67d956c 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -102,6 +102,7 @@
     <string name="error_message_is">The error message is (please mention this when debugging):\n</string>
     <string name="playback_speed">Playback speed</string>
     <string name="time_0" translatable="false">0:00</string>
+    <string name="speed_placeholder" translatable="false">1.00x</string>
 
     <!-- About -->
     <string name="app_name_full">VLC for Android™</string>



More information about the Android mailing list