GithubHelp home page GithubHelp logo

ricardoalcocer / alloy-widget-drawermenu Goto Github PK

View Code? Open in Web Editor NEW
103.0 103.0 156.0 57.22 MB

An Appcelerator Alloy Widget to implement a slide-in, drawer-style menu

JavaScript 60.49% CSS 7.72% Python 31.79%

alloy-widget-drawermenu's Introduction

Hi there ๐Ÿ‘‹

I'm a curious computer scientist always trying to learn new stuff.

Feel free to browse around. Excuse the mess..I'm still learning! ๐Ÿ™‚

Alco's GitHub stats

Most Used Languages

alloy-widget-drawermenu's People

Contributors

danpe avatar juanumusic avatar ricardoalcocer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alloy-widget-drawermenu's Issues

problem with SDK 3.5.0 and later

Hello and thanks to this widget .
I noticed that the widget does not work if you use an SDK 3.5.0 and later !
do you have any solution ?

Recalculation of width

Hi Ricardo!
I've been having some issues with the width recalculation, and found out that this line is useless:
if (OS_ANDROID)
newWidth /= Ti.Platform.displayCaps.logicalDensityFactor;

In android, by just using Ti.Platform.displayCaps.logicalDensityFactor works just fine;
In fact, it messes up with the width of the main container if you divide the new width with the logical density factor.

Cand you explain exactly why this is set?
In my case it was safe to remove it and I can pull a request to merge my changes, unless we can figure out why is that line important!

Saludos!

Centering contents inside of the menu

I've been having issues centering labels and imagines in the menu container. It seems that this is occurring because the width of the menu is greater than the display area of the menu on the device screen. This leads to everything being offset to the right, or on some large screen sizes, not being displayed at all.

hide navbar on andriod

Hi, and thanks for your wonderful plugin.

when i use this widgets , there are an nav bar on the top of screen in android platform,

I don't know how to remove it , or where to put navbarhidden command.

I hope to find the answer

thanks

Trouble with android behavior

Hello,
the widget runs perfectly in IOS, but in Android after the first open() call the other view in mainview gets cropped while in IOS it doesn't happend.

Demos failing when launching...

Hi

This widget looks like what I need. I have found many with classic code - but I really want to use Alloy instead ;-)

I have downloaded the project and tried to run the demos on iPhone. However, they fail at the same place in index.js:

$.drawermenu.addEventListener('open', function menuOpen () {
Ti.API.info("Menu opened");
});

The error is (here from tishadow - but it is the same if run directly):

[ERROR] [iphone, 7.1, 192.168.42.38] TypeError: 'undefined' is not a function (evaluating '$.drawermenu.addEventListener("open", function() {
__log.info("Menu opened");
})')

I have tried the "demo" app inside the project. I also tried to use the "ActionBar Demo" - for Android emulator (using titanium_17_WVGA854). It failed either with a timeout or with "Not enough free space on the device". Then I tried to enable iPhone in tiapp.xml - but that fails with the same error as above?

What am I missing to make this run?

I'am on Mac OS 10.9.3 and Studio 3.2.3

/John

Screen rotation

On android real phone or emulator.
If you change the screen orientation while the app is loading (on splash screen) you get the following error
Location:
[44,57] alloy/widgets/com.drawermenu.widget/controllers/widget.js
Message:
"Uncaught TypeError: Cannot read property 'paltformWidth' of undefined"
Source:
$.drawermainview.width=Ti.Platform.displayCaps.platformWidth;


Log from emulator
[INFO][ActivityManager( 277)] Config changes=1480 {1.0 310mcc260mnc en_US ldltr sw320dp w527dp h294dp 240dpi nrml land finger -keyb/v/h tball/v s.40} [INFO][InputReader( 277)] Reconfiguring input devices. changes=0x00000004 [INFO][InputReader( 277)] Device reconfigured: id=0, name='qwerty2', size 480x854, orientation 1, mode 1, display id 0
[ERROR]TiExceptionHandler( 1884) [823,5245] ----- Titanium Javascript Runtime Error -----
[ERROR]TiExceptionHandler( 1884) [3,5248] - In alloy/widgets/com.drawermenu.widget/controllers/widget.js:44,57
[ERROR]TiExceptionHandler( 1884) [17,5265] - Message: Uncaught TypeError: Cannot read property 'platformWidth' of undefined
[ERROR]TiExceptionHandler( 1884) [7,5272] - Source: $.drawermainview.width = Ti.Platform.displayCaps.platformWidth;

[ERROR][V8Exception( 1884)] Exception occurred at alloy/widgets/com.drawermenu.widget/controllers/widget.js:44: Uncaught TypeError: Cannot read property 'platformWidth' of undefined

Same issue created on http://developer.appcelerator.com/question/157633/alloy---drawermenu---widget

Actionbar demo

Hi Ricardo,
I am trying to use your widget as actionbar in Android.

It doesn't show me the icon in the Action Bar.
Do you have some suggestions?

Bye,
Matteo.

Multiple views Android

Hi,
I have used drawer menu to remove the tabgroup from the app, and have a sliding menu. I have multiple views in one , on click of one menu item i hide the present view and show the new one. But at this time the menu icon is not clickable. Is there something m missing to do?

lock landscape mode for Android

I tried locking landscape for Android

tries editing android XML

also, tried these tweaks

Ti.Gesture.addEventListener('orientationchange', function(e) {

Ti.Android.currentActivity.setRequestedOrientation(Ti.Android.SCREEN_ORIENTATION_PORTRAIT);

});
$.home.orientationModes = [Titanium.UI.PORTRAIT];

works perfect for screen that do not have drawer menu , but any screen that is part of drawer menu goes to landscape and sometimes even app restarts or crashes

any idea what I am doing wrong here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.