怎么让他运行啊
下载zip,解压到桌面
打开eclipse,File-Import-Existing Android Code Into Workspace
选中library文件,导入到eclipse中
打开此library,右键library,properties-Android-Library-勾选Is Library
打开你的程序后,右键你的主程序,properties-Android-Library-Add,选择library文件
导入的基本步骤就这样,接下来是如何使用
找到你的程序-layout-xml添加一个
<com.handmark.pulltorefresh.library.PullToRefreshListView
android:id="@+id/pull_to_refresh_listView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
回到MainActivity中,头文件中添加一段代码
import com.handmark.pulltorefresh.library.PullToRefreshListView;
之后把你需要用到的listview全部改为PullToRefreshListView,例如
private PullToRefreshListView mPullRefreshListView;
接着就像listview一样使用吧
打开eclipse,File-Import-Existing Android Code Into Workspace
选中library文件,导入到eclipse中
打开此library,右键library,properties-Android-Library-勾选Is Library
打开你的程序后,右键你的主程序,properties-Android-Library-Add,选择library文件
导入的基本步骤就这样,接下来是如何使用
找到你的程序-layout-xml添加一个
<com.handmark.pulltorefresh.library.PullToRefreshListView
android:id="@+id/pull_to_refresh_listView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
回到MainActivity中,头文件中添加一段代码
import com.handmark.pulltorefresh.library.PullToRefreshListView;
之后把你需要用到的listview全部改为PullToRefreshListView,例如
private PullToRefreshListView mPullRefreshListView;
接着就像listview一样使用吧
温馨提示:答案为网友推荐,仅供参考
第1个回答 推荐于2018-04-12
用AndroidStudio打开项目,打开后应该会有报错,找到报错的地方,进行修改,一般是gradle文件。本回答被网友采纳
第2个回答 2016-04-04
再Ubuntu或linux下搭建好gcc编译器然后在文件夹里面运行mark命令 详细看说明文档
第3个回答 2017-07-22
用android studio打开