Fix bug -

android:layout_marginHorizontal="12dp"
This commit is contained in:
renhaoting 2026-01-08 18:44:00 +08:00
parent b8bb2bbffe
commit 2a3c1cd35c
4 changed files with 5 additions and 7 deletions

View File

@ -416,7 +416,7 @@ class NotificationUtil private constructor() {
val expandedView = RemoteViews(mContext.packageName, R.layout.layout_notification_withdraw_big) val expandedView = RemoteViews(mContext.packageName, R.layout.layout_notification_withdraw_big)
expandedView.setTextViewText(R.id.tvTitle, title) expandedView.setTextViewText(R.id.tvTitle, title)
expandedView.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.mipmap.icon_withdraw_pt)
expandedView.setOnClickPendingIntent(R.id.tvAction, pendingIntent) expandedView.setOnClickPendingIntent(R.id.tvAction, pendingIntent)
expandedView.setOnClickPendingIntent(R.id.ivBottom, pendingIntent) expandedView.setOnClickPendingIntent(R.id.ivBottom, pendingIntent)

View File

@ -56,15 +56,13 @@
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp">
android:layout_marginHorizontal="12dp"
android:background="#FFF">
<ImageView <ImageView
android:id="@+id/ivBottom" android:id="@+id/ivBottom"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="150dp" android:layout_height="wrap_content"
android:scaleType="centerCrop" android:scaleType="centerInside"
android:src="@drawable/vidi_withdraw_bottom" /> android:src="@mipmap/icon_withdraw_pt" />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB