提现通知 UI 布局+1

This commit is contained in:
renhaoting 2025-12-30 19:14:28 +08:00
parent 705901d55c
commit 0184772698
3 changed files with 12 additions and 8 deletions

View File

@ -413,11 +413,11 @@ class NotificationUtil private constructor() {
// 2. expand // 2. expand
val expandedView = RemoteViews(mContext.packageName, R.layout.layout_notification_withdraw_big) val expandedView = RemoteViews(mContext.packageName, R.layout.layout_notification_withdraw_big)
collapsedView.setTextViewText(R.id.tvTitle, title) expandedView.setTextViewText(R.id.tvTitle, title)
collapsedView.setTextViewText(R.id.tvDesc, content) expandedView.setTextViewText(R.id.tvDesc, content)
expandedView.setImageViewResource(R.id.ivBottom, R.drawable.vidi_withdraw_bottom) expandedView.setImageViewResource(R.id.ivBottom, R.drawable.vidi_withdraw_bottom)
collapsedView.setOnClickPendingIntent(R.id.tvAction, pendingIntent) expandedView.setOnClickPendingIntent(R.id.tvAction, pendingIntent)
collapsedView.setOnClickPendingIntent(R.id.ivBottom, pendingIntent) expandedView.setOnClickPendingIntent(R.id.ivBottom, pendingIntent)
// 3. build // 3. build
val builder = NotificationCompat.Builder(mContext, channelId) val builder = NotificationCompat.Builder(mContext, channelId)

View File

@ -1,14 +1,16 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="12dp" android:orientation="vertical"
android:orientation="vertical"> tools:ignore="ResourceName">
<!-- 上半部分:同折叠布局 --> <!-- 上半部分:同折叠布局 -->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout

View File

@ -1,14 +1,16 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="12dp" android:orientation="vertical"
android:orientation="vertical"> tools:ignore="ResourceName">
<!-- 上半部分:同折叠布局 --> <!-- 上半部分:同折叠布局 -->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout