Sub InitializeNavDrawerAndIME
ime.Initialize("ime")
ime.AddHeightChangedEvent
Dim e As Panel = Activity.Parent
e.RemoveAllViews
Dim p As Panel = e.Parent
p.RemoveAllViews
p.AddView(Activity, 0, 0, 100%x, 100%y)
'Initialize the NavDrawer object. This modifies the internal Layout structure of your Activity
'and adds the Navigationdrawer.
'Attention: THIS HAS TO BE DONE BEFORE LOADING A LAYOUT TO THE ACTIVITY!
NavDrawer.Initialize2("NavDrawer", Activity, NavDrawer.DefaultDrawerWidth, NavDrawer.GRAVITY_START)
p = Activity.Parent
Dim p2 As Panel = p.Parent
p.RemoveView
p2.AddView(e, 0, 0, 100%x, 100%y)
e.AddView(p, 0, 0, 100%x, 100%y)
End Sub