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
Related
When I am adding transparent png icons/images, their color schema changes to "monochrome white", i.e. all the colors but white change to white as on the image:
Most of devices were working well so far, it happens not often.
I am not sure if that's related to the image format, OS version or device, but probably someone already bumped into similar thing.
The images are added as AndroidResource as drawable and have different resolution versions. (I am using Xamarin Android, but not sure if that's related to the issue).
The issue is happening as when the image is added to widgetTab.Layout as menu item as just setting up ImageView.
Any thoughts?
The number pickers in Android contain a shadow above the previous and next value(s). Is there a attribute to make this shadow transparent?
If an image is being used as the background, these shadows are distracting.
Edit:
Running emulator with Android version 6.0.
Setting the solidColor attribute makes the shadows appear in different colors. Unfortunately, setting it to transparent still keeps the black fading appearance.
How this renders during emulation with the background image:
I think it's just the Android version is too old. I didn't do any customization to numberpicker and it still looks flat (no ugly shadow like that). My test device running 6.0
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
In my own AOSP build on target and emulator I have the issue that the Android keyboard exceeds the display boarder on the bottom side. The 4th row with the space bar is only displayed half and cut by the bottom boarder of the screen.
The same issue can be seen on the standard google emulator. Just press on the search bar to reproduce it.
I'm using a 320x480 mdpi display layout, for the emulator e.g. the predefined defintion for the "3.2" HVGA slider (ADP1)"
It seems to be an issue for Android 4.0.3 as with Android 4.2.2 I cannot reproduce it.
Is this known and is there a solution avialable?
Any help is highly appreciated.
Thanks!
Meanwhile found a solution by myself. Probably it is useful for someone else:
see packages/inputmethods/LatinIME/java/res/values/dimens.xls
Android 4.0.3/4 uses a 240dip height for the key_preview_backing_height (6 preview rows maximum with 40dip each). Together with the more_suggestions_row_height of 40dip already 280dips of the display are used.
Together with the status bar (~25dip) a 3,2" display with 320x480 pix does not offer enought height to display the entire keyboard.
Reducing the number of preview rows to 5 solves the issue for me. This reduces key_preview_backing_height to 200dip and gives enough space for the keybaord.
BR,
klo ZwoFünf
While using an image(plain fill color image) as background to say any view . The screen color changes by varying the devices and emulator.
I know that if we use images they should not be explicitly stretched in GUI design. I have used wrap_content only no GUI layout variations.
Also when I use color(#ebebeb) in place of image , still the problem persists.
On Running the view on Samsung-Gtab it shows color as "#efebef" and on emulator it shows as "#e8e8e8".
Please suggest , I am still facing this problem though I have pre-requisite knowledge about the device densities.
How to have the exact same GUI contrast for the app on different android platform...???