Kodi Community Forum
auto hide/show lower nav bar. - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: Android Development (https://forum.kodi.tv/forumdisplay.php?fid=184)
+---- Thread: auto hide/show lower nav bar. (/showthread.php?tid=152232)

Pages: 1 2 3 4 5 6 7 8 9 10


RE: auto hide/show lower nav bar. - da-anda - 2013-01-18

(2013-01-18, 03:39)kemonine96 Wrote: Home Screen of XBMC
Image

Just as fyi - I don't have/see the upper infobar on my N10 (stock 4.2) when running a nightly apk.


RE: auto hide/show lower nav bar. - kemonine96 - 2013-01-18

(2013-01-18, 16:46)da-anda Wrote: Just as fyi - I don't have/see the upper infobar on my N10 (stock 4.2) when running a nightly apk.

I didn't see it either on my N7 with stock 4.2 or my A100 CM10. I think it is a bug with CM10.1 on the N7, I switched over to CM10.1 on my N7 before I was able to take the screen caps.

I was going to take a closer look at CM10.1 oddity after I get the hide functionality nailed down in the main area of the app.


RE: auto hide/show lower nav bar. - arcee - 2013-01-19

(2013-01-18, 16:53)kemonine96 Wrote:
(2013-01-18, 16:46)da-anda Wrote: Just as fyi - I don't have/see the upper infobar on my N10 (stock 4.2) when running a nightly apk.

I didn't see it either on my N7 with stock 4.2 or my A100 CM10. I think it is a bug with CM10.1 on the N7, I switched over to CM10.1 on my N7 before I was able to take the screen caps.

I was going to take a closer look at CM10.1 oddity after I get the hide functionality nailed down in the main area of the app.

FWIW... All my devices are on CM10.1, none of them show the status bar. That may be device-specific



RE: auto hide/show lower nav bar. - kemonine96 - 2013-01-19

(2013-01-19, 00:20)arcee Wrote: FWIW... All my devices are on CM10.1, none of them show the status bar. That may be device-specific

I figured it was something with the latest grouper CM10.1 nightly I installed. I'll be taking a closer look at it once I've nailed the hiding of the action bar. Currently fighting the hide/show on screen tap changes.


RE: auto hide/show lower nav bar. - arcee - 2013-01-19

(2013-01-19, 00:22)kemonine96 Wrote:
(2013-01-19, 00:20)arcee Wrote: FWIW... All my devices are on CM10.1, none of them show the status bar. That may be device-specific

I figured it was something with the latest grouper CM10.1 nightly I installed. I'll be taking a closer look at it once I've nailed the hiding of the action bar. Currently fighting the hide/show on screen tap changes.

I'm already hiding the action bar. Give me a sec, I'm cleaning it up



RE: auto hide/show lower nav bar. - kemonine96 - 2013-01-19

(2013-01-19, 00:51)arcee Wrote: I'm already hiding the action bar. Give me a sec, I'm cleaning it up

Do your changes include re-showing it when the screen is tapped or the OSD pops up?


RE: auto hide/show lower nav bar. - arcee - 2013-01-19

(2013-01-19, 01:02)kemonine96 Wrote:
(2013-01-19, 00:51)arcee Wrote: I'm already hiding the action bar. Give me a sec, I'm cleaning it up

Do your changes include re-showing it when the screen is tapped or the OSD pops up?

Yes, they do. I'm just getting rid of a double OSD popup I accidentally created, I'll post the patch in a bit. (http://www.youtube.com/watch?v=cIMkPQKHdzk)



RE: auto hide/show lower nav bar. - arcee - 2013-01-19

OK, my variant of the auto-hide patch is at http://dl.dropbox.com/u/10355648/android/0001-Hide-action-bar-during-video-playback.patch . It should auto-hide/show/hide again depending on interaction with the device.

Ah, note that this is being applied to a tree with the native-acceleration patches (PR 1832)


RE: auto hide/show lower nav bar. - kemonine96 - 2013-01-19

(2013-01-19, 01:42)arcee Wrote: OK, my variant of the auto-hide patch is at http://dl.dropbox.com/u/10355648/android/0001-Hide-action-bar-during-video-playback.patch . It should auto-hide/show/hide again depending on interaction with the device.

Ah, note that this is being applied to a tree with the native-acceleration patches (PR 1832)

Where in the patch is it un-hiding the action bar? I'm not seeing it.


RE: auto hide/show lower nav bar. - arcee - 2013-01-19

(2013-01-19, 01:51)kemonine96 Wrote:
(2013-01-19, 01:42)arcee Wrote: OK, my variant of the auto-hide patch is at http://dl.dropbox.com/u/10355648/android/0001-Hide-action-bar-during-video-playback.patch . It should auto-hide/show/hide again depending on interaction with the device.

Ah, note that this is being applied to a tree with the native-acceleration patches (PR 1832)

Where in the patch is it un-hiding the action bar? I'm not seeing it.

Unhiding happens automatically with SYSTEM_UI_FLAG_HIDE_NAVIGATION (http://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_HIDE_NAVIGATION). The last block (mouse activity) re-arms the hiding


RE: auto hide/show lower nav bar. - kemonine96 - 2013-01-19

(2013-01-19, 01:56)arcee Wrote: Unhiding happens automatically with SYSTEM_UI_FLAG_HIDE_NAVIGATION (http://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_HIDE_NAVIGATION). The last block (mouse activity) re-arms the hiding

The temporary nature of the flag is what I was missing. Definitely a simpler approach to the listener approach I was working on implementing.

Would it be wise to set this up to be low profile (dots instead of icons, if available) in the Main UI with the full hide from @arcee during video playback or visualizations?


RE: auto hide/show lower nav bar. - slhpss - 2013-01-19

Personally I don't think low profile to be necessary at all. The buttons IMO don't detract from the interface outside video playback and possibly music visuals


RE: auto hide/show lower nav bar. - kemonine96 - 2013-01-19

(2013-01-19, 03:06)slhpss Wrote: Personally I don't think low profile to be necessary at all. The buttons IMO don't detract from the interface outside video playback and possibly music visuals

After fiddling around, I agree: low profile mode is not necessary, it also makes it harder to figure out where back/home/etc end up if you're not paying particularly close attention.

Working on getting everything fine tuned right now.


RE: auto hide/show lower nav bar. - davilla - 2013-01-19

you will change your tune with a set-top-box setup Smile


RE: auto hide/show lower nav bar. - kemonine96 - 2013-01-19

Got it working, ActionBar is hidden during 1st run splash, video playback and music visualization. A tap during playback will show the action bar then auto-hide it.

Thanks to
Pull Request: https://github.com/xbmc/xbmc/pull/2091
Feature Branch: https://github.com/mcrosson/xbmc/tree/android-feature-auto-hide-nav-bar
Revisions / Changes: https://github.com/mcrosson/xbmc/compare/58eb6a92567bbef7c0952ad47f296f729bee0641...62946ad8b2ed413f08e4eb43e79cca4a2773b08e

Testing APK: xbmcapp-armeabi-v7a-debug-hide-action-bar.apk

XBMC Splash
Image

XBMC Home
Image

Video Playback
Image

Video Playback with OSD
Image

Music Visualizer
Image

Music Viz with OSD
Image

(2013-01-19, 06:47)davilla Wrote: you will change your tune with a set-top-box setup Smile

But I already have a XIOS M1.... Wink