是否可以更改 TabActivity
中显示的选项卡的大小?我目前只在选项卡中添加文本,并且我真的很想尽可能地减小文本大小。
另外,有没有办法为我的活动使用非 48x48 的图标?我想做一些更矩形而不是正方形的东西。我只是想尽可能地利用我的屏幕空间 :)
YouTube 应用程序是如何做到这一点的? (参见屏幕截图,是我知道 YouTube 应用不是开源的)
似乎他们还可以向左和向右滚动以获取更多选项卡。关于他们如何做到这一点有什么想法吗?
Is it possible to change the size of the tabs displayed in a TabActivity
? I'm currently only putting text in my tabs and I'd really like to minimize the size as much as possible.
Also, is there a way to use icons for my activity that aren't 48x48? I'd like to do something more rectangular as opposed to square. I just want to use my screen real-estate the best I can :)
How is the YouTube app doing this? (See screenshot, and yes I know that the YouTube app isn't open source)
It seems that they're also making it possible to scroll left and right for more tabs. Any ideas on how they're doing this?
发布评论
评论(1)
是的,您可以通过为选项卡小部件创建自己的自定义视图来完成所有这些操作,这非常简单。本教程将解决这个问题
http://joshclemm.com/blog/?p=136
Yest you can do all that by creating your own custom view for tab widget, it is quite simple to do. this tutorial will do the trick
http://joshclemm.com/blog/?p=136