jeffbonnes / ti-yet-another-slider-menu

An sample 'Facebook' style slider for Titanium
Other
14 stars 16 forks source link

can't click on title bar button + screen refresh on first click + menu bar disappearing #3

Open ntorvik opened 11 years ago

ntorvik commented 11 years ago

The problems are Android specific:

problem #1:

In app.js I had to set 'var started = false' otherwise when you clicked on the title button it would not extend out the slider window. IF you clicked about 20 times or so it would eventually work..but something was causing it to stick... setting this variable from 'true' to 'false' fixed it for me on two android devices. It also appears to work just fine under iOS with this variable set as well even though iOS did not exhibit this behavior.

problem #2:

clicking on the 'open next window' button would make the slider menu button+bar (the open/close button) disappear entirely (in IOS it works fine). On one Android device I can click on the 'open next window' button and cycle through the random colors and then get back by pressing the android back button. On my Samsung Galaxy Note 2, pressing the android back button exits the app entirely and does not allow you to cycle back the beginning. in IOS it works. The title bar and menu buttons are present (I wish the GUI controls+behavior was the same across platforms).

problem #3:

1+#2 I can work around but this one is a bit more perplexing. On android when you open the slider menu and select (for example) 'Blue' the slider menu as well as the main window does a flickering screen refresh and it is very noticeable. Clicking on any subsequent menu items ('Green, Purple, Yellow, Long Window, Pink') does the same. But only once... the screen refresh of the windows happens only once for each menu item but clicking on any previous menu item results in a smooth loading of the color or Long Window content without the annoying flickering refresh. I have tried to utilize (in app.js) the slider.preLoadWindow function you had commented out, and I tried the default of 3 as well as setting it to 5. But it appears this function does not work as I thought it would. IF there was a way to preload the menu items in advance to avoid the window refresh being noticeable and make it smooth (like it does for IOS) then this example code would be perfect.

jeffbonnes commented 11 years ago

Can you provide some more information about what Ti SDK you are using, what Android SDK you are building with, and what version of Android you are running on? Device or Emulator?

Something changed in the TiSDK 3+ that is causing #3 I think, but need to investigate. Problems #1 and #2 I have not seen before.

ntorvik commented 11 years ago

At the time I was using 3.1.2. I just updated to 3.1.3GA and the problem still exists. The Android SDK I am compiling against is 2.3.3. The three Android devices I was running it on are:

Samsung Galaxy Note 2 (running stock ROM from Samsung): v. 4.1.2 HTC EVO 4G: (rooted running CyanogenMod ROM): v. 4.2.1 HP Touchpad running CyanogenMod (CM_Tenderloin): v. 4.0.4 \ rotating the screen on this device yields unpredictable results/glitches

Which one did you use? I am curious if switching SDK's would yield different results.

jeffbonnes commented 11 years ago

The original build that is work was Ti SDK 2.1.3. I'm working on a fix for 3.1.3 at the moment. I'll let you know how it goes.