我已经根据 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/