B4A Library Accordion Panels CustomView Library

Hello to everyone
I wanted to share with everyone the accordion panel library I developed for my own needs.

Compiled library and codes are added.

At the first sight, it seems so simple and not decorated but I thought that; you can put every thing into the panels.

If this be helpful to you will make me happy.

Greetings...
 

Attachments

  • Screenshot_2017-01-21-01-47-44.png
    Screenshot_2017-01-21-01-47-44.png
    26.3 KB · Views: 1,109
  • Screenshot_2017-01-21-01-48-17.png
    Screenshot_2017-01-21-01-48-17.png
    34.5 KB · Views: 1,160
  • AccordionPanelLib.zip
    AccordionPanelLib.zip
    30.3 KB · Views: 573
Update for SubExist in the event triggers..

Code: Copy
Sub animate_end
    If isOnlyOnePanelOpen And previousPanelPS.index<>slidingPanelPS.index Then
        previousPanelPS.isOpened=False
    End If
   
    Dim previousPanelPS As PanelSet = psMap.GetValueAt(slidingPanelPS.index)
   
    Dim p As Panel = panelMap.GetValueAt(previousPanelPS.index)
   
    If SubExists(CallBack,EventName & "_PanelSlided") Then CallSubDelayed3(CallBack,EventName & "_PanelSlided",p,slidingPanelPS.isOpened)
End Sub

Also need to add a check sub is exist inside the slideToggle_click.

Updated library and codes inside the first post.
 
Hi smercan !

Cannot find: C:\Program Files (x86)\Anywhere Software\Basic4android\libraries\nineoldandroids.jar

And in your example

Error description: Unknown type: noaanimatorset
Are you missing a library reference?
Occurred on line: 26 (AccordionPanel)
Private AnimSet As noaAnimatorSet

Thanks
 
Like the accordion library, but how do I create custom panels to show; i.e. with buttons, dropdowns, etc...?

James
 
Back
Top