Android Question How to get the width and height of an ImageView?

Discussion in 'Android Questions' started by Flavio SOuza, Mar 7, 2019.

Tags:
  1. Flavio SOuza

    Flavio SOuza Member Licensed User

    How can I add an image without distorting the image in heigth ?

    my code:

    imgLogo.Top = 65dip
    imgLogo.SetLeftAndRight(10%x,90%x)
    imgLogo.Height = auto?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice