#AdditionalRes: C:\Users\enrico\Documents\slidingMenu\res, com.jeremyfeinstein.slidingmenu.lib
I´ve edited the code, added the res folder to the project and changed the path to it.The code is standard code i upload here, could you please
#AdditionalRes: ..\res, com.jeremyfeinstein.slidingmenu.lib
#AdditionalJar: com.android.support:support-v4
I´ve edited the code, added the res folder to the project and changed the path to it.
After that i got an exception that android support v4 could not resolved. I added an additionaljar.
B4X:#AdditionalRes: ..\res, com.jeremyfeinstein.slidingmenu.lib #AdditionalJar: com.android.support:support-v4
See this example (tried with B4A 6.5 and Android 6)
Follow the Installation instructions here https://www.b4x.com/b4a.htmlDo i have to install something else?
B4A version: 6.50
Parsing code. (0.00s)
Compiling code. (0.04s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. Error
c:\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:\slidingmenu\res\values\styles.xml:5: error: Error: No resource found that matches the given name: attr 'homeAsUpIndicator'.
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
menu.setShadowWidthRes(R.dimen.shadow_width);
menu.setShadowDrawable(R.drawable.shadow);
menu.setFadeDegree(0.35f);
menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
Thank you Myron!,Hi
Please check this thread
Can you upload a test project showing the issue please.Thank you Myron!,
Do you know if exists any setting to set min width, because in larger screen or landscape mode Menu covers around 80% of the screen, all objects in menu seen unproportionate, distorted.
THank you in advance Myron
EDIT: Forget the question, i didnt see the offset and width, i set it to 300dip width, and offset Activity.Width - 300dip
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
#Extends: android.support.v7.app.AppCompatActivity
Sub Process_Globals
End Sub
Sub Globals
Private ACToolBarLight1 As ACToolBarLight
Private ToolbarHelper As ACActionBar
Private sm As SlidingMenu
Private ListView1 As ListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
ToolbarHelper.Initialize
ToolbarHelper.ShowUpIndicator = True 'set to true to show the up arrow
Dim bd As BitmapDrawable
bd.Initialize(LoadBitmap(File.DirAssets, "hamburger.png"))
ToolbarHelper.UpIndicatorDrawable = bd
ACToolBarLight1.InitMenuListener
sm.Initialize("sm")
Dim offset As Int = 100dip
sm.BehindOffset = offset
sm.Mode = sm.LEFT
Dim lftMenu As Panel
lftMenu.Initialize("")
sm.Menu.AddView(lftMenu, 0, 0, 100%x - offset, 100%y)
lftMenu.LoadLayout("Left")
For i = 1 To 30
ListView1.AddSingleLine("Item " & i)
Next
End Sub
Sub ACToolBarLight1_NavigationItemClick
sm.ShowMenu
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
LogCat connected to: 4c139dbe13c9b100
--------- beginning of /dev/log/main
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?