摘要: 在ListActivity中显示图标,好像并不复杂,实现起来却不轻松。首先,定义列表中的每一行,这里不是用xml文件定义,而是用一个类定义,CheckBox、ImageView、TextView等控件以addView的方法添加。//apk列表的一行class item_apk extends LinearLayout{ public CheckBox chk_apk; public TextView txt_name; public TextView txt_flag; public ImageView img_apk; public item_apk(Context ctx, S... 阅读全文
posted @ 2013-11-18 22:44 MSTK 阅读(713) 评论(0) 推荐(0)
摘要: 简单的说,ArrayList是顺序存储,而LinkedList是链式存储。 阅读全文
posted @ 2013-11-18 20:57 MSTK 阅读(603) 评论(2) 推荐(0)
摘要: int是一种数据类型,Integer是一个类,有各种方法,如Integer.parseInt(string)等。 阅读全文
posted @ 2013-11-18 20:54 MSTK 阅读(565) 评论(3) 推荐(0)