Ti.DrawerLayout | module adds support for using the DrawerLayout in Titanium | Navigation library
kandi X-RAY | Ti.DrawerLayout Summary
kandi X-RAY | Ti.DrawerLayout Summary
This module adds support for using the DrawerLayout in Titanium Apps. The Drawer Layout is a view that can be pulled from the edge of a window. This can answer various purposes. The most common use case is the Navigation Drawer as seen in the above screenshot. The Navigation Drawer displays navigation options in a drawer which slides in from the left edge. To expand the drawer the user can either touch the app icon or swipe from the left edge. The navigation drawer overlays the content but not the action bar.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Called when a property is changed
- Initialize the drawer toggle
- Initializes the left drawer
- Replace the centerView with the given view proxy
- Handles the message
- Handles the right drawer
- Toggles the right drawer
- Handles the close view
- Opens the right window
- Gets or creates view
- Set the arrow state
- Replaces the center view
- Release all views held by the drawer proxy
- Releases the drawer proxy
- Is the right drawer visible?
- Is the right drawer open?
- Is the left drawer visible?
- Is the left drawer open?
- Close left view
- Releases all views
- Closes the right window
- Opens the left window
- Toggle right window
- Toggle left window
- Overrides super class method
- Allows the user to intercept the touch event
Ti.DrawerLayout Key Features
Ti.DrawerLayout Examples and Code Snippets
Community Discussions
Trending Discussions on Ti.DrawerLayout
QUESTION
I am using this module (https://github.com/manumaticx/Ti.DrawerLayout) for the drawer in my Android app. However, I am seeing a memory leak in that replacing the centerView results in any previous views being retained. I am seeing the exact same scenario as described in this issue (https://github.com/manumaticx/Ti.DrawerLayout/issues/72), right down to the leaked activities in the memory analyzer. If I keep adding new views to the drawer it will eventually crash with OOM (code is at the bottom).
Now, the issue I linked seems to indicate it is fixed, but when I pull 2.0.0 from gittio (http://gitt.io/component/com.tripvi.drawerlayout) it still has the issue.
Everyone seems to use this drawer, though, and I don't understand how it's useable at all. Has anyone independently discovered a workaround?
Here is my code to exchange the centerview of the drawer.
...ANSWER
Answered 2017-Mar-17 at 17:12I was unable to find a solution, so I wrote my own drawer.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Ti.DrawerLayout
Install it following this guide
with gittio: $ gittio install com.tripvi.drawerlayout
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page