[Android] Video Player: Use StatusBar after Android 4.2

Thomas Guillem git at videolan.org
Thu Oct 2 05:36:23 CEST 2014


vlc-ports/android | branch: master | Thomas Guillem <thomas.guillem at gmail.com> | Tue Sep 30 18:42:06 2014 +0200| [1383c66ac03a061e6114b41bf9ccde63a47b16a0] | committer: Edward Wang

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=1383c66ac03a061e6114b41bf9ccde63a47b16a0
---

 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=1383c66ac03a061e6114b41bf9ccde63a47b16a0


More information about the Android mailing list