Ellipsize属性不工作在Android 4.0 [英] Ellipsize attribute not working on Android 4.0

查看:206
本文介绍了Ellipsize属性不工作在Android 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前发布的最新市场之前测试在Android 4.0 Ice Cream Sandwich的应用程序。在测试过程中我意识到ellipsize属性停止工作。

I'm currently testing an app on Android 4.0 Ice Cream Sandwich before releasing an update to the market. During the tests I realized that the ellipsize attribute stopped working.

我用它在列表视图截断这是长项冠军。在Android 2.3.7呈现的一切如预期。标题太长被截断和三个点被追加到字符串的结尾。在Android 4.0是完全适合在屏幕上的最后一个字,其余的被忽略后标题被截断只。

I used it on a list view to truncate item titles which were to long. On Android 2.3.7 everything renders as expected. Titles that are too long get truncated and three dots are append to the end of the string. On Android 4.0 the title gets just truncated after the last word that fits completely on the screen, the rest gets skipped.

我有睾丸它的是Android 2.3.7以及一款Android 4.0.3手机。这种行为甚至可以在Eclipse中通过改变图形布局编辑器Android版本进行测试。

I've testes it on a Android 2.3.7 and a Android 4.0.3 phone. This behavior can even be tested in eclipse by changing the Android version in the Graphical Layout editor.

有没有人有同样的问题。任何工作几轮呢?

Does anyone has the same problem. Any work a rounds for this?

推荐答案

的android:单线=真正的对我的作品

这篇关于Ellipsize属性不工作在Android 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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