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

Android: layout vertical and zIndex problem

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 3.1.0, Release 3.2.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      SDK 2.1.3 GA, 3.1 GA, 3.2 CI
      Android 4.x on Google Nexus 7
      Android 2.3.6 on Samsung Galaxy S2

    • Story Points:
      8

      Description

      Expected result
      The red view should be located on the black view.

      Actual result
      The black view is missing.

      Note
      Works on iOS (both the red view and black view show), but not Android.

      Test case

      var win = Ti.UI.createWindow({
      	backgroundColor : '#fff',
      	navBarHidden : true,
      	exitOnClose : true
      });
       
      var view = Ti.UI.createView({
      	layout : 'vertical'
      });
       
      view.add(Ti.UI.createView({
      	width : 200,
      	height : 50,
      	backgroundColor : 'red',
      	zIndex : 1
      }));
       
      view.add(Ti.UI.createView({
      	height : 50,
      	backgroundColor : 'black',
      	top : -15
      }));
       
      win.add(view)
       
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                msamah Ashraf Abu (Inactive)
                Reporter:
                ptquang86 Quang Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

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

                    Git Integration