如何降低标签控件的高度在android系统? [英] How can reduce the height of tab widget in android?

查看:137
本文介绍了如何降低标签控件的高度在android系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在android系统工作。我想减少标签控件的高度。
这是我的标签窗口小部件的形象。

I am working in android. i want to reduce height of the tab widget. this is the image of my tab widget.

我已经加入我的标签控件在底部,0,1,2,3等。

I have added my tab widget in the bottom, 0,1,2,3 etc.

我要减少tabwidget的高度则显示数字(0,1,2,3)消失。这是我的page.:- XML

i want to reduce the height of tabwidget then the displaying digits(0,1,2,3) disappears. this is my xml for the page.:-

whenver我降低高度的大小,则内容不会显示。

whenver i reduce the size of height then content does not display.

请建议我,我应该为此做。
谢谢你在前进......

please suggest me what should i do for this. Thank you in advance....

推荐答案

使用code。

for (int i = 0; i < tabHost.getTabWidget().getChildCount(); i++) {
            tabHost.getTabWidget().getChildAt(i).getLayoutParams().height /=2;

        }

这篇关于如何降低标签控件的高度在android系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆