skill27
Member
B4X:
Sub ACToolBarLight1_NavigationItemClick
Drawer.LeftOpen = Not(Drawer.LeftOpen)
Drawer.RightOpen = False
End Sub
Sub RightNavigation_Click
Drawer.RightOpen = Not(Drawer.RightOpen)
Drawer.LeftOpen = False
End Sub
Sub page_back
WebView2.Back
'WebView3.Back
'WebView4.Back
'WebView5.Back
'WebView6.Back
'WebView7.Back
'WebView8.Back
'WebView9.Back
End Sub
Sub Activity_KeyPress (KeyCode As Int) As Boolean
Select KeyCode
Case KeyCodes.KEYCODE_BACK:
page_back
Return True
Case Else
Return False
Activity.LoadLayout("1")
End Select
If KeyCode = KeyCodes.KEYCODE_BACK Then
If Drawer.LeftOpen Then
Drawer.LeftOpen = False
Return True
End If
If Drawer.RightOpen Then
Drawer.RightOpen = False
Return True
End If
End If
Return False
End Sub