I added 20 panels into xCustomListView.
Each panel has an imageslider view inside with different photos.
My questions :
1- is gesture working with imageslider?
2- how can i set getimage function for all this imagesliders ?
My code
Each panel has an imageslider view inside with different photos.
My questions :
1- is gesture working with imageslider?
2- how can i set getimage function for all this imagesliders ?
My code
B4X:
Sub AddPosts
pnlRoot.LoadLayout("LayoutListview")
For i = 1 To 20
Listview1.Add(CreatePost(Rnd(0xFF000000, 0xFFFFFFFF), i), "")
Next
End Sub
Sub CreatePost(clr As Int, Title As String) As B4XView
ExpandedHeight =55dip + (screenWidth*1.12-6dip)
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, Listview1.AsView.Width, ExpandedHeight)
p.LoadLayout("LayoutPost")
imgUser.Bitmap= LoadBitmap(File.DirAssets,"user" & Rnd(1,4) & ".jpg")
PanelContainer.Width=screenWidth
PanelContainer.Height=screenWidth*1.3
PanelContainer.LoadLayout("LayoutPostMedia")
'**** PostImageSlider1 = Image Slider View
Dim srcImageSlider As List
srcImageSlider.Initialize
For i = 1 To Rnd(1,7)
srcImageSlider.Add("s" & i & ".jpg")
Next
'**** How to set srcImageSlider for PostImageSlider1(Image Slider View)
Return p
End Sub