Forum /
Sencha Touch 2.x Forums /
Sencha Touch 2.x: Q&A /
Answered: Help please, "NestedList" display nothing in Android4.0 by phonegap or Native build
Answered: Help please, "NestedList" display nothing in Android4.0 by phonegap or Native build
Dear All,
1) NestedList run very well in Android 2.2/2.3
2) "NestedList" can display ok in Andorid 4.0 by Default Browser;
but can't display in Android4.0 by phonegap or Native build
can you tell me why , thank you very very much!
===================================
phonegap version: 1.3/1.6/1.8
sencha touch : 2.0
my source are as follows:
1)divisionDataStore.js
Ext.define('App.store.divisionDataStore', {
extend: 'Ext.data.TreeStore',
config: {
autoLoad: true,
model: 'App.model.dataMod',
proxy: {
noCache: false,
enablePagingParams: false,
type: 'ajax',
url: './app/data/divisionData.json',
reader: {
type: 'json',
rootProperty: 'items'
}
},
}
});
2) divisionListView.js
Ext.define('App.view.division.divisionListView', {
extend: 'Ext.dataview.NestedList',
xtype: 'divisionListView',
id: 'divisionListView',
config: {
title: '分类',
cls:'classify_panel',
toolbar: {
xtype: 'toolbar',
id: 'divisionToolbar',
items: [
{
xtype:'spacer',
},
{
align:'right',
text:'收藏',
ui:'divisonFavor',
id: 'divisonFavor',
hidden:true,
}
]
},
useTitleAsBackText: false,
onItemDisclosure: false,
store: 'divisionDataStore',
detailCard: {
xtype: 'divisionShowView',
id: 'detailCard',
cls:'showiner',
},
zIndex: 0
},
getTitleTextTpl: function() {
return '<div class="fontsize">{title}</div>';
},
getItemTextTpl: function(node) {
return '<DIV class="classify_font ">' +
'<div class="classifyleft">'+
'{title}' +
'</div>'+
'<div class="classifyright">'+
'</div>'+
'</DIV>';
},
});
Best Answer Posted by
bionicmaster
Try to disable animation, there's a known issue with animation in some versions of android and nested lists or tab panels
Sencha - Senior Forum Manager
Do note that we don't support Android 2.0 and 2.1.
What is the parent of the NestedList like?
Hi mitchellsimoens, Thank you for your reply,
1) I tested it on android2.3 /android4.0/IOS5.0/5.1,
" NestedList " can display well by all Default Browser or by phonegap/native build( except Android4 .0 ),
but can't display in Android4 .0 by phonegap or Native build
2) the parent of the NestedList is Ext.Container, and the parent of the Container is Ext.Component;
do you have some method to slove this problem in Android4 .0
thank you!
Try to disable animation, there's a known issue with animation in some versions of android and nested lists or tab panels
thank you for your reply , I try it several times, buy the problem was not solved
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us