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

TiUIMapView: Not loading at all (Nested fragments)

    Details

    • Story Points:
      13
    • Sprint:
      2015 Sprint 12 SDK

      Description

      TIMOB-18244 - Map view as center view for drawer layout works just fine.

      But placing map view into a wrapper view and setting the same as center view for drawer layout, never lets the map load.

      May be using http://developer.android.com/reference/android/app/Fragment.html#getChildFragmentManager() can fix this. Not sure how

      Test Case

      var TiDrawerLayout = require('com.tripvi.drawerlayout');
      var Map = require("ti.map");
      var win = Ti.UI.createWindow({
          backgroundColor : 'white'
      });
      var drawer = TiDrawerLayout.createDrawer();
      var menu = Ti.UI.createTableView({
          data : [{
              title : "Home"
          }, {
              title : "About"
          }]
      });
      var wrapperView = Ti.UI.createView({
          backgroundColor : 'orange',
      });
      wrapperView.add(Ti.UI.createLabel({
          top : 10,
          text : "I would like to place a list view or some other compoent here, now map never loads",
          color : "#fff"
      }));
      var mapview = Map.createView({
          bottom : 0,
          height : "50%",
          fragmentOnly : true //setting this to false crashes the app 
      });
      wrapperView.add(mapview);
      drawer.setLeftView(menu);
      drawer.setCenterView(wrapperView);
      win.add(drawer);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              mano_mykingdom Manojkumar Murugesan
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code