慢慢的学一点android方面的知识,今天做一个ListView的例子

import android.app.ListActivity;import android.os.Bundle;import android.widget.ArrayAdapter;public class ListViewDemo extends ListActivity {public static final String[] COUNTEIES=new String[]{"Americian","Belize","China","Jpan","Korean"};    public void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        //setContentView(R.layout.main);        setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,COUNTEIES));    }    }





近期都是一个例子一个例子的学,突然间脑海里明白了,一个个的Activity,就是一个个的jsp页面,我做的每一个例子



,其实就是在做每个jsp页面。虽然,以前在书上看时,书中的作者也这样说。说是这样说,就好像有些道理,好多人都跟你说过,但要让你真正明白,真正印在心中,是要自己亲身经历过才会明白的

更多相关文章

  1. android 页面容器 下一页很上一页view
  2. Android Studio中点击按钮跳转到其他页面
  3. android 输入键盘遮挡页面的问题
  4. 页面未随软键盘上升及android隐藏软键盘总结
  5. Android 页面惯性回弹效果,Nested接口接口简单实现。
  6. android仿今日头条个人中心页面
  7. Android OpenGL例子学习
  8. 让Android中的webview支持页面中的文件上传
  9. Android应用商店——Splash页面的实现,Android运行时权限的使用

随机推荐

  1. Android中自定义通用Json解释器
  2. android camera系统3A模式及其状态转换(二
  3. Android(安卓)Gson 解析泛型报错
  4. Android例子—常用系统Intent合集
  5. Android打Jar包注意事项
  6. android xml操作
  7. android location 位置定位
  8. Android(安卓)系统名字、版本、API level
  9. android中APK开机自动运行
  10. Android(安卓)长按setOnItemLongClickLis