摘要: 实例二:Gallery上应用BaseAdapter 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=" 阅读全文
posted @ 2012-02-10 16:52 o0寂寞的泡沫0o 阅读(254) 评论(0) 推荐(0) 编辑
摘要: BaseAdapter是直接继承自接口类Adapter的,使用BaseAdapter时需要重写很多方法 BaseAdapter与其他Adapter有些不一样,其他的Adapter可以直接在其构造方法中进行数据的设置,比如SimpleAdapter adapter = new SimpleAdapter(this, getData(), R.layout.list_item, new String[]{"img","title","info",new int[]{R.id.img, R.id.title, R.id.info}}); 但 阅读全文
posted @ 2012-02-10 16:51 o0寂寞的泡沫0o 阅读(265) 评论(0) 推荐(0) 编辑
摘要: TabHost是整个Tab的容器,包括两部分,TabWidget和FrameLayout。TabWidget就是每个tab的标签,FrameLayout则是tab内容。1、如果我们使用extends TabAcitivty,如同ListActivity,TabHost必须设置为@android:id/tabhost2、TabWidget必须设置android:id为@android:id/tabs3、FrameLayout需要设置android:id为@android:id/tabcontent4、参考这儿:aspx">http://blog.csdn.net/flowingf 阅读全文
posted @ 2012-02-10 14:28 o0寂寞的泡沫0o 阅读(232) 评论(0) 推荐(0) 编辑