Hello guys,
I use this library: https://www.b4x.com/android/forum/threads/designsupport-additional-material-design-components.58893/
This is the completet code:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
why i dont see the cutomlistview with his entrys?
The completet project can you Download here: https://1drv.ms/u/s!AupZtTpO80tCgpYgvzPsLIhAImFfMg
thanks for help!
			
			I use this library: https://www.b4x.com/android/forum/threads/designsupport-additional-material-design-components.58893/
This is the completet code:
			
				B4X:
			
		
		
		Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
    Public MyColors() As Int = Array As Int(Colors.RGB(74,74,82), Colors.RGB(132,121,121), Colors.RGB(152,99,122), Colors.RGB(162,116,92))
    Public ColorIndex As Int
End Sub
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    Private VP As AHViewPager
    Private PC As AHPageContainer
    Private TabLayout As DSTabLayout
    Private ToolBar As ACToolBarLight
    Dim p As Panel
    Dim p1 As Panel
    Dim pnl_content001 As Panel
    Private clv1 As CustomListView
    Dim btn_addcontent As ImageView
    Dim btn_vote As ImageView
'    Dim TabStrip1 As TabStrip
End Sub
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")
    Activity.LoadLayout("frm_main")
    PC.Initialize
   
    p.Initialize("")
    p1.Initialize("")
    p.Color = Colors.RGB(Rnd(0,256), Rnd(0,256), Rnd(0,256))
    'TabStrip1.LoadLayout("frm_content", "Chatrooms")
    'TabStrip1.LoadLayout("frm_settings", "+20000")
    p.RemoveView
    p.LoadLayout("frm_content")
    p1.RemoveView
    p1.LoadLayout("frm_settings")
    PC.AddPage(p, "Location")
    PC.AddPage(p1, "Settings")
    VP.PageContainer = PC
    Dim ac As AppCompat
    TabLayout.Color = ac.GetThemeAttribute("colorPrimary")
    TabLayout.SetViewPager(VP)
    TabLayout.SetTabText(0, "Location")
    TabLayout.SetTabText(1, "Settings")
    For i = 1 To 10
        clv1.Add(CreateListItem($"Item #${i}"$, clv1.AsView.Width, 160dip), 160dip, $"Item #${i}"$)
    Next
End Sub
Sub CreateListItem(Text As String, Width As Int, Height As Int) As Panel
    Dim pan As Panel
    pan.Initialize("")
    'we need to add the panel to a parent to set its dimensions. It will be removed after the layout is loaded.
    Activity.AddView(pan, 0, 0, Width, Height)
    pan.LoadLayout("frm_compo")
    pan.RemoveView
    'label1 and button1 will point to the last added views.
    'p.Color = MyColors(ColorIndex)
    pnl_content001.Color = MyColors(ColorIndex)
    ColorIndex = (ColorIndex + 1) Mod MyColors.Length
    Return pan
End Sub
	why i dont see the cutomlistview with his entrys?
The completet project can you Download here: https://1drv.ms/u/s!AupZtTpO80tCgpYgvzPsLIhAImFfMg
thanks for help!