android com.handmark.pulltorefresh 使用小技巧

來源:互聯網
上載者:User

標籤:android開發   android listview   pulltorefresh   

最近使用android com.handmark.pulltorefresh 遇到一些小問題,現在總結一些:

集體使用教程見:

http://blog.csdn.net/harvic880925/article/details/17680305

http://blog.csdn.net/flybywind/article/details/8977734

1:設定單邊 重新整理:

mPullRefreshListView.setMode(Mode.PULL_FROM_END);//向下拉重新整理 mPullRefreshListView.setMode(Mode.PULL_FROM_START);//向上拉重新整理mPullRefreshListView.setMode(Mode.BOTH);//兩端重新整理

2:修改提示文字:

預設的提示文字不一定適合你,你可以進行修改

  pullToRefreshScrollView.getHeaderLayout().setReleaseLabel("修改下拉重新整理釋放的時候的文字");   pullToRefreshScrollView.getFooterLayout().setReleaseLabel("");
具體的header和footer是封裝在一個類裡面:

com.handmark.pulltorefresh.library.internal.LoadingLayout這個裡面寫這個具體的文字設定

setPullLabel("下拉重新整理…")setRefreshingLabel("正在載入…")setReleaseLabel</span>("放開重新整理…")




聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.