title: how to get 2 ways pullToRefresh in codenameone?
body: <p>how to get 2 ways pullToRefresh in codenameone ?</p>
  <p>I can add pullToRefresh from top by using the following codes</p>
  <pre><code>f.getContentPane().addPullToRefresh(new Runnable() {
  
              public void run() {
  
                  String count = &quot; &quot; + f.getContentPane().getComponentCount();
                  f.addComponent(0, new Button(&quot;Button &quot; + count));
                  f.invalidate();
              }
          });
  </code></pre>
  <p>And I want to add pullToRefresh from Bottom of form , how can I do it?</p>