Android Question How to make "Isomatric" for Imageview

junaidahmed

Well-Known Member
Licensed User
Longtime User
I have an ImageView control in my application.I would like to know how to make "Isomatric" instead of using "Gravity.Fill" Property...
 

DonManfred

Expert
Licensed User
Longtime User
What is Isomatric?
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Peraphs isometric?
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Upvote 0

klaus

Expert
Licensed User
Longtime User
Original Image Width and Height
What exactly do you mean with this?
If you want to maintain the Width/Height ratio, you could use:
imvTest1.Bitmap = LoadBitmapResize (File.DirAssets, "bild2.jpg", imvTest1.Width, imvTest1.Height, True)
With the last parameter KeepAspectRatio As Boolean = True
You can find a small test program HERE.
 
Upvote 0

junaidahmed

Well-Known Member
Licensed User
Longtime User
If I Create Imageview in runtime,then we need to set height and width for Imageview ???/
B4X:
Dim ImgThum As ImageView
ImgThum.Initialize("ImgThum")
ImgThum.Height = ? ' what to put here
ImgThum.Width = ? ' what to put here
ImgThum.Bitmap= LoadBitmapResize(StrCabinet_Path,TmpRst.GetString("FileName"),ImgThum.Width,ImgThum.Height,True)
 
Upvote 0
Top