[Android] AudioPlayerActivity: landscape contentDescriptions

Edward Wang git at videolan.org
Sun Nov 4 17:19:14 CET 2012


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Nov  4 10:44:19 2012 -0500| [c705b90810e78c0cca9e867a08c034ccd9235296] | committer: Edward Wang

AudioPlayerActivity: landscape contentDescriptions

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

 vlc-android/res/layout-land/audio_player.xml |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/layout-land/audio_player.xml b/vlc-android/res/layout-land/audio_player.xml
index 2e04229..bd19700 100644
--- a/vlc-android/res/layout-land/audio_player.xml
+++ b/vlc-android/res/layout-land/audio_player.xml
@@ -14,8 +14,10 @@
         <ImageView
             android:layout_width="wrap_content"
             android:layout_height="fill_parent"
+            android:contentDescription="@string/app_name"
             android:scaleType="centerInside"
             android:src="@drawable/header_logo" />
+
     </LinearLayout>
 
     <FrameLayout
@@ -67,7 +69,8 @@
             android:id="@+id/cover"
             android:layout_width="140dip"
             android:layout_height="140dip"
-            android:background="#00ffffff" />
+            android:background="#00ffffff"
+            android:contentDescription="@string/cover_art" />
 
         <LinearLayout
             android:layout_width="0dip"
@@ -136,6 +139,7 @@
                 android:layout_gravity="center_horizontal"
                 android:layout_marginTop="10dip"
                 android:background="#00000000"
+                android:contentDescription="@string/shuffle"
                 android:onClick="onShuffleClick"
                 android:scaleType="fitXY"
                 android:src="@drawable/ic_shuffle" />
@@ -147,6 +151,7 @@
                 android:layout_gravity="center_horizontal"
                 android:layout_marginTop="10dip"
                 android:background="#00000000"
+                android:contentDescription="@string/repeat"
                 android:onClick="onRepeatClick"
                 android:scaleType="fitXY"
                 android:src="@drawable/ic_repeat" />
@@ -177,6 +182,7 @@
             android:layout_width="60dip"
             android:layout_height="60dip"
             android:background="@drawable/ic_backward"
+            android:contentDescription="@string/previous"
             android:onClick="onPreviousClick" />
 
         <ImageButton
@@ -186,6 +192,7 @@
             android:layout_marginLeft="10dip"
             android:layout_marginRight="10dip"
             android:background="@drawable/ic_pause"
+            android:contentDescription="@string/pause"
             android:onClick="onPlayPauseClick" />
 
         <ImageButton
@@ -195,6 +202,7 @@
             android:layout_marginLeft="10dip"
             android:layout_marginRight="10dip"
             android:background="@drawable/ic_stop"
+            android:contentDescription="@string/stop"
             android:onClick="onStopClick" />
 
         <ImageButton
@@ -202,7 +210,9 @@
             android:layout_width="60dip"
             android:layout_height="60dip"
             android:background="@drawable/ic_forward"
+            android:contentDescription="@string/next"
             android:onClick="onNextClick" />
+
     </LinearLayout>
 
 </LinearLayout>
\ No newline at end of file



More information about the Android mailing list