Android Question screen size problem

hmdfar

New Member
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
    empty.png
    88.2 KB · Views: 99

hmdfar

New Member
post a part of the code to help you and also use

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

hmdfar

New Member
The problem is the Layoutfile. You did forget to set anchors?

And please use CODE Tags when posting code!

Edit: Check this example
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
Top