android - 如何在 Android 上省略 Activity 标题

标签 android android-activity title

我正在尝试省略 Activity 的标题,谁能告诉我该怎么做?

setTitle("My Title");
//when the text of the title gets too long, how can I use setEllipsize() here? how can I get the view Id of that title?

最佳答案

试试这个:http://it-ride.blogspot.pt/2010/07/android-title-marquee.html 那里的一些人说它有效,另一些人说它无效。

关于android - 如何在 Android 上省略 Activity 标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11058717/

相关文章:

当我开始一个 Intent 时 Android 应用程序崩溃

android - 如何将 Activity 中的标题或标签居中对齐?

android - 我不断收到消息 : Unfortunately "some chinese" has stopped

android - 如何在 Android 的字符串日期中添加 15 天

android - 谷歌登录在 Release模式apk android下不起作用

java - 在不同设备(平板电脑和手机)上调用两个不同的 Activity

android - 如何从 Api 获取数据到 ListView ?

android - 如何以编程方式阻止 Android 中应用程序的安装/卸载?

wordpress - 我在 Yoast SEO 插件中的所有页面都需要 WP 页面标题吗?

ios - 禁用按钮时 UIButton 标题消失