Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-15902

Android: No animation using buttongrid widget

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium SDK 3.2.0.v20131121163252
      Titanium CLI 3.2.0
      Alloy 1.2.2
      Android 4.2.2 / Genymotion device

      Description

      Hi,

      during buttongrid widget relayout, buttons animation doesn't occur.

      Animation is fine when triggered on click event as following :

      function moveToCenter(e) {
      	var btn = $.serviceGrid.getButton(e.source.id);
      	btn.animate({
      		top: 0,
      		left: 0,
      		duration: 100
      	});	
      }
       
      $.serviceGrid.init({
          buttons: [
      { id: 'btnSettings', title: "Paramètres", click: moveToCenter }
          ],
          buttonWidth: Alloy.isTablet ? 180: 90,
          buttonHeight: Alloy.isTablet ? 180 : 90,
          duration: 100,
          assetDir: '/images/buttons/'
      }); 
      

      From Tester:

      Steps to Reproduce:

      1. Create(import) a new project from the attached project zip
      2. Run the app on an Android device
      3. Change to the second tab
      4. Change the device orientation several times
      5. Notice that the animation occurs, but the grid is not always displayed properly (especially if on tab 2, switch to tab 3, change orientation, then switch back to tab 2)

      Additional Notes:

      When I tested this on a Galaxy Tab 2, the app would crash when trying to change to tab 2 or 3. I do not see the animations upon pressing the button on Tab 3 and the button becomes inaccessible after pressing it and changing orientations (you have to change the orientation back).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sdelcroix Sébastien DELCROIX
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17982
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration