Help Me
How To Solve this Problem ...
And Then
i ask one more question
java.lang.Exception: Sub lv1_itemclick signature does not match expected signature.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:177)
at anywheresoftware.b4a.BA$2.run(BA.java:285)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4456)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
at dalvik.system.NativeStart.main(Native Method)
java.lang.Exception: Sub lv1_itemclick signature does not match expected signature.
How To Solve this Problem ...
And Then
i ask one more question
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
Dim NavDrawer As AHNavigationDrawer
'ListView inside Nav Drawer
Dim LV1 As ListView
'Panel holds NavDrawer's content
Dim pContent As Panel
'Amount to descend when drawer opens
Dim descendAmount As Int = 20dip
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
' Activity.LoadLayout("Main")
Activity.Title = "Slide out drawer"
'Initialize the navigation drawer.
NavDrawer.Initialize("NavDrawer", Activity, 240dip)
'We add the ListView to our NavigationPanel and set it up
LV1.Initialize("LV1")
NavDrawer.NavigationPanel.AddView(LV1, 0, 100dip, 100%x, 100%y)
NavDrawer.NavigationPanel.Color = Colors.ARGB(88,98,98,98)
LV1.AddSingleLine2("Test", 1)
'Remove the fade on the background when drawer is open
SetScrimColor(NavDrawer, Colors.Transparent)
pContent.Initialize("")
NavDrawer.ContentPanel.AddView(pContent, 0 ,0, 100%x, 100%y)
pContent.Color = Colors.Green
'Send behind the drawer
pContent.SendToBack
'' pContent.LoadLayout("")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub SetScrimColor(Nav As AHNavigationDrawer, Color As Int)
Dim r As Reflector
r.Target = Nav
r.Target = r.GetField("mNavDrawer")
r.RunMethod4("setScrimColor", Array As Object(Color), Array As String("java.lang.int"))
End Sub
'Animate on sliding the drawer
Sub NavDrawer_DrawerSlide (Position As Float, DrawerGravity As Int)
Dim Offset As Int = Position * descendAmount
pContent.Left = Offset
pContent.top = Offset
pContent.Width = 100%x - 2 * (Offset)
pContent.Height = 100%y - 2 * (Offset)
End Sub
Sub LV1_ItemClick ( Item As String, Value As Object, Position As Int)
If Item = 1 Then
MsgBox("Test","What")
Log("Test")
End If
NavDrawer.CloseDrawer
End Sub
java.lang.Exception: Sub lv1_itemclick signature does not match expected signature.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:177)
at anywheresoftware.b4a.BA$2.run(BA.java:285)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4456)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
at dalvik.system.NativeStart.main(Native Method)
java.lang.Exception: Sub lv1_itemclick signature does not match expected signature.