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">