Johan Schoeman Expert Licensed User Longtime User Mar 26, 2016 #1 I am adding a Panel and an ImageView via Designer. In the Designer I set the panel color to dark gray. In the B4A code I set the background color of the imageview to dark gray. The dark gray colors differ from one another. The panel seems to be light gray and the image view seems to be dark gray. If I however set the background color of the imageview via B4A code to 0xFFA9A9A9 (same color as dark gray of the panel's color in the designer) then the panel color and the background color of the imageview are the same but it seems to be light gray and not a dark gray? Am I doing something wrong here.....? Attachments b4aTestDarkGrey.zip b4aTestDarkGrey.zip 7.6 KB · Views: 244
I am adding a Panel and an ImageView via Designer. In the Designer I set the panel color to dark gray. In the B4A code I set the background color of the imageview to dark gray. The dark gray colors differ from one another. The panel seems to be light gray and the image view seems to be dark gray. If I however set the background color of the imageview via B4A code to 0xFFA9A9A9 (same color as dark gray of the panel's color in the designer) then the panel color and the background color of the imageview are the same but it seems to be light gray and not a dark gray? Am I doing something wrong here.....?
Erel B4X founder Staff member Licensed User Longtime User Mar 27, 2016 #2 You are not doing anything wrong. The constants are not the same (one comes from Android Color type and the second comes from Windows default colors). Use the actual value instead to get a consistent result. Upvote 0
You are not doing anything wrong. The constants are not the same (one comes from Android Color type and the second comes from Windows default colors). Use the actual value instead to get a consistent result.