java - Android自定义状态通知 View 高度

标签 java android android-layout

我已经根据 Android 开发人员指南制作了客户状态栏通知。我想创建一个自定义的扩展 View ,因为默认设置会截断我的内容。我能够模拟类似于默认 View 的东西,但我的内容被截断,因为它的高度超出了通知区域的高度。

有没有办法在声明通知时(在本例中为服务)通过布局或某种方式来扩展状态栏通知的通知展开 View 的高度?

最佳答案

Is there a way to expand the height of the notification expanded view for my status bar notification via the layout or some means when declaring the notification (in a service in this case)?

不,对不起。

From Android developers group , Dianne Hackborn 说:

No the height is deliberately restricted.

关于java - Android自定义状态通知 View 高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5807456/

相关文章:

java - 如何在Java/Swing 应用程序中使用Windows XP 主题?

android - Binder 线程、进度条和 OutOfResourcesExceptions

Java如何检测变量变化

android - 我的抽屉导航中的 ListView 项目在那里,但我看不到列表

android - 暂停/恢复 MediaCodec

android - 覆盖 Android GUI

java - 将 Facebook 图片上传到 imageview

java - 如何将上传到云存储的图片调整为指定大小?

java - Java中一个数是另一个数的倍数吗

java - 将 map.values() 返回的 Collection 转换为 List