We are experiencing a color change only in S3.
The color is well defined as Hex in the layout XML.
on all devices it is green, but on S3 it some times turns red
Edit due to the negative responses:
Just to be clear, the color was changing on S3 only sometimes, and in run time.
apparently calling set background to a previusly set view caused this to other views in other activities that had the original color set for them as well
Try to set the color in a different way:
YourView.setBackgroundColor(Color.argb(255, 255, 255, 255));
And so not from the xml-files.
dude, I think its not related with your coding or Hex value, check display settings for S3. Go to settings and then select display and then select screen mode and finally choose Natural option from it. Hope it works. You may try other variations from it.
Apparently On S3 (at least) if you set in the layout a views background, and then change it programmatically to a different color, the original color will show as the new color throughout your app.
Jitesh Dalsaniya & Salman Khan, you can try and recreate what i have described.
Hope this post will help anyone that runs into this weird issue.
Related
I have an app available on play store and users have been reporting that they can enter any text due to the fact that the text color is white, which very weird.
I have used Firebase Test Lab to try reproduce the issue. I could indeed reproduce it.
On Pixel 5, everything is fine and the input text on EditText is visible. Text is black and background is white.
On Pixel 6 on the other hand, there is nothing to see.
I have not set any text color on the edit text, so everything is out of the box.
Unfortunately there is not yet an Emulator for Pixel 6 in android studio. Therefore I can't really debug to see what's going on.
What is so new on Pixel 6 that sets white as the text color?
Best regards
I manage to solve the problem.Changing the parent of my style from Theme.MaterialComponents.DayNight.NoActionBar to Theme.MaterialComponents.Light.NoActionBar did the trick.
I have created some images and set some colors using photoshop and applied them to our app in android studio, but for the same hex code, colors arent same, I do not understand why this is happening. I took a screen shot of the color im working in photoshop and then opened the image in photoshop, surprisingly the color code changed, and it was same as android studio was showing and its not the actual color, I have even checked the RGB/ CMYK mode, it is in RGB mode, i even tried CMYK mode, in the both the cases the problem persists. No matter how many times i have tried, the problem persists. Please help me out
I agree with Rodrigo, you should set a color workflow.
If you are mainly working on documents viewed on the web or mobile devices :
1) in Photoshop go to Edit>Colors Settings and set your RGB Colorspace to "sRGB".
2) Make sure Proof Colors is unchecked in the View menu.
3) Make sure your document has the "sRGB" color profile attributed (can be fixed by using "Attribute color profile" or "Convert color profile" in the Edit menu).
This should ensure color consistency across most devices and web browsers.
It very strongly depends on device screen. I have 4 devices, and colors are different on all of them
You have to setup your color profile in photoshop, by default photoshop gives you different colors when you save for web. Check out this tutorial step by step and let me know if this fixed your problem.
http://viget.com/inspire/the-mysterious-save-for-web-color-shift
I'm working with android and trying to use an image button. Everything works fine, the only problem is that when I display the image on the emulator, the buttons background color is different then the background of the app. I'm on my mac and I'm using Paintbrush to create the image, and the Digital Colorometer to check the RGB values. Everything checks out, the images have the same background RGB as the image, but one run on an emulator, it lowers them from (84,20,109) to (62,0,86). The colorimeter also says "(clipped)" next to the green value. I'm not sure why this is happening and it certainly is annoying as the buttons clearly stand out now. Is this because of the emulator or is something else happening?
Thanks for any help
Also: I have tried both, using setImageResource, and using android:src. Both have the same result shown above.
I figured out what was wrong. It turns out that my emulator was lowering the color values by 20. I resolved it by setting the background color to exactly what it is in the app.
Random bug on mostly > 4.0 devices
Sometimes transparency that is set in .xml files is shown as white/light grey shade.
This happens for practically everything , TextView , ImageView , Button , Relative Layout...
Has anyone experienced this before ?
All I can find is a transparency bug in Jelly Bean that happens with secondary accounts , which isn't related to this.
I ran into the same issue, but was able to work around the problem by using the 8-digit color code in which the first two digits represent the transparency level (00 being fully transparent, FF being fully opaque).
Using #00000000 results in a fully transparent color and can be used as a direct replacement for android:color/transparent.
It is occurring in random scenarios and some time its happening to all the views and some times for few among many.May be because of either memory or graphics issues.Any solutions please....
It happened to me after I upgraded my Samsung Galaxy S3 software. Maybe the problem it's the basic light theme that has a light grey color instead of white for background.
The only solution I found for that is to manually set white color as background of all the layout containers in my application.
Hope that helps.
I have the same effect on a S3 / S3 Mini phones, to solve this bug just remove "android:colorBackground" from activity theme. My problem was that I wetted colorBackground and windowBackground together for some strange reason S3 applies both but with some alpha channels (my original colors does not have alpha) and when you apply 2 colors with alpha the color multiplies. I do a testing also setting color in a Activity and gives another color of background so just removing all colors Fragment Root layout + Activity root layout and setting only a windowBackground instead of colorBackground solves the bug for me.