Overlay a Full screen Transparent layer in Android 4.4(KitKat) - android

I want to overlay a transparent view on the entire screen including the bottom most Navigation Bar in Android 4.4.
I am able to do so in Android 4.3 by defining the window Manager LayoutParams as TYPE_SYSTEM_OVERLAY, but when I use the same definition the layout is now pushed behind the navigation bar. could you please let me know if it due to the recent updates in KitKat? or If any one have a solution please share with me.
regards

Related

Black stripe over the navigation bar (AOSP)

I have a strange black bar (around 30 dp), which is over the navigation bar (see attached image).
It is preventing my app from fully wrapping it's view. Probably it is some system window border, which I can't yet find how to disable/resize.
It is observed in some apps, and in some it is not (which seems that applying some theme or window flag should remove it).
Here is what I've tried up to now:
Changed app theme to a different one (e.g. #android:style/Theme.DeviceDefault.Settings).
Applied this in oncreate:
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);
Changed the nav bar size - it only gets smaller, but the black line stays in the same position
Using uiautomatorviewer doesn't seem to show the view (and id) of the navigation bar at all.
Any help for removing this line would be appreciated.
Hello again and thanks for the support.
Finally I've found the issue. It was due to the api which was used (android-23). After updating to android-29, the issue is resolved. Seems that somehow theming or windowing mechanism is affected by the old api (and the app does not cover the whole screen - the rest is covered by a black background).
PS: I needed to restart the phone in order this to be applied. Killing of the app after adb push didn't apply the setting.

Can we customize the height of navigation bar?

Is it possible to change the height of the navigation bar only in my application.
No, unfortunately you don't have control over system navigation bar height. There's a reason for that: some devices don't have it, while some devices give user control of how it looks (3 buttons vs gesture navigation). What you can do is hide/show it, or display your content behind it. Please refer to the documentation for more details

Android: Replacing navigation bar icons with dots

I've seen a number of apps on Android that replace the navigation bar icons (the triangle, for back, circle, and square) with dots. The button is still there, just less intrusive. Good for games and video apps.
How is this done? I can't find an api for it other than immersive mode.
Try using View.setSystemUiVisibility(SYSTEM_UI_FLAG_LOW_PROFILE) on one of the Views in your Activity.
Or, if you want to set it on the window:
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
To hide completely:
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
Android View documentation
Relevant Question

Progress Bar lollipop style

I need to display a progress like the image displayed below, but without arrow in that.How to do it ? Its not given in design specs but have seen some apps implementing that, is it possible ?
Design Specs
For such circular process bar in older SDK level, you can use this custom view ,
MaterialLoadingProgressBar

How to add custom buttons to the Android 3.0+ System Bar?

Does anyone know if there is a way to add custom buttons to the Android System Bar in Android 3.0+ (Honeycomb/ICS)?
I would like to add an application-provided button to that menu, but I have not been able to locate any API functionality that will allow it. I know that this area is sort of unofficially "off limits" to normal, non-system-level applicaitions, but I was wondering if anyone knew of a way to do this anyway?
Note: I am speaking specifically about the "System" bar that shows up along the bottom of the screen and not the "Action" bar which each app can customize at the TOP of the screen.
Let me know if you have any thoughts on this, thanks!!!
Does anyone know if there is a way to add custom buttons to the Android System Bar in Android 3.0+ (Honeycomb/ICS)?
Sorry, this is not supported. You can add a Notification that will appear on the right side of the system bar, but not with the rest of the system buttons on the left.

Categories

Resources