Android Question change autoscale in run move

a2stepper

Member
Licensed User
Longtime User
i saw on one of the downloads that you can change the autoscale of a screen inside the code in run time.
i would like to center an imageview via : ImageView1.HorizontalCenter = 50%x
while program is running to align after i changed the width and heght.
would anyone know how to do this.


thanks. paul
 

a2stepper

Member
Licensed User
Longtime User
thanks for the info but it's still not centering the jpg after the picture is loaded using the
imagedownloader module.
paul
 
Upvote 0

a2stepper

Member
Licensed User
Longtime User
Klaus,
yes i have tried to set gravity center_horizontal with no centering.
i did set the image size in the imagedownloader module:
For i = 0 To tasks.Size - 1
Dim link As String = tasks.GetValueAt(i)
If link = Job.JobName Then
Dim iv As ImageView = tasks.GetKeyAt(i)
-- iv.Height = bmp.Height
-- iv.Width = bmp.Width
iv.SetBackgroundImage(bmp)
Log(iv.Width)
End If
Next


paul
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…