Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: List not showing up on Android 2.3

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    18
    Vote Rating
    2
      2  

    Question List not showing up on Android 2.3

    I have a list of comments being loaded on demand via an ajax proxy in an app I'm building and they show up just fine on desktop browsers and my iPhone, but for some reason they are not showing up on an older android phone.

    The comments are loaded in via a store as such:

    Code:
    Ext.define('Kona.store.Comments', {
        extend: 'Ext.data.Store',
    
    
        requires: 'Ext.DateExtras',
    
    
        config: {
    
    
            model: 'Kona.model.Comment',
            proxy: {
              type: 'ajax',
              url: 'comments.json',
              reader: {
                type: 'json',
                record: 'comment'
              }
            },
            sorters: [
    
    
            ]
        }
    })
    
    which is triggered from a controller:

    Code:
    Ext.define('Kona.controller.Activities', {
      extend: 'Ext.app.Controller',
    
    
      config: {
        refs: {
          activity: 'activity',
          chatButton: 'chatButton',
          commentsStore: 'commentsStore',
          comments: 'comments'
        },
        control: {
          activity: {
            initialize: 'initActivity',
            activate: 'onActivityActivate'
          },
          commentsStore: {
            load: 'onCommentsLoad'
          },
          chatButton: {
            toggle: 'onChatButtonChange'
          }
        }
      },
      initActivity: function() {
    
    
    
    
    
    
      },
      onCommentsLoad: function() {
    
    
      },
      onActivityActivate: function() {
        var comments = this.getComments();
        this.commentStore = Ext.getStore('Comments');
        this.commentStore.load({url: this.getActivity().config.commentsUrl, callback: function(records) {
            alert(records[0].content);
            var scroller = comments.getScrollable().getScroller();
    
    
            scroller.scrollBy(0,100000)
    
    
          }
        });
      }
    
    
    });


    they are loaded into the comments list view:
    Code:
    Ext.define('Kona.view.comment.List', {
    
    
        extend: 'Ext.List',
    
    
        xtype: 'comments',
    
    
        config: {
    
    
            items: [
            ],
    
    
            itemTpl: [
                '<div class="comment"><div class="content">{content}</div></div>'
            ]
        },
    
    
        initialize: function() {
            this.callParent(arguments);
        }
    });
    Any idea what might be the issue? Thanks in advance!

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    Nothing jumps out, is it a display issue or is there no list at all? Also, do you have the correct DOCTYPE in your index.html?

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User nak1's Avatar
    Join Date
    Jan 2008
    Posts
    303
    Vote Rating
    1
      0  

    Default

    I've got a similar issue. What type of information do you need to resolve the issue?
    No longer a Newbie

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    2
    Vote Rating
    1
      0  

    Default Also experiencing this issue (listview showing blank on 2.3 with ST2)..

    I have a listview that is working for 4.0+, but does not work for 2.3..

    The strange this is, it looks like just white space, and the scrollbar shows.

    In my scenario I am using an itemTpl, and setting the store in the controller, and reloading. Works fine on iOS, straight HTML5, but not on 2.3.

    This is the culprit listview:

    {
    xtype: 'list',
    id: 'resultsList',
    itemId: 'resultsList',
    scrollToTopOnRefresh: false,
    itemTpl: [
    '<div style="text-align: left;float: left;">'+
    '{overallPlace} <small><b>{fullName}</b> </div></small>'+ //({number})
    '<div style="text-align: right;float: right;">'+
    '<small>{totalTime}</small></div>'
    ],
    plugins: [
    {
    xclass: 'Ext.plugin.PullRefresh',
    pullRefreshText: 'Pull down to refresh!',
    refreshFn: function(plugin) {
    var store = Ext.data.StoreManager.lookup('RaceResultsDataStore');
    store.load();
    var groupstore = Ext.data.StoreManager.lookup('GroupRaceDataStore');
    groupstore.load();
    }
    }
    ],
    }

    Anything I can do to get this to work?

  5. #5
    Sencha User
    Join Date
    Jan 2012
    Posts
    9
    Vote Rating
    1
      1  

    Default Same problem here

    Same problem here with an Android 2.3.4 ...
    Anyone with an idea ?
    It was working with sencha 2.0 but not with sencha 2.1

  6. #6
    Sencha User
    Join Date
    Sep 2011
    Posts
    2
    Vote Rating
    1
      1  

    Default

    Hi Sencha Team,
    This is definitely a bug in the framework. Anything we can do to get around it? Or suggested fix for it?

    -Chad

  7. #7
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    9
    Vote Rating
    1
      0  

    Default Same problem here

    90% of the time my lists show up as blank white space on my Android 4.04 device (emptyText is not shown, nor are items that are loaded into the list). It seems that anything that triggers a refresh of the layout will cause the list to appear (pull to refresh will do it, clicking on a select list chooser will do it).

    Been trying to track down the exact cause or find a workaround all day today, no luck.

  8. #8
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    9
    Vote Rating
    1
      0  

    Default Loading Mask

    In my case, I had a loading mask showing on the parent container while the list was loading. Removing that mask fixed the blank list issue. Still looking into it for a work around.

  9. #9
    Sencha User
    Join Date
    Feb 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default

    the same problem with Android 4.0, I don't know how to solve it

  10. #10
    Sencha Premium Member
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    587
    Vote Rating
    88
      0  

    Default

    One of you guys needs to post a formal bug report to get rid of this INFOREQ tag! See the other examples in this forum. Interested personally to hear what versions of sencha touch you are using - I never saw this in 2.0.1
    I blog about Sencha Touch at www.senchatouchdev.com

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •