2012年9月20日
摘要: 效果图:首先看布局文件:<?xml version="1.0" encoding="UTF-8"?><TabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <L 阅读全文
posted @ 2012-09-20 10:40 Code大蛇丸 阅读(2035) 评论(0) 推荐(1)
摘要: 关键字:Android ListView Header最近使用OPhone SDK来开发一个应用程序。在使用的过程中,出现了一个问题,个人估计是Ophone底层framework的bug。但是没有底层的支持,苦于没有办法,所以只能自己绕过。一:ListView Header的使用在各用控件的使用中,估计ListView是最常用的一个,各种各样的市场都使用ListView来显示数据。但是也有不使用ListView而使用LiearLayout自己向里添加各种组件的(相信这种实现方式的市场的开发人员也不怎么样,会浪费大量的资源,使用更多的内存)。以“以掌上应用汇”为例:‍它在上面显示4个推荐的内容, 阅读全文
posted @ 2012-09-20 09:38 Code大蛇丸 阅读(2793) 评论(1) 推荐(0)
摘要: Java代码importandroid.app.ListActivity;importandroid.content.Context;importandroid.os.Bundle;importandroid.os.Handler;importandroid.os.SystemClock;importandroid.view.View;importandroid.view.ViewGroup;importandroid.widget.AdapterView;importandroid.widget.ArrayAdapter;importandroid.widget.Button;importa 阅读全文
posted @ 2012-09-20 09:37 Code大蛇丸 阅读(694) 评论(0) 推荐(0)