Android Question [Solved] ACToolBarLight obscuring ImageView. How to resolve?

Batman_

Member
Licensed User
I have a layout with an ACToolBarLight at the top and an B4X ImageViewbelow this.

When the layout loads the ACToolBarLight is obscuring the B4X ImageView (see link).

In Designer view I have tried this:
B4X:
imageViewTop.Top=0%y
imageViewTop.Left=0%x
imageViewTop.Right=100%x

and also this:
B4X:
imageViewTop.Top=ACToolBarLight1.Bottom
imageViewTop.Left=0%x
imageViewTop.Right=100%x

with no positive outcome. Note: I have applied the "AutoScaleAll" both on or off with no positive effect.

My anchor settings and layout for the ImageView are (use link).

I set the B4X imageview settings with the following code:
B4X:
imageViewTop.SetBitmap(xui.LoadBitmapResize(File.DirAssets, Pics(Counter),imageViewTop.Width, imageViewTop.Height, False))    'False removes KeepAspectRatio

Any assistance appreciated.
 

Attachments

  • B4x.PNG
    B4x.PNG
    22.5 KB · Views: 312
  • Screenshot_20190418-162322.png
    Screenshot_20190418-162322.png
    184.2 KB · Views: 185
Last edited:

Brandsum

Well-Known Member
Licensed User
imageViewTop.Top=ACToolBarLight1.Bottom
B4X:
imageViewTop.Top=ACToolBarLight1.Height
imageViewTop.Height=100%y - ACToolBarLight1.Height - imageViewBottom.Height
 
Upvote 0

Batman_

Member
Licensed User
Hi.

To help any future user who has a similar issue, attached is how I set the anchors (see attachment).

Here is the code I used in Designer Scripts:
B4X:
imageViewTop.SetTopAndBottom(ACToolBarLight1.Bottom, 100%y-imageViewBottom.Height)
imageViewTop.Width=100%x
imageViewBottom.Width=100%x

Regards.
 

Attachments

  • B4x Fix.PNG
    B4x Fix.PNG
    11.9 KB · Views: 171
Upvote 0
Top