Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
拉动以刷新Listview并在Blackberry中加载_Listview_Blackberry - Fatal编程技术网

拉动以刷新Listview并在Blackberry中加载

拉动以刷新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

我需要在listview中实现pull刷新和加载。我如何使用java在Blackberry的listview中实现拉式刷新和加载


有人能帮我吗?

覆盖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 !!!
            }
        }

    }