#Region Activity Attributes
#FullScreen: False
#IncludeTitle: False
#End Region
With such settings, Activity.top is 0 and Activity.height is the height of the screen. I have tested that.
I think that Activity.top should be equal to the height of the status bar at the top and Activity.height should be equal to "100%y - status bar height".
I am designing an activity by code, not by designer scripts.
I put a label (Label1) at the top
left=0
top =0
width=100%x
height=30
and I put a listview at the bottom
left=0
top=Label1.height
width=100%x
height=100%y-Label1.height
When I tested the activity, the last listview item can't show entirely, because the listview bled off the screen.
Now, it is a headache for me to decide the height of the listview according the screen height of device.
Is there a way to get the height of the status bar?
#FullScreen: False
#IncludeTitle: False
#End Region
With such settings, Activity.top is 0 and Activity.height is the height of the screen. I have tested that.
I think that Activity.top should be equal to the height of the status bar at the top and Activity.height should be equal to "100%y - status bar height".
I am designing an activity by code, not by designer scripts.
I put a label (Label1) at the top
left=0
top =0
width=100%x
height=30
and I put a listview at the bottom
left=0
top=Label1.height
width=100%x
height=100%y-Label1.height
When I tested the activity, the last listview item can't show entirely, because the listview bled off the screen.
Now, it is a headache for me to decide the height of the listview according the screen height of device.
Is there a way to get the height of the status bar?