看不到,一般都是写好XML文件,然后通过LayoutInflater填充
解决方案 »
- 从serivce中使用SurfaceView(没有activity)
- 如何在Android端判断是否是开发状态,即Eclipse打开链接Android模拟器或真机
- 关于ListView列表自由拖拽边界的一个问题
- android map 源代码
- 读取SIM卡上的短信失败
- webview不自动支持网络切换?
- webview和browser对同一网页展示的不一样?
- Qualcomm Snapdragon 600 openmax硬解码解码数据不对
- Anroid混淆编译,遇到个砍了,望有经验的进来解答,感谢
- GridView中item获得焦点放大缩小
- android项目运行问题
- 请问大家我如何在程序中获取sdk号
按照android源码里面的tab_content.xml写一个layout,修改TabWidget的高度
在你的TabActivity的oncreate方法里面setContentView(R.layout.xxxxx)
ok
tab_content.xml内容:
<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" android:layout_weight="0" />
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent" android:layout_height="0dip"
android:layout_weight="1"/>
</LinearLayout>
</TabHost>