Recent

Author Topic: [SOLVED] LAMW - How to place a jImageView or jImageButton above a jZCamview?  (Read 334 times)

1lucas1

  • Newbie
  • Posts: 2
Hello everyone,

I'm making an Android app that has a QRCorde Reader, so I need to add a Scan Zone using a 'jImageView' or 'jImageButton' to help users to 'point camera to the right place'.

I tried many things and combinations of 'PosRelativeToAnchor', etc.. but no success..

So, if someone knows how to do it, I really apreciate any help!

There is a picture of what Im looking for


------- [SOLUTION BELOW] ---------------------------------------------------

I Just followed the structure below:

(Object Inspector)

AndroidModule1
    TextView1    (just used to be a anchor reference)
      LayoutParamHeight = lpMatchParent
      LayoutParamWidth = lpMatchParent
      PostRelativeToParent = [rpTop]

    ZCamView1
      Anchor = TextView1
      LayoutParamHeight = lpMatchParent
      LayoutParamWidth = lpMatchParent
      PostRelativeToAnchor = [raBelow]
      PostRelativeToParent = [rpCenterHorizontal]

    Panel1
      Anchor = TextView1
      BackgroundColor = colbrDefault
      LayoutParamHeight = lpMatchParent
      LayoutParamWidth = lpMatchParent
      PostRelativeToAnchor = [raBelow]
      PostRelativeToParent = []


      ImageView1      (child of Panel1)
        ImageScaleType = scaleFitCenter
        LayoutParamHeight = lpMatchParent
        LayoutParamWidth = lpMatchParent
        PostRelativeToParent = [rpCenterInParent]

         
   
« Last Edit: January 28, 2025, 08:49:43 pm by 1lucas1 »

 

TinyPortal © 2005-2018