Dim iLeft As Int
Dim iTop As Int
iLeft = Activity.Width/2
iTop = Activity.Height/2
'Move to start position
imageviewAnswerStatus.Visible=False
imageviewAnswerStatus.SetLayoutAnimated(0, 0, 0, imageviewAnswerStatus.Width, imageviewAnswerStatus.Height)
If correctYN="Y" Then
imageviewAnswerStatus.SetBitmap(xui.LoadBitmapResize(File.DirAssets, "Correct01.PNG", imageviewAnswerStatus.Width, imageviewAnswerStatus.Height, True))
Else
imageviewAnswerStatus.SetBitmap(xui.LoadBitmapResize(File.DirAssets, "Wrong01.PNG", imageviewAnswerStatus.Width, imageviewAnswerStatus.Height, True))
End If
'Move to new position...ensure visible to user
imageviewAnswerStatus.Visible = True
imageviewAnswerStatus.SetLayoutAnimated(600, iLeft, iTop, imageviewAnswerStatus.Width, imageviewAnswerStatus.Height)
imageviewAnswerStatus.BringToFront