fredo Well-Known Member Licensed User Longtime User May 28, 2016 #1 According to THIS ("Text protection") it is advised to take actions to ensure that texts on images are readable. "To make typography legible on top of imagery, apply text protection in the form of scrims. Scrims are lightweight, translucent material layers." Click to expand... I tried with gradientdrawables (transparent to black) on panels over the image, but that was not helpful. Does anyone know a better way to achieve this?
According to THIS ("Text protection") it is advised to take actions to ensure that texts on images are readable. "To make typography legible on top of imagery, apply text protection in the form of scrims. Scrims are lightweight, translucent material layers." Click to expand... I tried with gradientdrawables (transparent to black) on panels over the image, but that was not helpful. Does anyone know a better way to achieve this?
Erel B4X founder Staff member Licensed User Longtime User May 29, 2016 #2 You can make the label's background semi transparent with a dark color. Upvote 0
fredo Well-Known Member Licensed User Longtime User May 29, 2016 #3 OK I found a reusable solution for my purposes and thought it might help someone else. Usage: B4X: ScrimLabel(imageview, true, "This is a testtext", "with a subtext", 0.7) Attached is the B4A project as a ZIP-Export Attachments ScrimLabel.zip 57.7 KB · Views: 272 Last edited: May 29, 2016 Upvote 0
OK I found a reusable solution for my purposes and thought it might help someone else. Usage: B4X: ScrimLabel(imageview, true, "This is a testtext", "with a subtext", 0.7) Attached is the B4A project as a ZIP-Export