启动器图标和推图标大小问题

时间:2015-12-30 11:02:00

标签: android push

为什么我的启动器图标尺寸很小。它只是图像问题还是我做错了设置。我使用图像资源来设置启动器图标。

清单应用程序部分也是

<application
 android:name=".Abc"
 android:allowBackup="true"
 android:icon="@mipmap/ic_launcher"
 android:label="@string/app_name"
 android:theme="@style/AppTheme">......

当我发送通知时,推送图标也会变得太小。

推送代码       public void onCreate(){               super.onCreate();               Parse.initialize(this,“..”,“..”);               。ParseInstallation.getCurrentInstallation()saveInBackground();              ...}

2 个答案:

答案 0 :(得分:0)

您是否为所有屏幕尺寸设置了所有图标? 我通常使用this template来生成我的图标,而不是使用Asset Studio来生成不同比例的图标。

答案 1 :(得分:0)

使用通知管理器创建通知。试试这个

[self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBar setBarTintColor:[UIColor greenColor]];
self.navigationController.navigationBar.translucent = NO;
[self.navigationController.navigationBar setShadowImage:[UIImage new]];