I am using SimpleMediaManager to load an image onto a panel that is declared as a b4xview.
When I resize the panel the image does not resize with it. I need it to.
Assign the image
Resize like this
When I resize the panel the image does not resize with it. I need it to.
Assign the image
B4X:
Private Sub ShowMedia (Result As MediaChooserResult)
If Result.Success Then
smm.SetMediaFromFile(PanelBase, Result.MediaDir, Result.MediaFile, Result.Mime, Null)
Else
'Panel1.RemoveAllViews
End If
End Sub
Resize like this
B4X:
Private Sub btnZoomOutHor_Click
PanelBase.SetLayoutAnimated(0,PanelBase.Left,PanelBase.Top,PanelBase.Width - zoomFactor,PanelBase.Height)
End Sub
Private Sub btnZoomInHor_Click
PanelBase.SetLayoutAnimated(0,PanelBase.Left,PanelBase.Top,PanelBase.Width + zoomFactor,PanelBase.Height)
End Sub
Private Sub btnZoomOutVert_Click
PanelBase.SetLayoutAnimated(0,PanelBase.Left,PanelBase.Top,PanelBase.Width,PanelBase.Height - zoomFactor)
End Sub
Private Sub btnZoomInVert_Click
PanelBase.SetLayoutAnimated(0,PanelBase.Left,PanelBase.Top,PanelBase.Width,PanelBase.Height + zoomFactor)
End Sub