Android Question Images not showing transparent.

tufanv

Expert
Licensed User
Longtime User
Hello

I have a circle image that edges are transparent. But when i load them and add to activity edges also seen and it shows like a square. I am missing stg but what ? any ideas ?

edit: project added to post number 4 as zip

TY
 
Last edited:

ilan

Expert
Licensed User
Longtime User
btw is this not simpler instead of set every image seperatly?:

B4X:
Dim stepx = 1,stepy = 1,zerox = 10%x,zeroy = 17%y As Float

For i=0 To 15

    Activity.AddView(img(i),0,0,0,0)
    img(i).Width = 20%x
    img(i).Height = 20%x
    img(i).Top = zeroy * stepy
    img(i).Left = zerox + stepx   
   
    If i mod 2 = 0 And Not(i = 0) Then
        stepx = 1   
        stepy = stepy + 1   
    Else
        stepx = stepx + 1
    End If
   
Next

have not test it ! ;)
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
btw is this not simpler instead of set every image seperatly?:

B4X:
Dim stepx = 1,stepy = 1,zerox = 10%x,zeroy = 17%y As Float

For i=0 To 15

    Activity.AddView(img(i),0,0,0,0)
    img(i).Width = 20%x
    img(i).Height = 20%x
    img(i).Top = zeroy * stepy
    img(i).Left = zerox + stepx  
  
    If i mod 2 = 0 And Not(i = 0) Then
        stepx = 1  
        stepy = stepy + 1  
    Else
        stepx = stepx + 1
    End If
  
Next

have not test it ! ;)

I am not a good developer like you Ilan :) . I use 10x more lines of code to do a simple thing hahah
 
Upvote 0
Top