Android Question Left Drawer Unable to Show.

lkching7

Member
Licensed User
Longtime User
When I Create a Button In Green Area. When I Click The Button. The Left Drawer Would Not Show.
But When I Move The Button To Right Hand Side (Blue Area). The Left Drawer Will Come Out

WeChat Image_20200103104437.jpg



Code:
Drawer.Initialize(Me, "Drawer", Activity, 200dip)
Drawer.LeftPanel.LoadLayout("lyDrawerLeft")

Sub Activity_KeyPress (KeyCode As Int) As Boolean
    If KeyCode = KeyCodes.KEYCODE_BACK And Drawer.LeftOpen Then
        Drawer.LeftOpen = False
        Return True
    End If
    Return False
End Sub

Sub btnSideMenu_Click
    Drawer.LeftOpen=True
End Sub
 
Top