xml:list_items.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical">
<TextView android:id="@+id/newstitle" android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<TextView android:id="@+id/newscontent" android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>

loadmore.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@+id/loadMoreButton" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="查看更多..." />
</LinearLayout>

main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical">
<ListView android:id="@+id/lvNews" android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>

model:News

public class News
{
/*
* 新闻标题
*/
private String title;

/*
* 新闻内容
*/
private String content;
}

更多相关文章

  1. android studio调整默认的debug.keystore位置。
  2. android 读取raw文件下文件内容
  3. Android(安卓)文件的保存与读取之SDCard(SD卡)存储
  4. Android4.4支持使用DevTools对原生Android应用程序WebViews内容
  5. Develop--Training(一)Getting Started
  6. Android中使用log4j输出log内容到sd卡
  7. Android(安卓)Tab 选项卡的简单实现
  8. Android4.4支持使用DevTools对原生Android应用程序WebViews内容
  9. Android(安卓)文件的保存与读取之自带储存空间

随机推荐

  1. Android数据库操作查询中Cursor类的问题
  2. android UI线程安全问题
  3. android linux 最全的基础知识总结
  4. Android(安卓)EditText默认不弹出输入法
  5. Android(安卓)build system 分析之 envse
  6. 利用第三方jar包jaudiotagger实现与Media
  7. Android反编译工具绿色版V2.1(改进版)
  8. Android(安卓)Studio 3.1.1新版本 修改 c
  9. Android(安卓)控件之Gallery图片集
  10. Android(安卓)SharedPreferences 实现原