如何在仅使用Java,屏幕下方设置了tabHost? [英] How to set a tabHost at bottom of the screen using only java?
本文介绍了如何在仅使用Java,屏幕下方设置了tabHost?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的工作在仅使用Java code屏幕下方创建TabHost。
我在,我不能使用XML的布局。可在动态布局专家的人可以帮助我的情况?
I am working to create a TabHost at bottom of the screen using only java code. I am in a condition that I cant use xml layouts .Can someone expert in dynamic layouts could help me?
推荐答案
-
您可以通过为父母提供
alignParent
规则做到这一点RelativeLayout的
,如果你有一个。
You can do this by providing
alignParent
rule for parentRelativeLayout
, if you have one.您可以通过提供正确的顺序,如果你的父母是做
的LinearLayout
You can do this by providing correct order if your parent is
LinearLayout
切勿使用底部的标签。阅读设计指南第一的。
DO NOT use bottom tabs. Read design guides first.
这篇关于如何在仅使用Java,屏幕下方设置了tabHost?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文