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

Android: Scrollable view "addView" method not working

    Details

      Description

      Scrollable View "addView" method doesn't work in android. This method works in IOS.

      Repo Steps

      1. Run the below code in your app.js
      2. You can't see the yellow view added to the scrollable view.

      var win = Ti.UI.createWindow({backgroundColor:'white'});
      var table = Titanium.UI.createTableView();
      win.add(table);
      var row = Titanium.UI.createTableViewRow();
      table.appendRow(row);
       
      var view1 = Ti.UI.createView({ backgroundColor:'red' });
      var view2 = Ti.UI.createView({ backgroundColor:'green' });
      var view3 = Ti.UI.createView({ backgroundColor:'blue' });
       
      var scrollableView = Ti.UI.createScrollableView({
        views:[view1,view2,view3],
        showPagingControl:true,
        height: 200
      });
      var view4 = Ti.UI.createView({backgroundColor:'yellow'});
      scrollableView.addView(view4);
      row.add(scrollableView);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                krowley Karl Rowley
                Reporter:
                nsharma Nikhil Sharma
              • Watchers:
                0 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code