-1

I am beginner in Android and using Chrisbane PullToRefresh - https://github.com/chrisbanes/Android-PullToRefresh

I have to add one bottom bar in screen, but as per the code it is using frame layout and adding layout at runtime.

I tried to add bottom bar, but it is adding on top of ListView, please help me to implement one bottom bar using PullToRefresh.

Ashish Tamrakar
  • 810
  • 10
  • 24

1 Answers1

1

Try using this library. It has what you want already implemented. I used it, worked like a charm.

Or you can add a footer to your listview :

View footerView = ((LayoutInflater) ActivityContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.footer_layout, null, false);
ListView.addFooterView(footerView);
  • Hi Courblah, thanks for the option. I want pullToRefresh as well in list but this library has load more option it seems. – Ashish Tamrakar May 23 '14 at 07:06
  • Hehe. As a matter of fact i used the same library with (https://github.com/chrisbanes/ActionBar-PullToRefresh) pull to refresh library. It works perfect. –  May 23 '14 at 07:09
  • I have also tried but it is moving the footer to the top, can you please provide me some sample project or code for this. – Ashish Tamrakar May 23 '14 at 07:26
  • I got the point, i have changed that FrameLayout to Relative Layout and it worked :) – Ashish Tamrakar May 23 '14 at 07:35