From 0184772698a1bbaa77c13ca16d774ff7267ab811 Mon Sep 17 00:00:00 2001 From: renhaoting <370797079@qq.com> Date: Tue, 30 Dec 2025 19:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E9=80=9A=E7=9F=A5=20UI=20?= =?UTF-8?q?=E5=B8=83=E5=B1=80+1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/remax/notification/newUtil/NotificationUtil.kt | 8 ++++---- .../src/main/res/layout/layout_notification_withdraw.xml | 6 ++++-- .../main/res/layout/layout_notification_withdraw_big.xml | 6 ++++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/notification/src/main/java/com/remax/notification/newUtil/NotificationUtil.kt b/notification/src/main/java/com/remax/notification/newUtil/NotificationUtil.kt index e7f451b..09e3e2b 100644 --- a/notification/src/main/java/com/remax/notification/newUtil/NotificationUtil.kt +++ b/notification/src/main/java/com/remax/notification/newUtil/NotificationUtil.kt @@ -413,11 +413,11 @@ class NotificationUtil private constructor() { // 2. expand val expandedView = RemoteViews(mContext.packageName, R.layout.layout_notification_withdraw_big) - collapsedView.setTextViewText(R.id.tvTitle, title) - collapsedView.setTextViewText(R.id.tvDesc, content) + expandedView.setTextViewText(R.id.tvTitle, title) + expandedView.setTextViewText(R.id.tvDesc, content) expandedView.setImageViewResource(R.id.ivBottom, R.drawable.vidi_withdraw_bottom) - collapsedView.setOnClickPendingIntent(R.id.tvAction, pendingIntent) - collapsedView.setOnClickPendingIntent(R.id.ivBottom, pendingIntent) + expandedView.setOnClickPendingIntent(R.id.tvAction, pendingIntent) + expandedView.setOnClickPendingIntent(R.id.ivBottom, pendingIntent) // 3. build val builder = NotificationCompat.Builder(mContext, channelId) diff --git a/notification/src/main/res/layout/layout_notification_withdraw.xml b/notification/src/main/res/layout/layout_notification_withdraw.xml index ce73dff..89bd28d 100644 --- a/notification/src/main/res/layout/layout_notification_withdraw.xml +++ b/notification/src/main/res/layout/layout_notification_withdraw.xml @@ -1,14 +1,16 @@ + android:orientation="vertical" + tools:ignore="ResourceName"> + android:orientation="vertical" + tools:ignore="ResourceName">