tizbn
tizbn

Reputation: 1907

how to get 2 ways pullToRefresh in codenameone?

how to get 2 ways pullToRefresh in codenameone ?

I can add pullToRefresh from top by using the following codes

f.getContentPane().addPullToRefresh(new Runnable() {

            public void run() {

                String count = " " + f.getContentPane().getComponentCount();
                f.addComponent(0, new Button("Button " + count));
                f.invalidate();
            }
        });

And I want to add pullToRefresh from Bottom of form , how can I do it?

Upvotes: 0

Views: 428

Answers (1)

Shai Almog
Shai Almog

Reputation: 52770

There is no way to add pull to refresh to the bottom of a form. Its not a UI paradigm that applies to the bottom. However, you can get an infinite scroll which I assume is what you really want: http://www.codenameone.com/3/post/2013/09/till-the-end-of-the-form.html

Upvotes: 0

Related Questions