如何仅使用java在屏幕底部设置tabHost?
我正在努力仅使用 java 代码在屏幕底部创建 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过为父
RelativeLayout
提供alignParent
规则(如果有)来实现此目的。如果您的父级是
LinearLayout
,您可以通过提供正确的顺序来做到这一点请勿使用底部选项卡。首先阅读设计指南。
You can do this by providing
alignParent
rule for parentRelativeLayout
, if you have one.You can do this by providing correct order if your parent is
LinearLayout
DO NOT use bottom tabs. Read design guides first.