tufanv Expert Licensed User Longtime User Jul 22, 2015 #1 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: Jul 22, 2015
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
LucaMs Expert Licensed User Longtime User Jul 22, 2015 #21 LucaMs said: If you used the same project, I can think only to some problems related to the Android version but that would be strange. Click to expand... No, it is not the same project Upvote 0
LucaMs said: If you used the same project, I can think only to some problems related to the Android version but that would be strange. Click to expand... No, it is not the same project
tufanv Expert Licensed User Longtime User Jul 22, 2015 #22 The ss i sent you is the same project i posted here. LucaMs said: No, it is not the same project Click to expand... Upvote 0
The ss i sent you is the same project i posted here. LucaMs said: No, it is not the same project Click to expand...
ilan Expert Licensed User Longtime User Jul 22, 2015 #23 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
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 !
LucaMs Expert Licensed User Longtime User Jul 22, 2015 #24 tufanv said: The ss i sent you is the same project i posted here. Click to expand... Well, it seems to work well, without adding gravity.fill. (I can not attach the project, some files are missed) [P.S. you should use menu File - Export as zip] Upvote 0
tufanv said: The ss i sent you is the same project i posted here. Click to expand... Well, it seems to work well, without adding gravity.fill. (I can not attach the project, some files are missed) [P.S. you should use menu File - Export as zip]
tufanv Expert Licensed User Longtime User Jul 22, 2015 #25 It is interesting. Anyway, Thank you Ilan and Luca for your help. Appreciated. LucaMs said: Well, it seems to work well, without adding gravity.fill. (I can not attach the project, some files are missed) Click to expand... Upvote 0
It is interesting. Anyway, Thank you Ilan and Luca for your help. Appreciated. LucaMs said: Well, it seems to work well, without adding gravity.fill. (I can not attach the project, some files are missed) Click to expand...
tufanv Expert Licensed User Longtime User Jul 22, 2015 #26 ilan said: 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 ! Click to expand... I am not a good developer like you Ilan . I use 10x more lines of code to do a simple thing hahah Upvote 0
ilan said: 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 ! Click to expand... I am not a good developer like you Ilan . I use 10x more lines of code to do a simple thing hahah