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: 780
  • Screenshot_2017-01-21-01-48-17.png
    Screenshot_2017-01-21-01-48-17.png
    34.5 KB · Views: 769
  • AccordionPanelLib.zip
    30.3 KB · Views: 384

smercan

Member
Licensed User
Longtime User
Update for SubExist in the event triggers..

B4X:
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.
 

rafaelbr20

Member
Licensed User
Longtime User
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
 

james_sgp

Active Member
Licensed User
Longtime User
Like the accordion library, but how do I create custom panels to show; i.e. with buttons, dropdowns, etc...?

James
 
Top