本帖最后由 misskong 于 2011-12-21 14:13 编辑 tabHost往往被当作程序的通用框架入口,其主要的使用方式有两种: 1.继承TabActivity,结合对应的xml配置文件导入tab选项内容体 2.继承Activity,结合拥有TabHost标签的xml配置文件导入 对于1:
Java代码
Java代码
Xml代码
|
Tab的用法
本帖最后由 misskong 于 2011-12-21 14:13 编辑 tabHost往往被当作程序的通用框架入口,其主要的使用方式有两种: 1.继承TabActivity,结合对应的xml配置文件导入tab选项内容体 2.继承Activity,结合拥有TabHost标签的xml配置文件导入 对于1:
Java代码
Xml代码对于2: Java代码 Xml代码 有时候需要tabhost里面的标签按钮置于底部,可以对xml文件进行如下修改: Xml代码 效果如图: |