Android Question Transparent gif

Didier9

Well-Known Member
Licensed User
Longtime User
I am trying to display a transparent gif created from free artwork by making the background transparent using Pain.NET. While the resulting gif file has transparent background when viewed with Internet Explorer under Windows, it has a black background on my Android app.
I set the image as follows:
Code:
    Dim iw As ImageView
    iw.Initialize( "XT" )
    Activity.AddView( iw, 50%x, 50%y, 67dip, 67dip ) ' iw.Width, iw.Height )
    XT = iw
    Try
        XT.Bitmap = LoadBitmap( File.DirAssets, "target.gif" )
    Catch
        ToastMessageShow( "XT icon " & File.DirAssets & "target.gif not found", False )
        Return
    End Try
Is there anything I am missing?
 
In Visual Designer, for the module with the .gif have you tried to hilight Activity, then Color, and then use the dropdown menu to select Transparent?
ps: if you had made the View in Designer, which I now see is not the case.
 
Last edited:
Upvote 0
I found that .gif are somewhat troublesome and I try to avoid then.
i never had issues with .png thou.
 
Upvote 0
Back
Top