Android Question [SOLVED] Background color behind buttons

JoeR

Member
Licensed User
Longtime User
I display a screen which consists of a webview (background white) with several buttons below it. Buttons display against a black background. (example 1).
How can I change this background to white? So that the buttons appear as if they are in front of the webview - to become like example 2.


Example 1


and I want it become like example 2 below





With grateful thanks to those involved with B4A. As a newbie (of 1 week), I feel I have achieved a lot.
 

Attachments

  • upload_2014-1-16_9-44-41.png
    5.2 KB · Views: 166

derez

Expert
Licensed User
Longtime User
If the buttons are on the activity - change in the designer the color of the activity to white.
Or in code: activity.color = colors.white
If they are on a panel - change the panel's color.
 
Upvote 0

JoeR

Member
Licensed User
Longtime User
Thanks for speedy replies. David: I changed the activity color and that solved the problem.

Manfred: Sorry I wasted some of your time. As I have not yet worked out how to take actual screen snapshots (!) I used Photoshop to create the attached images as a rough approximation.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…