android-navigation-bar

Android: Spinner dropdown in full screen

蹲街弑〆低调 提交于 2021-02-10 05:31:12
问题 I'm trying to open drop down spinner in full screen (immersive mode), but the issue is that when the drop down opens up it brings out translucent navigation bar at the bottom. The navigation bars hides when an option is selected, but remains visible as long as dropdown is visible. I was able to remove this behavior in dialog fragment since I have show(FragmentManager manager, String tag) method to override and add this getDialog().getWindow().getDecorView().setSystemUiVisibility(getActivity()

Android: Spinner dropdown in full screen

不羁岁月 提交于 2021-02-10 05:31:07
问题 I'm trying to open drop down spinner in full screen (immersive mode), but the issue is that when the drop down opens up it brings out translucent navigation bar at the bottom. The navigation bars hides when an option is selected, but remains visible as long as dropdown is visible. I was able to remove this behavior in dialog fragment since I have show(FragmentManager manager, String tag) method to override and add this getDialog().getWindow().getDecorView().setSystemUiVisibility(getActivity()

Check if the navigation bar is hidden with ADB command “overscan”

北城以北 提交于 2021-01-29 22:04:09
问题 Many popular third parties apps and users are hiding the navigation bar by using a particular ADB command : adb shell wm overscan 0,0,0,-202 The particular thing of this command is if you check the presence of the navigation bar by reading a boolean from Android resources it will always return true (navigation bar is not hidden). That tricky ADB command doesn't hide the navigation bar it just moves it off the screen. Is there a way to detect this? 来源: https://stackoverflow.com/questions

How to find dimensions for status bar, navigation bar and screen in Android AccessibilityService

早过忘川 提交于 2021-01-29 09:02:07
问题 I have a Java app (API 23). In it I have a MainActivity and an AccessibilityService . In the AccessibilityService: @Override public void onServiceConnected() { oView = new LinearLayout(this); oView.setBackgroundColor(0x88ff0000); // The translucent red color WindowManager.LayoutParams params = new WindowManager.LayoutParams( width, height, xPos, yPos, WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY, WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE | WindowManager.LayoutParams.FLAG_NOT

Find placement of Android Navigation Bar without Insets (inside Service)

依然范特西╮ 提交于 2021-01-29 06:25:01
问题 How to find the location of the Navigation Bar under certain rotations, in API 23, without using Insets (I run in a Service - see How to find dimensions for status bar, navigation bar and screen in Android AccessibilityService for more). When Rotation is 0, Screen is Portrait, Status (if any) is at top of screen, Navigation (if any) at bottom. When Rotation is 90, Screen is Landscape, Status is at top of screen, Navigation at right. (NB top/right are rotated) When Rotation is 180, Screen is

displaying my toolbar image as background to status bar effecting navigation bar in android

你说的曾经没有我的故事 提交于 2020-08-08 05:37:21
问题 I want my toolbar to take the space of status bar and the image used for it be the background of the status bar and I successfully do that with this code inside my activity // for using status bar space if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); } the problem is this code make my activity layout take the full screen even the space with navigation bar so how

displaying my toolbar image as background to status bar effecting navigation bar in android

為{幸葍}努か 提交于 2020-08-08 05:37:07
问题 I want my toolbar to take the space of status bar and the image used for it be the background of the status bar and I successfully do that with this code inside my activity // for using status bar space if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); } the problem is this code make my activity layout take the full screen even the space with navigation bar so how

Android: windowLightNavigationBar not working

拜拜、爱过 提交于 2020-03-26 03:01:15
问题 Background: My background is in web development, ruby and javascript. I'm working on a mostly react-native app, so very likely I'm missing something basic. What I want android navigation bar to be white with dark system buttons see image in link white navigation bar My Current Code res/values/style.xml <resources> <style name="AppTheme" parent="Theme.AppCompat.Light"> <item name="android:windowDrawsSystemBarBackgrounds">true</item> <item name="android:windowLightNavigationBar">true</item>

How do I set my status bar transparent but keep by navigation bar black?

老子叫甜甜 提交于 2020-01-25 01:02:24
问题 As my question suggests, I am trying to figure out how to set my status bar color transparent while keeping my navigation bar black/natural color (without affecting the screen height) I referred to this site : Android Completely transparent Status Bar? one of the solutions that partially worked was : getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); but that pushes my screen content below navigation bar making it