Android的TextView中的停止将连续文本 [英] Android TextView's stopped wrapping text

查看:145
本文介绍了Android的TextView中的停止将连续文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了很多时间寻找一个解决方案,这一点,但没有发现任何东西,似乎类似于我遇到。当我在我的G2没有我的textviews运行我的应用程序自动换行。(不管意见有多大。)如果我在模拟器上运行它,他们包装得体。没有我的其他应用程序似乎有这个问题,当部署到我的G2。我有重新加电我的设备,重新布局等,这似乎甚至影响一个标准的警告对话框在这个特殊的应用程序。这是发生在我的所有活动。有没有人见过这样的事还是没有人有一个想法是什么,我应该看什么?

I spent a ton of time looking for a solution to this but have not found anything that seems similar to what I am experiencing. When I run my app on my G2 none of my textviews wrap text.(regardless of how large the views are.) If i run it on an emulator they wrap appropriately. None of my other apps seem to have this problem when deployed to my G2. I have power cycled my devices, recreated layouts, etc. This seems to even affect a standard alert dialog in this particular app. It is happening in all my activities. Has anyone seen anything like this or does anyone have an idea what I should be looking at?

根据要求一些code ...

Some code as requested...

AlertDialog.Builder eula = new AlertDialog.Builder(activity)
            .setTitle(R.string.eula_title)
            .setIcon(android.R.drawable.ic_dialog_info)
            .setMessage(R.string.eula_text)
            .setCancelable(accepted)
            .setPositiveButton(R.string.eula_accept,
                        new android.content.DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog, int which) {
                                setAcceptedEula(activity);
                                dialog.dismiss();
                                mHandler.post(mSplashScreen.launch);
                            }
                        })
            .setNegativeButton(R.string.eula_decline,
                        new android.content.DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog, int which) {
                                dialog.cancel();
                                activity.finish();
                            }
                        });
    eula.show();

标准警报对话框不会换行文字。它显示了一种行步道关闭视图。

Standard alert dialog won't wrap text. It shows one line that trails off the view.

推荐答案

行,所以我理解了它。
我有一个主题应用到我与父母的主题 Theme.Holo 应用程序。

OK so i figured it out.
I have a theme applied to my app with parent theme Theme.Holo.

当我删除了这一主题作为父我的 textviews 再次开始包装!我不知道为什么其他那么不理解 Theme.Holo 它弄糊涂了的设备上运行时。

When I removed that theme as the parent my textviews started wrapping again! I don't know why other then when run on a device that doesn't understand Theme.Holo it got confused.

所以,我只是创建了一个额外的值-V13 目录,并修改了主题。对不起,麻烦乡亲。

So I just created an additional values-v13 directory and modified my themes. Sorry for the trouble folks.

这篇关于Android的TextView中的停止将连续文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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