Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-Android
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
5e67c4e9
Commit
5e67c4e9
authored
Jun 14, 2018
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set video player accessibility descriptions
parent
fd9be6cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
vlc-android/res/layout/audio_player.xml
vlc-android/res/layout/audio_player.xml
+5
-4
vlc-android/res/layout/player_hud.xml
vlc-android/res/layout/player_hud.xml
+10
-1
vlc-android/res/values/strings.xml
vlc-android/res/values/strings.xml
+2
-0
No files found.
vlc-android/res/layout/audio_player.xml
View file @
5e67c4e9
...
...
@@ -156,7 +156,7 @@
android:layout_gravity=
"center"
android:layout_marginRight=
"@dimen/default_margin"
android:layout_marginEnd=
"@dimen/default_margin"
android:contentDescription=
"@string/p
ause
"
android:contentDescription=
"@string/p
lay
"
android:focusable=
"true"
android:scaleType=
"fitXY"
android:onClick=
"@{fragment::onPlayPauseClick}"
...
...
@@ -253,6 +253,7 @@
android:layout_marginRight=
"@dimen/default_margin"
android:layout_marginEnd=
"@dimen/default_margin"
android:text=
"@string/time_0"
android:contentDescription=
"@string/length"
android:textSize=
"12sp"
/>
<ImageView
...
...
@@ -264,7 +265,7 @@
app:layout_constraintTop_toTopOf=
"@+id/play_pause"
android:layout_marginLeft=
"@dimen/default_margin"
android:layout_marginStart=
"@dimen/default_margin"
android:contentDescription=
"@string/shuffle"
android:contentDescription=
"@string/shuffle
_title
"
android:focusable=
"true"
android:scaleType=
"fitXY"
android:src=
"?attr/ic_shuffle"
...
...
@@ -279,7 +280,7 @@
app:layout_constraintTop_toTopOf=
"@+id/play_pause"
android:layout_marginRight=
"@dimen/default_margin"
android:layout_marginEnd=
"@dimen/default_margin"
android:contentDescription=
"@string/repeat"
android:contentDescription=
"@string/repeat
_title
"
android:focusable=
"true"
android:onClick=
"@{fragment::onRepeatClick}"
android:scaleType=
"fitXY"
...
...
@@ -292,7 +293,7 @@
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toRightOf=
"@+id/previous"
app:layout_constraintRight_toLeftOf=
"@+id/next"
android:contentDescription=
"@string/p
ause
"
android:contentDescription=
"@string/p
lay
"
android:focusable=
"true"
android:scaleType=
"fitXY"
android:onClick=
"@{fragment::onPlayPauseClick}"
...
...
vlc-android/res/layout/player_hud.xml
View file @
5e67c4e9
...
...
@@ -92,6 +92,7 @@
android:src=
"@drawable/ic_lock_circle"
android:scaleType=
"center"
android:onClick=
"@{(v) -> player.toggleLock()}"
android:contentDescription=
"@string/lock"
android:focusable=
"true"
/>
<ImageView
...
...
@@ -103,6 +104,7 @@
android:src=
"@drawable/ic_audiosub_circle"
android:scaleType=
"center"
android:onClick=
"@{player::onAudioSubClick}"
android:contentDescription=
"@string/tracks"
android:focusable=
"true"
/>
<ImageView
...
...
@@ -116,6 +118,7 @@
android:scaleType=
"center"
android:onClick=
"@{(v) -> player.previous()}"
android:src=
"@drawable/ic_playlist_previous_circle"
android:contentDescription=
"@string/previous"
android:visibility=
"gone"
/>
<ImageView
...
...
@@ -128,6 +131,7 @@
android:longClickable=
"true"
android:scaleType=
"center"
android:src=
"@drawable/ic_rewind_circle"
android:contentDescription=
"@string/playback_rewind"
android:visibility=
"gone"
/>
<ImageView
...
...
@@ -140,7 +144,8 @@
android:scaleType=
"fitCenter"
android:focusable=
"true"
android:onClick=
"@{(v) -> player.doPlayPause()}"
android:onLongClick=
"@{player::toggleLoop}"
/>
android:onLongClick=
"@{player::toggleLoop}"
android:contentDescription=
"@string/play"
/>
<ImageView
android:id=
"@+id/player_overlay_forward"
...
...
@@ -152,6 +157,7 @@
android:src=
"@drawable/ic_forward_circle"
android:scaleType=
"center"
android:focusable=
"true"
android:contentDescription=
"@string/playback_forward"
android:visibility=
"gone"
/>
<ImageView
...
...
@@ -165,6 +171,7 @@
android:scaleType=
"center"
android:focusable=
"true"
android:onClick=
"@{(v) -> player.next()}"
android:contentDescription=
"@string/next"
android:visibility=
"gone"
/>
<ImageView
...
...
@@ -176,6 +183,7 @@
android:src=
"@drawable/ic_more_circle"
android:scaleType=
"center"
android:onClick=
"@{(v) -> player.showAdvancedOptions()}"
android:contentDescription=
"@string/advanced"
android:focusable=
"true"
/>
<ImageView
...
...
@@ -186,6 +194,7 @@
android:src=
"@drawable/ic_crop_circle_o"
android:scaleType=
"center"
android:onClick=
"@{(v) -> player.resizeVideo()}"
android:contentDescription=
"@string/resize"
android:focusable=
"true"
/>
</LinearLayout>
</RelativeLayout>
...
...
vlc-android/res/values/strings.xml
View file @
5e67c4e9
...
...
@@ -603,4 +603,6 @@
<string
name=
"audio_digital_output_disabled"
>
Audio Digital Output disabled
</string>
<string
name=
"audio_digital_title"
>
Digital audio output (passthrough)
</string>
<string
name=
"audio_task_removed_title"
>
Stop playback when application is dismissed
</string>
<string
name=
"playback_rewind"
>
Rewind
</string>
<string
name=
"playback_forward"
>
Fast forward
</string>
</resources>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment