jfeinstein10 SlidingMenu library

Status
Not open for further replies.

Douglas Farias

Expert
Licensed User
Longtime User
I not understood that if is possible to insert image in top of menu.
It is possible? Like this

yes, you load a layout, u can add any view on your layout/panel
 

DonManfred

Expert
Licensed User
Longtime User
It is possible?
yes. Sure. you can add any View. Did you tried it? What is your code?

Dim img As ImageView
img.Initialize("Image")
img.Bitmap = LoadBitmapSample(File.DirAssets,"testmenu.jpg",320dip,160dip)

Dim b1, b2 As Button
b1.Initialize("b1")
b2.Initialize("b2")
b1.Text = "Button1"
b2.Text = "Button2"
sm.Menu.AddView(img, 10dip, 10dip, 100%x - offset - 20dip, 100dip)
sm.Menu.AddView(b1, 10dip, 110dip, 100%x - offset - 20dip, 50dip)
sm.Menu.AddView(b2, 10dip, 170dip, 100%x - offset - 20dip, 50dip)
 

kuosda

Active Member
Licensed User
Longtime User
Hello guys
Could somebody tell me, how to disable the SlidingMenuWrapper for a while?
I try with:

sm.Menu.Enabled = False
sm.Menu.Visible = False
sm.SecondaryMenu.Enabled = True
sm.SecondaryMenu.Visible = True

Or

sm.Menu.Enabled = True
sm.Menu.Visible = True
sm.SecondaryMenu.Enabled = False
sm.SecondaryMenu.Visible = False

but any of the above parameters does not works.
Is there something that I could get the event when the user try to use the menu?
Thank you
 

kuosda

Active Member
Licensed User
Longtime User
Thanks!
Because I want is
sm.Menu.Enabled = False
sm.Menu.Visible = False
AND
sm.SecondaryMenu.Enabled = True
sm.SecondaryMenu.Visible = True
 

Blue.Sky

Active Member
Licensed User
Longtime User
Hi Erel.
I use this library and it worked good.
But in android 5 and above,it work hardly and slowly
How fix it?
 

Javier Gutierrez

New Member
Licensed User
Longtime User
Hello,

I was playing with this sliding menu and works fine, but i was trying to action this menu from a Button.

It's that possible?

Regards,

Javier
 

Bel

Member
Licensed User
Hi
This library work perfect in android < 5
But now i test it Android 5 (Lolilop) and it's hanging
and cannot scroll and when i open it,app is hanging
 

Bel

Member
Licensed User
Please upload a small project that demonstrates this issue.
Erel i use it in big project (so use example source exist in forum)
I test it in simple app and no problem
but in my new and big project it crash
 

rad

Member
Licensed User
Longtime User
No. Only horizontal scrolling is supported.

Hi guys....

I have implement this slidingmenu wrapper in my project, so far so good (Thanks to jfeinstein10 & Erel).
But the vertical scroll can not available.

Do we have to set something in order to activate vertical scroll, or it will automatically activated?

Regards,
RAD
 

holdemadvantage

Active Member
Licensed User
Longtime User
Hi all, could you please help me? i get an error

B4X:
B4A version: 6.50
Parsing code.    (0.00s)
Compiling code.    (0.12s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
Generating R file.    Error
c:\users\enrico\documents\slidingmenu\res\values\styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock.Light.DarkActionBar'.
c:\users\enrico\documents\slidingmenu\res\values\styles.xml:5: error: Error: No resource found that matches the given name: attr 'homeAsUpIndicator'.

android path C:\Android\platforms\android-23\android.jar

The code is standard code i upload here, could you please
 

Attachments

  • sliding.zip
    7.1 KB · Views: 381
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…