Hi guys, today I am pleased to add to forum another gem, ICOSSlidingDrawer 1.0 the real SlidingDrawer.
You can load the layout previously created with visual designers, you can add any Visual, you can remove the single view or the entire layout etc.etc.etc. It's easy to use, all you need to do, take a look at the demo.
- Copy the res directory to your projects "Objects" folder
- Make all files copied to the Objects/res folder read only.
Any comments and any thanks will be appreciated.
G.Salvi
thanks to Martin Pearman for is great job Library and Module Reference generator.
ICOSSlidingDrawer
Author: Giuseppe Salvi
Version: 1
You can load the layout previously created with visual designers, you can add any Visual, you can remove the single view or the entire layout etc.etc.etc. It's easy to use, all you need to do, take a look at the demo.
Installation instructions:
- Copy the ICOSSlidingDrawer.xml and ICOSSlidingDrawer.jar files to your custom libraries folder- Copy the res directory to your projects "Objects" folder
- Make all files copied to the Objects/res folder read only.
Any comments and any thanks will be appreciated.
G.Salvi
thanks to Martin Pearman for is great job Library and Module Reference generator.
ICOSSlidingDrawer
Author: Giuseppe Salvi
Version: 1
- ICOSSlidingDrawer
Events:- OnDrawerClosed
- OnDrawerOpened
- OnScrollEnded
- OnScrollStarted
- SlideFromBottom As Int
- SlideFromLeft As Int
- SlideFromRight As Int
- SlideFromTop As Int
- AddView (view As View, left As Int, top As Int, width As Int, height As Int)
Adds a child view with the specified [ left, top, width, height ]. - AnimateClose
Closes the drawer with an animation. - AnimateOpen
Opens the drawer with an animation. - AnimateToggle
Toggles the drawer open and close with an animation. - BringToFront (view As View)
Change the z order of the child so it's on top of all other children. - HideView (view As View)
Hide a child view that you want to use later. - Initialize (EventName As String, Orientation As Int)
Intitialize the Object
example:
Dim sd As ICOSSlidingDrawer
Initialize("sd",sd.SlideFromBottom) - IsInitialized As Boolean
- IsMoving As Boolean
Indicates whether the drawer is scrolling or flinging. - IsOpened As Boolean
Indicates whether the drawer is currently fully opened. - LoadLayout (Layout As String)
Load the layout file created with the visual designer in SlidingDrawer. - Lock
Locks the SlidingDrawer so that touch events are ignores. - RemoveLayout
Removes the entire layout you previously loaded. - RemoveViewAt (index As Int)
Removes the view at the specified position in the group. - ReplaceView (oldView As View, newView As View)
Replace a view with any other, to the same position
Example:
Dim sd As ICOSSlidingDrawer
Dim btn As Button
btn.Initialize("btn")
sd.ReplaceView(img1,btn) it will Replace the btn to the same position of img. - RotatateHandle
Auto-rotate the Handle. - RotatateHandleBack
Auto-rotate back the Handle. - SendToBack (view As View)
Change the z order of the child so it's on back of all other children - ShowView (view As View)
Show a child view previously hidden. - SlidingClose
Close the drawer immediately. - SlidingOpen
Opens the drawer immediately. - SlidingToggle
Toggles the drawer open and close. - UnLock
Unlocks the SlidingDrawer so that touch events are processed.
- BackgroundColor As Int [write only]
Sets the background color for this view. - BackgroundDrawable As Drawable [write only]
Set the background to a given Drawable, or remove the background. - BackgroundImage As Bitmap [write only]
Set the background to a given bitmap. - BackgroundResource As String [write only]
Set the background to a given resource. - ChangeHandleImage As Bitmap [write only]
Change the Image Handle to a given Bitmap. - ChangeHandleImageFromRes As String [write only]
Change the Image Handle to a given resource. - ChildCount As Int [read only]
Returns the number of children in the group. - StartAnimation As Animation [write only]
Sets the animation to play for this view. - StartAnimationFromRes As String [write only]
Sets the animation from resource to play for this view. - Version As Double [read only]
Return the version of this library
Attachments
Last edited: