H hmdfar New Member Sep 26, 2022 #1 hello i put a webView on activity and change #FullScreen: True #IncludeTitle: False 'wv is WebView wv.Width=100%x wv.Height=100%y but the webview not fill all the screen and top and buttom of screen is empty sample is attached. please help. Attachments empty.png 88.2 KB · Views: 447
hello i put a webView on activity and change #FullScreen: True #IncludeTitle: False 'wv is WebView wv.Width=100%x wv.Height=100%y but the webview not fill all the screen and top and buttom of screen is empty sample is attached. please help.
J jay2370 New Member Sep 27, 2022 #2 post a part of the code to help you and also use wv.Top = 0dip Click to expand... Upvote 0
H hmdfar New Member Sep 27, 2022 #3 jay2370 said: post a part of the code to help you and also use Click to expand... My program is very simple to test ---------------------------------------------------------- #Region Project Attributes #ApplicationLabel: ArminaTest #VersionCode: 1 #VersionName: 'SupportedOrientations possible values: unspecified, landscape or portrait. #SupportedOrientations: portrait #CanInstallToExternalStorage: True #End Region #Region Activity Attributes #FullScreen: true #IncludeTitle: false #End Region Sub Process_Globals End Sub Sub Globals 'These global variables will be redeclared each time the activity is created. Private wv As WebView End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("Layout") wv.Left=0dip wv.Top=0dip wv.Width=100%x wv.Height=100%y wv.LoadUrl("https://www.b4x.com") End Sub Upvote 0
jay2370 said: post a part of the code to help you and also use Click to expand... My program is very simple to test ---------------------------------------------------------- #Region Project Attributes #ApplicationLabel: ArminaTest #VersionCode: 1 #VersionName: 'SupportedOrientations possible values: unspecified, landscape or portrait. #SupportedOrientations: portrait #CanInstallToExternalStorage: True #End Region #Region Activity Attributes #FullScreen: true #IncludeTitle: false #End Region Sub Process_Globals End Sub Sub Globals 'These global variables will be redeclared each time the activity is created. Private wv As WebView End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("Layout") wv.Left=0dip wv.Top=0dip wv.Width=100%x wv.Height=100%y wv.LoadUrl("https://www.b4x.com") End Sub
DonManfred Expert Licensed User Longtime User Sep 27, 2022 #4 The problem is the Layoutfile. You did forget to set anchors? And please use CODE Tags when posting code! Edit: Check this example Attachments webviewtest.zip webviewtest.zip 8.9 KB · Views: 318 Last edited: Sep 27, 2022 Upvote 0
The problem is the Layoutfile. You did forget to set anchors? And please use CODE Tags when posting code! Edit: Check this example
H hmdfar New Member Sep 27, 2022 #5 DonManfred said: The problem is the Layoutfile. You did forget to set anchors? And please use CODE Tags when posting code! Edit: Check this example Click to expand... Thank's donmanfred It has improved a little, but it is still not perfect The upper part that shows the clock and... And the bottom part that has back, home and... buttons It is still displayed I want the app to cover the whole screen Upvote 0
DonManfred said: The problem is the Layoutfile. You did forget to set anchors? And please use CODE Tags when posting code! Edit: Check this example Click to expand... Thank's donmanfred It has improved a little, but it is still not perfect The upper part that shows the clock and... And the bottom part that has back, home and... buttons It is still displayed I want the app to cover the whole screen