Clueless newbie here who has had b4a (v2.30) for a week, and has gone through a few tutorials with success, but having trouble with my own test project.
Specifically, I am trying to make a layout for a simple app that does a search on snopes.com. It has a centered label at the top, an edittext and a button below that, and a webview below those.
The issues I am having are:
1) The EditText is not visible against the activity at all, and I don't see how to set its color.
2) The WebView should have the top aligned with the bottom of the EditText, but appears instead to be way below that.
Here's my designer script code:
I am also attaching a screenshot of the app running on my Nexus 7, portrait mode (scaled to half).
Any thoughts? Thanks in advance for any advice!
Karl
:sign0104:
Specifically, I am trying to make a layout for a simple app that does a search on snopes.com. It has a centered label at the top, an edittext and a button below that, and a webview below those.
The issues I am having are:
1) The EditText is not visible against the activity at all, and I don't see how to set its color.
2) The WebView should have the top aligned with the bottom of the EditText, but appears instead to be way below that.
Here's my designer script code:
B4X:
'All variants script
'AutoScaleAll 'uncomment to scale all views based on the device physical size.
LabelInstructions.Width = 100%x
EditSearchText.Top = LabelInstructions.Bottom
EditSearchText.Width = 75%x
ButtonSubmitSearch.Top = LabelInstructions.Bottom
ButtonSubmitSearch.Left = EditSearchText.Right
ButtonSubmitSearch.Right = 100%x
WebResults.Top = ButtonSubmitSearch.Bottom
WebResults.Bottom = 100%y
WebResults.Width = 100%x
I am also attaching a screenshot of the app running on my Nexus 7, portrait mode (scaled to half).
Any thoughts? Thanks in advance for any advice!
Karl
:sign0104: