为Android通知自定义视图大小 [英] Size of custom view for android notification

查看:95
本文介绍了为Android通知自定义视图大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想改变默认的Andr​​oid通知视图。我可以做的自定义扩展视图高度超过3行文字?

I want to change default android notification view. Can I make height of Custom Expanded View more than 3 lines of text?

推荐答案

勾选此的有关如何使用自己的布局进行自定义通知文章。如果这可以帮助您已经:好的。如果不是:借助远程视窗还提供了选项来创建自定义通知,所以它可以帮助你。另外,您可以创建多个通知,如果行的数量实在有限(这我不知道的)。

Check this article on how to make custom notifications using your own layout. If this helps you already: good. If not: The RemoteView also offers options to create custom notifications, so it might help you. Alternatively you could create multiple notifications if the number of lines is really limited (which I am not sure of).

这篇关于为Android通知自定义视图大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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