• 大小: 0.38M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-23
  • 标签: 刷新  安卓  下拉  加载  

资源简介

安卓liseview上拉加载和下拉刷新

资源截图

代码片段和文件信息

package me.maxwin;

import java.util.ArrayList;

import me.maxwin.view.XListView;
import me.maxwin.view.XListView.IXListViewListener;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.widget.ArrayAdapter;

public class XListViewActivity extends Activity implements IXListViewListener {
private XListView mListView;
private ArrayAdapter mAdapter;
private ArrayList items = new ArrayList();
private Handler mHandler;
private int start = 0;
private static int refreshCnt = 0;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
geneItems();
mListView = (XListView) findViewById(R.id.xListVi

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-03-14 05:55  XListView-Android-master\
     文件         356  2015-03-14 05:55  XListView-Android-master\.classpath
     文件         812  2015-03-14 05:55  XListView-Android-master\.project
     文件         708  2015-03-14 05:55  XListView-Android-master\AndroidManifest.xml
     文件        1024  2015-03-14 05:55  XListView-Android-master\LICENSE.md
     文件         194  2015-03-14 05:55  XListView-Android-master\README
     文件        1248  2015-03-14 05:55  XListView-Android-master\proguard.cfg
     文件         382  2015-03-14 05:55  XListView-Android-master\project.properties
     目录           0  2015-03-14 05:55  XListView-Android-master\res\
     目录           0  2015-03-14 05:55  XListView-Android-master\res\drawable-hdpi\
     文件        4147  2015-03-14 05:55  XListView-Android-master\res\drawable-hdpi\ic_launcher.png
     文件        1456  2015-03-14 05:55  XListView-Android-master\res\drawable-hdpi\xlistview_arrow.png
     目录           0  2015-03-14 05:55  XListView-Android-master\res\drawable-ldpi\
     文件        1723  2015-03-14 05:55  XListView-Android-master\res\drawable-ldpi\ic_launcher.png
     目录           0  2015-03-14 05:55  XListView-Android-master\res\drawable-mdpi\
     文件        2574  2015-03-14 05:55  XListView-Android-master\res\drawable-mdpi\ic_launcher.png
     目录           0  2015-03-14 05:55  XListView-Android-master\res\layout\
     文件         313  2015-03-14 05:55  XListView-Android-master\res\layout\list_item.xml
     文件         637  2015-03-14 05:55  XListView-Android-master\res\layout\main.xml
     文件         991  2015-03-14 05:55  XListView-Android-master\res\layout\xlistview_footer.xml
     文件        2459  2015-03-14 05:55  XListView-Android-master\res\layout\xlistview_header.xml
     目录           0  2015-03-14 05:55  XListView-Android-master\res\values\
     文件         619  2015-03-14 05:55  XListView-Android-master\res\values\strings.xml
     目录           0  2015-03-14 05:55  XListView-Android-master\screenshots\
     文件       80684  2015-03-14 05:55  XListView-Android-master\screenshots\load_more_loading.png
     文件       68838  2015-03-14 05:55  XListView-Android-master\screenshots\load_more_normal.png
     文件       67322  2015-03-14 05:55  XListView-Android-master\screenshots\load_more_ready.png
     文件       74790  2015-03-14 05:55  XListView-Android-master\screenshots\refresh_loading.png
     文件       71665  2015-03-14 05:55  XListView-Android-master\screenshots\refresh_normal.png
     文件       71582  2015-03-14 05:55  XListView-Android-master\screenshots\refresh_ready.png
     目录           0  2015-03-14 05:55  XListView-Android-master\src\
............此处省略7个文件信息

评论

共有 条评论