Hi
I know it should be a weird question but when I add a view (Panel , I did not test other views) with its Top at 85%y and its height being 15%y , It seems there is a tiny space of activity left not covered with the panel.
I am using code like this
B4X:
Activity.AddView(pnl1,0,85%y,100%x,15%y)
Am I missing something or a better method of adding views to activity?
It should fill the whole activity.
Try the following code:
B4X:
Sub Activity_Create(FirstTime As Boolean)
Dim pnl1 As Panel
pnl1.Initialize("")
pnl1.Color = Colors.Red
Activity.AddView(pnl1,0,85%y,100%x,15%y)
End Sub
Hi
I know it should be a weird question but when I add a view (Panel , I did not test other views) with its Top at 85%y and its height being 15%y , It seems there is a tiny space of activity left not covered with the panel.
I am using code like this
B4X:
Activity.AddView(pnl1,0,85%y,100%x,15%y)
Am I missing something or a better method of adding views to activity?
It should fill the whole activity.
Try the following code:
B4X:
Sub Activity_Create(FirstTime As Boolean)
Dim pnl1 As Panel
pnl1.Initialize("")
pnl1.Color = Colors.Red
Activity.AddView(pnl1,0,85%y,100%x,15%y)
End Sub