第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

更改通知布局

更改通知布局

慕運維8079593 2019-07-30 14:37:14
更改通知布局我反編譯我的系統(tǒng)音樂應用程序(來自索尼愛立信Android版2.3.7),因為我想更改通知布局。我找到了使用此代碼創(chuàng)建通知的方法:private void sendStatusBarNotification(Track paramTrack){     if (paramTrack != null)     {         NotificationManager localNotificationManager = (NotificationManager)this.mContext.getSystemService("notification");         String str = paramTrack.getArtist();         if ((str == null) || (str.equals(this.mContext.getString(2131361954))))             str = this.mContext.getString(2131361798);         Notification localNotification = new Notification(2130837696, paramTrack.getTitle() + " - " + str, System.currentTimeMillis());         localNotification.flags = (0x2 | localNotification.flags);         localNotification.flags = (0x20 | localNotification.flags);         PendingIntent localPendingIntent = PendingIntent.getActivity(this.mContext, 0, new Intent(this.mContext, MusicActivity.class), 268435456);         localNotification.setLatestEventInfo(this.mContext, paramTrack.getTitle(), str, localPendingIntent);         localNotificationManager.notify(0, localNotification);     }}我現(xiàn)在的問題是:如何更改通知布局?我想構建一個看起來像原始Android通知布局但在通知右側有一個額外圖像的布局。我怎樣才能做到這一點?
查看完整描述

3 回答

?
四季花海

TA貢獻1811條經驗 獲得超5個贊

要創(chuàng)建自定義通知布局,請查看有關此主題的Android API指南??雌饋砟愦蛩闶褂眠@RemoteViews門課。


查看完整回答
反對 回復 2019-07-30
  • 3 回答
  • 0 關注
  • 360 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號