Press on the image to return to the main documentation page.
AHNavigationDrawer
Written by Markus Stipp
List of types:
AHNavigationDrawer
SlideDrawable
AHNavigationDrawer
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
DrawerClosed (DrawerGravity as Int)
DrawerOpened (DrawerGravity as Int)
DrawerSlide (Position As Float, DrawerGravity as Int)
DrawerStateChanged (State as Int)
Members:
AddSecondaryDrawer
(
Width
As
Int
,
Gravity
As
Int
)
CloseDrawer
CloseDrawer2
(
Gravity
As
Int
)
ContentPanel
As
PanelWrapper
[read
only]
DRAWERSTATE_DRAGGING
As
Int
DRAWERSTATE_IDLE
As
Int
DRAWERSTATE_SETTLING
As
Int
GetEdgeSize
(
Gravity
As
Int
)
As
Int
GetLockMode
(
Gravity
As
Int
)
As
Int
GRAVITY_END
As
Int
GRAVITY_LEFT
As
Int
GRAVITY_RIGHT
As
Int
GRAVITY_START
As
Int
Initialize
(
EventName
As
String
,
Panel
As
PanelWrapper
,
NavWidth
As
Int
)
Initialize2
(
EventName
As
String
,
Panel
As
PanelWrapper
,
NavWidth
As
Int
,
Gravity
As
Int
)
IsDrawerOpen
As
Boolean
IsDrawerOpen2
(
Gravity
As
Int
)
As
Boolean
LOCK_MODE_LOCKED_CLOSED
As
Int
LOCK_MODE_LOCKED_OPEN
As
Int
LOCK_MODE_UNLOCKED
As
Int
NavigationPanel
As
PanelWrapper
[read
only]
OpenDrawer
OpenDrawer2
(
Gravity
As
Int
)
SecondaryNavigationPanel
As
PanelWrapper
[read
only]
SetEdgeSize
(
Gravity
As
Int
,
EdgeSize
As
Int
)
SetLockMode
(
Gravity
As
Int
,
LockMode
As
Int
)
SetShadowDrawable
(
Gravity
As
Int
,
Drawable
As
android
.
graphics
.
drawable
.
Drawable
)
ShadowDrawable
As
android
.
graphics
.
drawable
.
Drawable
[write
only]
Members description:
AddSecondaryDrawer
(
Width
As
Int
,
Gravity
As
Int
)
Add a second drawer to the NavigationDrawer. Only two drawers are supported currently.
Width - width of the new navigation drawer
Gravity - gravity for the drawer
CloseDrawer
Closes the Drawer
CloseDrawer2
(
Gravity
As
Int
)
Closes the Drawer with the given gravity.
Gravity - Gravity of the drawer
ContentPanel
As
PanelWrapper
[read
only]
The Panel object where the content of your activity should go.
DRAWERSTATE_DRAGGING
As
Int
DRAWERSTATE_IDLE
As
Int
DRAWERSTATE_SETTLING
As
Int
GetEdgeSize
(
Gravity
As
Int
)
As
Int
Get the touch sensitive edge size for the given drawer
Gravity - Gravity of the drawer
GetLockMode
(
Gravity
As
Int
)
As
Int
Get the LockMode of the drawer. You can unlock it or lock it in open or closed state.
Gravity - Gravity of the drawer
LockMode - Locking mode
GRAVITY_END
As
Int
GRAVITY_LEFT
As
Int
GRAVITY_RIGHT
As
Int
GRAVITY_START
As
Int
Initialize
(
EventName
As
String
,
Panel
As
PanelWrapper
,
NavWidth
As
Int
)
Initializes the navigation drawer. The gravity for the drawer is GRAVITY_START.
EventName - Name of the event
Panel - Parent panel for the navigation drawer.
NavWidth - The width of the navigation panel.
Initialize2
(
EventName
As
String
,
Panel
As
PanelWrapper
,
NavWidth
As
Int
,
Gravity
As
Int
)
Initializes the navigation drawer with the given gravity.
EventName - Name of the event
Panel - Parent panel for the navigation drawer.
NavWidth - The width of the navigation panel.
Gravity - The Gravity for the drawer (START, END, LEFT, RIGHT)
IsDrawerOpen
As
Boolean
Check if the drawer is open.
IsDrawerOpen2
(
Gravity
As
Int
)
As
Boolean
Check if the drawer is open.
Gravity - Gravity of the drawer
LOCK_MODE_LOCKED_CLOSED
As
Int
LOCK_MODE_LOCKED_OPEN
As
Int
LOCK_MODE_UNLOCKED
As
Int
NavigationPanel
As
PanelWrapper
[read
only]
The Panel object for the navigation drawer. You should add something like a ListView to this panel.
OpenDrawer
Opens the Drawer
OpenDrawer2
(
Gravity
As
Int
)
Opens the Drawer with the given gravity.
Gravity - Gravity of the drawer
SecondaryNavigationPanel
As
PanelWrapper
[read
only]
The Panel object for the secondary navigation drawer. You should add something like a ListView to this panel.
SetEdgeSize
(
Gravity
As
Int
,
EdgeSize
As
Int
)
Set the touch sensitive edge size for the given drawer
Gravity - Gravity of the drawer
EdgeSize - Size of the touch sensitive edge (use dip values)
SetLockMode
(
Gravity
As
Int
,
LockMode
As
Int
)
Set the LockMode of the drawer. You can unlock it or lock it in open or closed state.
Gravity - Gravity of the drawer
LockMode - Locking mode
SetShadowDrawable
(
Gravity
As
Int
,
Drawable
As
android
.
graphics
.
drawable
.
Drawable
)
Sets a shadow drawable for the navigation drawer
Gravity - Gravity of the drawer
Drawable - Drawable of the shadow
ShadowDrawable
As
android
.
graphics
.
drawable
.
Drawable
[write
only]
Sets a shadow drawable for the navigation drawer
SlideDrawable
Events:
None
Members:
Initialize
(
wrapped
As
android
.
graphics
.
drawable
.
Drawable
)
IsInitialized
As
Boolean
Offset
As
Float
OffsetBy
As
Float
[write
only]
Members description:
Initialize
(
wrapped
As
android
.
graphics
.
drawable
.
Drawable
)
IsInitialized
As
Boolean
Offset
As
Float
Sets or gets the current offset of the image.
If set to 0 the image will be completely visible. If set to 1 the image
will be moved out of the visible area as set by the OffsetBy value.
OffsetBy
As
Float
[write
only]
Sets the maximum slide offset. If you set this to 1 the image will be
completely moved outside the visible area. Standard value is 0.33
Top