摘要: //运用pull解析 XmlPullParser parser = Xml.newPullParser(); //把数据存放到parser中 parser.setInput(inputStream, "utf-8"); // 获得类型 int eventType = parser.getEventT 阅读全文
posted @ 2016-08-24 14:56 tianliheng 阅读(108) 评论(0) 推荐(0)
摘要: 创建新类继承Application public class MyApplication extends Application { @Override public void onCreate() { // TODO Auto-generated method stub super.onCreat 阅读全文
posted @ 2016-08-24 14:50 tianliheng 阅读(180) 评论(0) 推荐(0)
摘要: 先在MainActivity的xml文件中创建listview控件 在获取控件id,并创建适配器 在创建的适配器中 public class Myadapter extends BaseAdapter { Context context; String[] paths; private ImageL 阅读全文
posted @ 2016-08-23 17:28 tianliheng 阅读(212) 评论(0) 推荐(0)
摘要: xListView.setXListViewListener(new IXListViewListener() { // 下拉刷新的回调方法 public void onRefresh() { data.clear(); // TODO Auto-generated method stub zixi 阅读全文
posted @ 2016-08-23 15:24 tianliheng 阅读(324) 评论(0) 推荐(0)
摘要: package com.example.xlistviewtest; import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.List; import org.com.cctest.view.XLis 阅读全文
posted @ 2016-08-16 16:58 tianliheng 阅读(218) 评论(0) 推荐(0)