Hi, I'm using this piece of code to change the ScaleType of an ImageVIew:
The Log shows that the ScaleType is the one I set, however I can't see any effect in the ImageView (I tried with CENTER_INSIDE and CENTER_CROP).
What am I missing?
B4X:
Sub SetScaleType(i As ImageView,ScaleType As String)
Dim r As Reflector
r.Target = i
r.RunMethod2("setScaleType",ScaleType,"android.widget.ImageView$ScaleType")
Log(r.RunMethod("getScaleType"))
End Sub
The Log shows that the ScaleType is the one I set, however I can't see any effect in the ImageView (I tried with CENTER_INSIDE and CENTER_CROP).
What am I missing?