Hi All,
I have an activity which has a list taking up most of the screen and a panel at the bottom of the screen. I have hidden the status bar (#FullScreen: True) in the code for that activity.
In the designer scripts I use:
If I set my panel to a full colour then there is no problem, the panel is displayed at the bottom of the screen perfectly.
However, I wanted a gradient on this panel so I did the following:
What happens is that the panel is not displayed correctly. Its as if there is a white bar drawn along the bottom of the screen which happens to be the height of the status bar.
On another screen, I have a similar panel which Is bigger and this displays correctly. This screen has many more controls on so not sure what's happening. Maybe its the list im using (Ultimate list view).
Any ideas?
I have an activity which has a list taking up most of the screen and a panel at the bottom of the screen. I have hidden the status bar (#FullScreen: True) in the code for that activity.
In the designer scripts I use:
B4X:
panelToolbar.Top = 100%y - 50dip
panelToolbar.Bottom = 100%y
panelToolbar.Width = 100%x
If I set my panel to a full colour then there is no problem, the panel is displayed at the bottom of the screen perfectly.
However, I wanted a gradient on this panel so I did the following:
B4X:
Dim gdToolbar As GradientDrawable
Dim colToolBar(2) As Int
colToolBar(0) = Colors.RGB(112, 110, 110)
colToolBar(1) = Colors.RGB(16, 16, 16)
gdToolbar.Initialize("TOP_BOTTOM", colToolBar)
panelToolbar.Background = gdToolbar
What happens is that the panel is not displayed correctly. Its as if there is a white bar drawn along the bottom of the screen which happens to be the height of the status bar.
On another screen, I have a similar panel which Is bigger and this displays correctly. This screen has many more controls on so not sure what's happening. Maybe its the list im using (Ultimate list view).
Any ideas?