I'm having an issue where the Android navigation bar is convering my content on only some specific phones.
I'm setting
ApplicationChrome.statusBarState = ApplicationChrome.navigationBarState = ApplicationChrome.States.Visible;
on the opening scene but the content still remains underneath the navigation bar on Pixel 3 XL (Android 10). It appears correctly on a Galaxy S8 however so I'm at a loss :/.
For what it's worth I've tried all possible ApplicationChrome.States and I am not seeing a solution. I've also tried it both ways with the application being full screen and not full screen with no luck.
I'm using Unity 2019.1.14f1.
Thank you!
Related
On Android only: every time when navigating between screens in stack navigation there will be a white flickering.
This is much harder to see on a light background but on a black screen background it is very noticeable.
I have already found the workarounds by setting setting the dark theme (or background color) on NavigationContainer but we using black and white backgrounds in our application so it is still visible at one of them. (and the flickering is still there but harder to see).
Also tried animationEnabled: false but then you have no animation at all when you navigate.
There have been previous issues but I haven't really found a good solution for this yet.
Also created an issue on the react-navigation GitHub (with example repo): click
White flickering on Samsung Galaxy S20+
There is a thin bar at the top of the phone screen's that shows battery and clock and notifications.
When I try to run my app in fullscreen, this bar is purely black, meaning if I paint the whole window white with
SDL_RenderClear(renderer) the color of bar does not change. So it means it is not a part of the window right?
I found two similar threads in discourse.libsdl.org that are mentioning the exact same issue.
I tried the methods that both of them mentioned but It had no effect for me.
One thread was created by devvr and the other by Starg.
I created my window with SDL_WINDOW_FULLSCREEN and SDL_WINDOW_BORDERLESS flags.
And after that I did this SDL_SetWindowFullscreen(window,SDL_TRUE);
I tested the app only on Samsung Galaxy A22, but I'm not sure if it is a device related problem.
I tested the app on Samsung Galaxy J5, and the notification bar was totally hidden there (meaning i have no issue there).
I also tested the app on Samsung Galaxy A30 and I faced the same issue (notification bar is not a part of the window)
Another thing that I noticed is that the window height that SDL_GetCurrentDisplayMode is giving me on A22 and A30 is actually a little bit bigger than the actual size (meaning the objects at the bottom of the window can't be seen in the screen).
So i think that SDL_GetCurrentDisplayMode is actually doing okay and is giving me the right width and height but because the notification bar is not considered a part of the window, I am facing this issue too.
I have this ratingbar which is inside the applications and it is always displaying correctly.
But recently I realise that it is not working correctly on some devices (which include Nexus 5 with Lollipop version). The rating bar are covered by a black overlay as shown on the image below (only on some devices). When listview (with rating stars) is scrolled, the rating bar will be shown (and then black overlay shows again). it only affect the yellow stars but not the white ones.
I am not sure if anyone had ever met this problem before? I am thinking if it is the recent android update on Nexus 5 that causes this as the rating bar works well on other devices.
Accoring to me,
This may be using v21 of the support libraries or possibly unstable OS update as .xml file and code is not available.
These are the issue reported on google for rating bar please check link below,
RatingBar rendering broken on devices
The development team has fixed the issue that you have reported and it
will be available in a future build.
RatingBar w/ Custom Stars Drawable is rendered as 1 stretched star on pre-Lollipop phones
when using v21 of the support libraries, the RatingBar w/ custom stars
renders as expected. With v22, instead of 5 stars, you just get one,
but stretched to match the width that 5 stars should take
First of all, do not use RatingBar#setProgressDrawable because no
matter what platform, it is going to work like #setBackground()
(single stretched image for whole background). Secondly, setting
android:ratingBarStyle on theme level does not work. I ended up
creating custom style, with "android:progressDrawable" and applying it
for every view I needed.
RatingBar does not render in InfoWindow
setting the style to android:attr/ratingBarStyle does not work, and
ratingBarStyleSmall does work
I'm having sizing issues with my action bar buttons on Android 4.2.2. On all other versions, the sizes are acceptable (thought it's still maddening that I can't get one standard size). Android 4.2 appears to be constraining the widths of the buttons (which are rectangular and not squares) down to fit within the width of whatever 4.2 feels that the action bar buttons ought to be. Is there a way to instruct the program how wide action bar buttons ought to be, or how wide my specific buttons ought to be?
I've created a test project that has my action bar background and one of my buttons, in order to try to track down the problem. Here is how it appears in the emulator for the problematic 4.2:
http://i1364.photobucket.com/albums/r728/jasonjtyler/ScreenShot2013-06-27at110115AM_zps9b1bd09a.png?t=1372349904
Here it is in 4.0, which is basically representative of the other versions also (besides 4.2):
http://i1364.photobucket.com/albums/r728/jasonjtyler/ScreenShot2013-06-27at110951AM_zpsa5734a91.png?t=1372349914
Thanks for any help.
Jason
Um... What I see in a picture in not in line with design guides and doesn't look good.
My guess is that you are trying to do something the way you shouldn't do it.
Make your button standrard sizes and in a shape of a square not a rectangle.
For cancel option there exists standard image of a cross.
I think you should use this image, but customised it to your desing.
Action bar icon size in Android 4.2
I am using this link! for cropping an image and after getting the cropped image somehow whole layout moves about 20dp upwards and hides behind the status bar (this is random behaviour i.e happens sometimes) I tried many things to fix this problem but couldn't get to the solution, mainly because I dont know what is causing the problem.
This is a device specific problem, occurs occasionally in galaxy s and htc desire but frequently on samsung Ace. I tested app on samsung note and htc desire HD it works fine no such problem in these devices.
There is one more thing I should mention here that is: when layout hides under the status bar if I popup the keyboard by clicking on textfield layout gets back to normal i.e hidden area gets visible again. I cannot attach the image but found similar question Android - Status bar hides part of view sometimes exactly this is the behaviour of my layout.
Note:Recently i found out that camera activity is causing the layout to move upwards. To verify this start camera in samsung Galaxy Ace and just press back and note the layout movement in icons of home screen.
I have fixed the problem by using crop method inside the camera activity check this Set Camera Size - Parameters vs Intent? last answer of the post helped me to solve the issue.