2011-03-21 45 views
3

有沒有關於如何設計一個好的圖標作爲Android應用程序中的通知放入狀態欄的教程? 理想情況下,我正在尋找可輕鬆修改的模板或圖標。我不是設計師。 我需要笑臉的狀態欄圖標。Android的通知圖標模板?

回答

0
Notification notification = new Notification(R.drawable.asterisk_sign, text, System.currentTimeMillis()); 
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, new Intent(this, MainActivity.class), 0); //this is how we will launch an Activity when the user clicks the notification 
notification.setLatestEventInfo(this, getText(R.string.app_name), text, contentIntent); 
mNM.notify(R.string.minutemaid_service_started, notification); //send the notification to the system, to be displayed in the notification bar 

這是如何在通知欄的通知的例子選擇時開始一項活動。

1

退房的Android Asset Studio!這是創建大量Android圖標的好工具,包括通知圖標。