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

Android: View.setLayout() does not change the view's layout property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.2.0
    • Component/s: Android
    • Environment:

      Titanium SDK 3.0 GA Android Device and Simulator, app built with Alloy

      Description

      I've added an event to a button to change the layout property of a view. Each tap will turn the layout of this view to horizontal -> vertical -> composite then come back at horizontal, etc...

      In the iOS simulator everything works like expected, the children views are relocated as the layout of the parent changes. But it does not work in the Android simulator or Android device (HTC Sensation, Android 4.1) They stay at the same place.

      (The purpose of this app, was a simple test to understand the layout property.)

      Could this be a bug?

        Attachments

        1. app.zip
          5.50 MB
        2. LayoutChange-Composite.png
          LayoutChange-Composite.png
          34 kB
        3. LayoutChange-Horizontal.png
          LayoutChange-Horizontal.png
          34 kB
        4. LayoutChangeTest.js
          1 kB
        5. LayoutChange-Vertical.png
          LayoutChange-Vertical.png
          34 kB

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              vjoshi Varun Joshi
              Reviewer:
              Gary Mathews
              Tester:
              Lokesh Choudhary
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code