[Android] Video Player: Use StatusBar after Android 4.2

Thomas Guillem git at videolan.org
Thu Oct 2 18:53:46 CEST 2014


vlc-ports/android | branch: tv | Thomas Guillem <thomas.guillem at gmail.com> | Tue Sep 30 18:42:06 2014 +0200| [6778997a46e2ded38950cbd538dd49ce52e9e5d4] | committer: Geoffrey Métais

Video Player: Use StatusBar after Android 4.2

Android 4.2 (API17) adds fullscreen support, and gives the possibility to
show/hide the StatusBar without any resize.

Replace player_overlay_header with android StatusBar and ActionBar.

 - The StatusBar will display the date, the battery, the connectivity and the
   notifications.

 - The ActionBar will display the Video title, using a custom layout that looks
   like the previous overlay header. It's important to use The ActionBar and
   not a view in the player layout since the show/hide animations of the
   ActionBar is synchronized with the StatusBar.

Signed-off-by: Edward Wang <edward.c.wang at compdigitec.com>

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

 vlc-android/res/layout-v17/action_bar_layout.xml   |   17 +++++
 .../res/layout-v17/player_overlay_header.xml       |    5 ++
 .../player_remote_control_overlay_header.xml       |    5 ++
 vlc-android/res/values-v17/styles.xml              |   10 +++
 .../vlc/gui/video/VideoPlayerActivity.java         |   78 ++++++++++++++++----
 5 files changed, 100 insertions(+), 15 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commitdiff;h=6778997a46e2ded38950cbd538dd49ce52e9e5d4


More information about the Android mailing list