上面那个橙色的图片大小是150*60 应该可以铺满这个tab才对,为什么是这样的效果?被缩小了
解决方案 »
- 如何安装DIY的android系统
- ubuntu eclipse报错:error executing aapt
- android2.3.4(linux2.6.36)下, menuconfig 如何调出来?
- android开发:用webView打开mht文件是乱码,怎么解决啊~~~
- Android spiner 如果内容太多,下拉框高度太高,如何设置高度
- 请教HttpUrlConnection上传文件问题
- 开源自己一款日历应用源码给大家
- 布局不刷新的问题
- Android String 怎么判断是否为null
- Android开发工具Eclipse的暗转问题
- 【教程】利用Android TabHost+ActivityGroup+Broadcast实现iPhone的底部菜单
- 为什么ubuntu这么的奇怪 ?这是为什么呢? 在百般的折磨下 android界面终于出现了
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
</TabHost>
res.getDrawable(R.drawable.yugao))
.setContent(intent);
tabHost.addTab(spec);
res.getDrawable(R.drawable.yugao)) 你可以考虑把图片改成背景的设置。