German Warning#14

Sinan Tuzcu

Well-Known Member
Licensed User
Longtime User
Hallo,

ich bekomme einfach diese Warnungen nicht weg.
upload_2019-3-7_17-42-2.png


Geladen werden Sie dynamisch wie folgt:
B4X:
Sub ICONS_Laden
    AjustaImageView(btCall_Left_Menue_Setting,File.DirAssets,"menugr.png")
    AjustaImageView(ic1Menu,File.DirAssets,"connect.png")
   
End Sub

Sub AjustaImageView(Imv As ImageView, Dir As String, FileName As String)
    Private bmp As Bitmap = LoadBitmap(Dir, FileName)
    Dim Delta, Height, Width As Int
    If bmp.Width / bmp.Height > Imv.Width / Imv.Height Then
        Height = bmp.Height / bmp.Width * Imv.Width
        Delta = (Imv.Height - Height) / 2
        Imv.Height = Height
        Imv.Top = Imv.Top + Delta
    Else
        Width = bmp.Width / bmp.Height * Imv.Height
        Delta = (Imv.Width - Width) / 2
        Imv.Width = Width
        Imv.Left = Imv.Left + Delta
    End If
    Imv.Gravity = Gravity.FILL
    Imv.Bitmap = bmp
End Sub
 
Top