Android版本:2.0 VS 1.5丑陋TABS ...为什么呢?哪里是我的圆角图标? [英] Android : ugly TABS in 2.0 vs 1.5 ... why ? where are my rounded corners TABS?

查看:129
本文介绍了Android版本:2.0 VS 1.5丑陋TABS ...为什么呢?哪里是我的圆角图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我简单地使用tabwidget:

I simply use the tabwidget :

mTabHost = getTabHost();

    mTabHost.addTab(mTabHost.newTabSpec("tab_1").setIndicator(getString(R.string.day0)).setContent(R.id.tab1_content));
    mTabHost.addTab(mTabHost.newTabSpec("tab_2").setIndicator(getString(R.string.day1)).setContent(R.id.tab2_content));
    mTabHost.addTab(mTabHost.newTabSpec("tab_3").setIndicator(getString(R.string.day2)).setContent(R.id.tab3_content));
    mTabHost.addTab(mTabHost.newTabSpec("tab_4").setIndicator(getString(R.string.day3)).setContent(R.id.tab4_content));
    mTabHost.addTab(mTabHost.newTabSpec("tab_5").setIndicator(getString(R.string.about)).setContent(R.id.tab5_content));

    mTabHost.setCurrentTab(0);

为什么我的标签使uggly在2.0(没有更多的圆角为1.5 / 1.6)?

Why are my tabs so uggly in 2.0 (no more rounded corners as in 1.5/1.6) ?

这里丑陋的标签

=>

这是更好的

我应该怎么做现在就显示圆角选项卡的Nexus One(对于为例)用户;-)?

What should I do now to show "rounded corners" TABS to Nexus One (for exemple) users ;-) ?

时的原因主要有以下明显的三行:

Is it because of the following manifest lines :

<uses-sdk android:minSdkVersion="3" 
          android:targetSdkVersion="4" />

<supports-screens android:smallScreens="true"  
                  android:normalScreens="true"  
                  android:largeScreens="true"  
                  android:anyDensity="true" />

我要保持机器人:anyDensity =真正的,否则我有一个与菜单描述<一的大小调整问题href="http://stackoverflow.com/questions/2264874/android-changing-locale-within-the-app-itself">here

I have to keep android:anyDensity="true" otherwise I've got a problem with re-sizing of the menus described here

作为一个单独的问题,我的用户可以在我的应用程序更改区域本身,我再重绘使用prepareOptionsMenu(功能菜单)以刷新菜单中的字符串与新的语言由已选定的菜单用户。是否有一个等价TABS(我中的选项卡的标题当地字符串)或我要删除所有选项卡,并从头开始重新创建它们?

As a separate question, my users can change the Locale within my app itself, I then "redraw" the menus using onPrepareOptionsMenu (Menu menu) to refresh the strings within the menu with the new language choosen by the user. Is there an equivalent for TABS (I have local strings within the Title of the TABS) or do I have to delete all the tabs and re-create them from scratch ?

TXS提前对您有所帮助。

Txs in advance for your help.

中心

推荐答案

正如你可能已经在过去的两年里发现了自己,没有答案。时尚起起落落;喇叭裤牛仔裤是在一年,和七分裤都在几年后。你喜欢的,别人喜欢对方。如此这般。

As you've probably discovered for yourself in the last two years, there is no answer. Fashion ebbs and flows; bell-bottom jeans are in one year, and capri pants are in a few years later. You like one, someone else likes the other. So it goes.

欢迎您在你喜欢的风格创建自己的自定义窗口小部件。虽然自定义部件可以是一个痛苦,也可能导致问题的道路,这也是Android是怎么回事。对不起 - 我不喜欢它要么

You are welcome to create your own custom widgets in the style that you like. While custom widgets can be a pain and can also cause problems down the road, this is how Android is made. Sorry--I don't like it either.

但如果它是容易的,那么每个人都可以/会做到这一点。

But if it were easy, then EVERYONE could/would do it.

这篇关于Android版本:2.0 VS 1.5丑陋TABS ...为什么呢?哪里是我的圆角图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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