• 大小: 0.42M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-25
  • 语言: Java
  • 标签: 刷新  下拉  加载  

资源简介

下拉刷新,上拉或点击加载更多

资源截图

代码片段和文件信息

package com.markmao.pulltorefresh.ui;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

import com.markmao.pulltorefresh.R;

public class MainActivity extends Activity implements View.onclickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_main);

        Button listBrn = (Button) findViewById(R.id.list_view_btn);
        listBrn.setonclickListener(this);

        Button scrollBrn = (Button) findViewById(R.id.scroll_view_btn);
        scrollBrn.setonclickListener(this);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to t

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-05-02 16:25  PullToRefresh-master\
     文件         342  2015-05-02 16:25  PullToRefresh-master\.gitignore
     文件       10273  2015-05-02 16:25  PullToRefresh-master\LICENSE
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\
     文件           7  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\.gitignore
     文件         292  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\build.gradle
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\
     文件         985  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\AndroidManifest.xml
     文件       47065  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\ic_launcher-web.png
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\markmao\
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\markmao\pulltorefresh\
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\markmao\pulltorefresh\ui\
     文件        1230  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\markmao\pulltorefresh\ui\MainActivity.java
     文件        3152  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\markmao\pulltorefresh\ui\XListViewActivity.java
     文件        4888  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\markmao\pulltorefresh\ui\XScrollViewActivity.java
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\markmao\pulltorefresh\widget\
     文件        5141  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\markmao\pulltorefresh\widget\XFooterView.java
     文件        4496  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\markmao\pulltorefresh\widget\XHeaderView.java
     文件       14129  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\markmao\pulltorefresh\widget\XListView.java
     文件       16046  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\java\com\markmao\pulltorefresh\widget\XScrollView.java
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\res\
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\res\drawable-hdpi\
     文件        3176  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\res\drawable-hdpi\arrow_down.png
     文件        3443  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\res\drawable-hdpi\arrow_up.png
     文件        7721  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\res\drawable-hdpi\ic_launcher.png
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\res\drawable-mdpi\
     文件        3769  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\res\drawable-mdpi\ic_launcher.png
     目录           0  2015-05-02 16:25  PullToRefresh-master\PullToRefresh\src\main\res\drawable-xhdpi\
............此处省略41个文件信息

评论

共有 条评论