notification上的图标设置后,呈拉伸状态,如何设置居中并保持图片大小不拉伸如题 [解决办法]
Quote: 引用:可以RemoteViews remoteViews= new RemoteViews(getPackageName(), R.layout.xxx);通过xxx布局文件来设置你想要的效果,mNotification.contentView = remoteViews我把notification的icon和tickerText去掉,添加上contentview,不显示消息。
可以RemoteViews remoteViews= new RemoteViews(getPackageName(), R.layout.xxx);通过xxx布局文件来设置你想要的效果,mNotification.contentView = remoteViews