2
A
回答
3
嘿我做这个使用下面的代码:
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp">
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="5dp"
android:layout_weight="1"/>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0"/>
</LinearLayout>
+0
它不能与android.support.v4.app.FragmentTabHost一起使用。 PLZ建议 – 2012-12-12 10:37:06
1
试试这个涉及below..In标签控件必须指定的appereance的严重性Tab(ie)v
<LinearLayout android:orientation="vertical" android:background="#000000" android:id="@+id/tab"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<TabWidget android:id="@android:id/tabs" android:background="@drawable/gradient_black"
android:gravity="bottom" android:listSelector="#999999"
android:layout_width="fill_parent" android:layout_height="63dip" />
</LinearLayout>
0
下面的代码显示在标签底部:
<?xml version="1.0" encoding="utf-8"?>
<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" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@android:id/tabs">
</FrameLayout>
</RelativeLayout>
</TabHost>
相关问题
- 1. 如何从屏幕顶部而不是底部显示UIViewController?
- 2. 如何在顶部而不是底部
- 3. JavaFx 2.0与FXML:标签在底部而不是顶部?
- 4. 记事本++标签栏的底部而不是顶部?
- 5. 顶部垂直xtick标签,而不是底部
- 6. Drupal验证码显示在顶部而不是在底部?
- 7. gwt flowpanel自动显示面板的底部而不是顶部
- 8. Android TabWidget TabStrip顶部而不是底部
- 9. 在标签栏顶部显示视图而不是在
- 10. 标签显示屏幕的顶部,而不是正对inputAccessoryView
- 11. 如何在横向左侧而不是顶部或底部显示tabview?
- 12. 如何显示父级的底部边界而不是顶部边界?
- 13. Qt - 如何在顶部显示tabified dockwidget的选项卡而不是底部
- 14. 动画从底部到顶部而不是从顶部到底部的高度
- 15. 底部带有mapview的标签顶部
- 16. 顶部和底部的标签栏
- 17. matplotlib colorbar交替顶部底部标签
- 18. CSS如何在底部而不是顶部缩放
- 19. 如何从窗口底部获取pageYOffset而不是顶部(Javascript)?
- 20. 如何将winform调整到顶部而不是底部c#
- 21. 如何将StdOut添加到文件顶部(而不是底部)?
- 22. 如何从中心,而不是顶部/底部/边,使用css
- 23. 边框底部显示div的顶部
- 24. 如何从顶部到底部减少元素的高度,而不是从默认的底部到顶部?
- 25. 带有CSS的条形图,如何从底部到顶部填充,而不是从顶部到底部?
- 26. 想要在顶部而不是底部显示课程的详细信息
- 27. 显示可滚动元素的底部,而不是默认顶部
- 28. 在R的顶部显示X轴绘制R而不是底部?
- 29. 如何通过其底部坐标而不是顶部来锚定元素
- 30. ChartJS - 底部的标签显示垂直
你为什么要发布您的代码为图像? – 2011-03-23 08:09:28