上面那个橙色的图片大小是150*60 应该可以铺满这个tab才对,为什么是这样的效果?被缩小了
解决方案 »
- 新人求助!关于点击菜单某选项跳跃到其他的Activity
- android ndk 编译so动态库的问题
- 图片放大缩小时如何固定住中心点
- android out of memory for surface
- 急!帮忙看看为什么我用shell编译的apk不将drawable-ldpi打包进去
- 如何在 http://android.git.kernel.org/ 里浏览以前版本的源码
- 为什么我的android源码编译出来,没有system.img,只有data.img和ramdisk.img
- Android bluetooth 不能接收数据
- 在APP widget里怎么实现图片转动效果?
- (Android)imageview 与屏幕有空隙怎么解决
- 【教程】利用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)) 你可以考虑把图片改成背景的设置。