拉动以刷新Listview并在Blackberry中加载
我需要在listview中实现pull刷新和加载。我如何使用java在Blackberry的listview中实现拉式刷新和加载拉动以刷新Listview并在Blackberry中加载,listview,blackberry,Listview,Blackberry,我需要在listview中实现pull刷新和加载。我如何使用java在Blackberry的listview中实现拉式刷新和加载 有人能帮我吗?覆盖ListField经理的navigationMovement()。然后 Field ff = getLeafFieldWithFocus(); if( ff instanceof ListField ){ ListField compo = (ListField)ff; int inde
有人能帮我吗?覆盖ListField经理的navigationMovement()。然后
Field ff = getLeafFieldWithFocus();
if( ff instanceof ListField ){
ListField compo = (ListField)ff;
int index = compo.getSelectedIndex();
if( index == compo.getSize() - 1 ){
// POST YOUR LOGIC HERE !!!
}
}
编辑::
或
你尝试过什么吗?@Signare我只是在尝试,你能给出一些想法吗?@hrushikeshalsalkade没有。最后一个片段可疑地类似于。
public void drawListRow(ListField lf, Graphics g, int index, int y, int x) {
if (lf.isFocus() && lf.getSelectedIndex() == index) {
if(index == (lf.getSize() - 1)){
//The last row is being focused. Load NEW data here !!!
}
}
}