TabHost.TabSpec 布局看起来像内置布局
我有一些不同高度的图标,HTC Legend 上的默认 tabspec 布局将图标放在顶部。
我想通过为 tabspec 定义我自己的布局来将其居中,但经过对样式和样式的多次实验后,背景,我仍然无法使其看起来像内置布局。
所以我需要内置的 Padding &我的 tabspec 布局的背景,有人知道它们叫什么吗?
I have some icons of varying height, and the default tabspec layout on my HTC Legend places the icon at the top.
I wanted to center it by defining my own layout for the tabspec, but after many experiments with style & background, I still can't make it look like the built-in layout.
So I need the built-in Padding & background for my tabspec layout, anyone knows what they're called?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
太多的摆弄 - 通过为选项卡创建固定高度和可变宽度的图标来解决它:
做了一些缩放和 Paint.ANTI_ALIAS_FLAG 的实验,但它很丑,所以选择了图像裁剪。
Too much fiddling about - solved it by creating a fixed-height and variable width icon for the tab:
Did some experimenting with scaling and Paint.ANTI_ALIAS_FLAG, but it was ugly, so image cropping was selected.