B4A Library Side swipe sliding menu library

Peter Simpson

Expert
Licensed User
Longtime User
Hello,
This is something that I will include in the near future. But at the moment I've got a large asp.net project I'm working on and I've not touched B4A in well over a month. I will add it shortly as an switchable option.

Now it's time to continue with my VS 2012 work.

Cheers...
 

grant1842

Active Member
Licensed User
Longtime User
Great Job .
And chance an option for the menu button to be moved over to the right so it is in Full view.
I have a protective case for my phone and the half image is hard to press.
THanks and great job.
 

NINlol

Member
Licensed User
Longtime User
Hello Peter,

Could you create an option so you only have the sliding menu without the action button on the top?

Thank you
 

Richard Goh

Active Member
Licensed User
Longtime User
Hi Peter,
It is a good library. I also agreed with NINlol suggestion to have an option to hide the menu title bar and the action button.
I had a question on the linrary that how can i change the color on the sliding menu when scroll it? i did a change on the MenuColor to Colors.Red. It does shown the read color when menu is swiped open. But the color doesn't changed on when I tried to scroll the menu. It's shown in original color (grey). Is there a way to change the menu color during scrolling as well?
 

Peter Simpson

Expert
Licensed User
Longtime User
Hello @Richard Goh and @NINlol.
As requested I've quickly added the option to show or hide the top sliding menu button. Please download the latest library V1.32 and replace V1.31 on your machines. I've also updated the demo code attached to this post.

You will need to add the following line as a declaration to your Process_Globals(if that's where you kept the menu variables).
B4X:
Dim ShowSlideButton As Boolean = False

You will also need to modify the SlidingMenu.InitializeActionBar by adding the ShowSlideButton variable at the end.
B4X:
SlidingMenu.InitializeActionBar(Activity, ActBarcolor, ActbarLineColor, AcrBarCornerRadius, ShowSlideButton)

There you have it. You can now switch the top sliding menu button on and off at will.

Enjoy
 
Last edited:

Richard Goh

Active Member
Licensed User
Longtime User
Hi! Peter,
Thanks for the quick fixed. Great job. Btw, did you encountered that the menu color doesn't change when scrolling if we changed to other color. It's still remain gray during menu scrolling time. Can you provide additional option to change the scrolling color as well? That's will be great if can. I tried to change the menu color to red in Process_Global declaration as below.

Dim MenuColorAsInt = Colors.Red 'Colors.DarGray
 

Nickelgrass

Active Member
Licensed User
Longtime User
Hello Peter,
great lib, just what I was looking for. (Would it be possible to also choose the ActionbarTextColor?) I need a white actionbar and the light gray text is a bit hard to see. Can I contact you by email via www.simplyinvoice.co.uk?
Regards

Edit: Just found out about the TextColor.
 

billyrudi

Active Member
Licensed User
Longtime User
Hi,
can you add a function tu show and hide the menu from code?
SlidingMenu.Show
SlidingMenu.Hide

regards Paolo
 

Russ

Member
Licensed User
Longtime User
Hello,

This is great thank you. Is it possible to remove the actionbar entirely and then set the top value for the slide out menu please? I would just like to use the flyout element.

Thanks for your time!
 

jah

New Member
Licensed User
Longtime User
Hello,

This is great thank you. Is it possible to remove the actionbar entirely and then set the top value for the slide out menu please? I would just like to use the flyout element.

Thanks for your time!

Not sure if this is what you're looking for but using the sample code provided I made the actionbar transparent:

Dim ActBarcolor As Int = Colors.ARGB(0, 0, 0, 0)
Dim ActbarLineColor As Int = Colors.Transparent


And also got rid of the actionbar text in the BuildMenu sub.

Hope that helps.
 

wildfandango

Member
Licensed User
Longtime User
Hi Peter...

First of all thx for sharing this great library...

The method SlidingMenu.MenuHide hide (with animation the menu)

there exist a SlidingMenu.MenuShow or another way to show (with animation to)??

Thx for all
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…