常驻通知布局 icon替换
This commit is contained in:
parent
05a8460a05
commit
d4216c017c
|
|
@ -379,7 +379,7 @@ class ResidentModelManger {
|
||||||
it.putExtra(LANDING_NOTIFICATION_FROM, NotificationCheckController.NotificationType.RESIDENT.string)
|
it.putExtra(LANDING_NOTIFICATION_FROM, NotificationCheckController.NotificationType.RESIDENT.string)
|
||||||
})
|
})
|
||||||
.setOnClickPendingIntent(
|
.setOnClickPendingIntent(
|
||||||
R.id.resident_withdraw, entryPointPendingIntent(context,
|
R.id.resident_cash, entryPointPendingIntent(context,
|
||||||
type2notificationId[NotificationType.RESIDENT_WITHDRAW] ?: 0
|
type2notificationId[NotificationType.RESIDENT_WITHDRAW] ?: 0
|
||||||
) {
|
) {
|
||||||
it.putExtra(LANDING_NOTIFICATION_ACTION, PushContent.ACTION_TYPE_WITHDRAW)
|
it.putExtra(LANDING_NOTIFICATION_ACTION, PushContent.ACTION_TYPE_WITHDRAW)
|
||||||
|
|
|
||||||
|
|
@ -6,56 +6,107 @@
|
||||||
android:background="@drawable/noti_bg_r16_white"
|
android:background="@drawable/noti_bg_r16_white"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:padding="12dp"
|
android:padding="5dp"
|
||||||
tools:ignore="ResourceName">
|
tools:ignore="ResourceName">
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
<ImageView
|
|
||||||
android:id="@+id/resident_gold"
|
android:id="@+id/resident_gold"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="45dp"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/vidi_task_gold"
|
android:src="@mipmap/noti_gold"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
android:id="@+id/resident_withdraw"
|
android:id="@+id/tv_resident_gold"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginTop="13dp"
|
||||||
|
android:textSize="9sp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="0"
|
||||||
|
/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/resident_cash"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="45dp"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/vidi_task_cash"
|
android:src="@mipmap/noti_cash"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
|
android:id="@+id/tv_resident_cash"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginTop="13dp"
|
||||||
|
android:textSize="9sp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="0"
|
||||||
|
/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
android:id="@+id/resident_box"
|
android:id="@+id/resident_box"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="45dp"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/vidi_benefit_item_ongoing"
|
android:src="@mipmap/noti_box"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
|
android:id="@+id/tv_resident_box"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginTop="13dp"
|
||||||
|
android:textSize="9sp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="0"
|
||||||
|
/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
android:id="@+id/resident_game"
|
android:id="@+id/resident_game"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1">
|
||||||
android:scaleType="fitCenter"
|
|
||||||
android:src="@drawable/vidi_task_act_game"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/resident_close"
|
android:layout_width="45dp"
|
||||||
android:layout_width="0dp"
|
android:layout_height="45dp"
|
||||||
android:layout_height="30dp"
|
android:layout_gravity="center"
|
||||||
android:layout_weight="1"
|
android:gravity="center"
|
||||||
android:layout_gravity="top"
|
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/vidi_icon_close"
|
android:src="@mipmap/noti_game"
|
||||||
android:visibility="gone"
|
|
||||||
/>
|
/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,66 +1,124 @@
|
||||||
<?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"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="50dp"
|
android:layout_height="65dp"
|
||||||
android:background="@drawable/noti_bg_r16_white"
|
android:background="@drawable/noti_bg_r16_white"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
android:padding="5dp"
|
||||||
tools:ignore="ResourceName">
|
tools:ignore="ResourceName">
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
<ImageView
|
|
||||||
android:id="@+id/resident_gold"
|
android:id="@+id/resident_gold"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:clickable="true"
|
android:layout_weight="1">
|
||||||
android:layout_weight="1"
|
<ImageView
|
||||||
|
android:layout_width="60dp"
|
||||||
|
android:layout_height="60dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/vidi_task_gold"
|
android:src="@mipmap/noti_gold"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
android:id="@+id/resident_withdraw"
|
android:id="@+id/tv_resident_gold"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="0"
|
||||||
|
/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/resident_cash"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:clickable="true"
|
android:layout_weight="1">
|
||||||
android:layout_weight="1"
|
<ImageView
|
||||||
|
android:layout_width="60dp"
|
||||||
|
android:layout_height="60dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/vidi_task_cash"
|
android:src="@mipmap/noti_cash"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
|
android:id="@+id/tv_resident_cash"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="0"
|
||||||
|
/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
android:id="@+id/resident_box"
|
android:id="@+id/resident_box"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:clickable="true"
|
android:layout_weight="1">
|
||||||
android:layout_weight="1"
|
<ImageView
|
||||||
|
android:layout_width="60dp"
|
||||||
|
android:layout_height="60dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/vidi_benefit_item_ongoing"
|
android:src="@mipmap/noti_box"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
|
android:id="@+id/tv_resident_box"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="0"
|
||||||
|
/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
android:id="@+id/resident_game"
|
android:id="@+id/resident_game"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:clickable="true"
|
android:layout_weight="1">
|
||||||
android:layout_weight="1"
|
|
||||||
android:scaleType="fitCenter"
|
|
||||||
android:src="@drawable/vidi_task_act_game"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/resident_close"
|
android:layout_width="60dp"
|
||||||
android:layout_width="0dp"
|
android:layout_height="60dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
||||||
android:clickable="true"
|
android:gravity="center"
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_gravity="top"
|
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/vidi_icon_close"
|
android:src="@mipmap/noti_game"
|
||||||
android:visibility="gone"
|
|
||||||
/>
|
/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_resident_game"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:gravity="center"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="@string/game"
|
||||||
|
/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<!-- new text for notify -->
|
<!-- new text for notify -->
|
||||||
<string name="title_bg_withdraw">Olá!</string>
|
<string name="title_bg_withdraw">Olá!</string>
|
||||||
<string name="content_bg_withdraw">Não perca seus R$ %s. Toque para sacar!</string>
|
<string name="content_bg_withdraw">Não perca seus R$ %s. Toque para sacar!</string>
|
||||||
|
<string name="game">Game\n</string>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
Loading…
Reference in New Issue