修改红包样式和文案

This commit is contained in:
2023-07-11 17:25:51 +08:00
parent c3a08974d1
commit 6cf68838f8
9 changed files with 55 additions and 37 deletions

View File

@@ -19,6 +19,7 @@ import com.lxj.xpopup.core.CenterPopupView;
import com.yunbao.common.http.base.HttpCallback;
import com.yunbao.common.http.live.LiveNetManager;
import com.yunbao.common.utils.ToastUtil;
import com.yunbao.common.utils.WordUtil;
import com.yunbao.common.views.weight.ViewClicksAntiShake;
import com.yunbao.live.R;
@@ -213,7 +214,11 @@ public class SendRendPacketPopup extends CenterPopupView {
}
});
if(WordUtil.isNewZh()){
((ImageView)findViewById(R.id.red_packet_info_img)).setImageResource(R.mipmap.bg_red_packet_info_zh);
}else{
((ImageView)findViewById(R.id.red_packet_info_img)).setImageResource(R.mipmap.bg_red_packet_info_en);
}
}
private void selectText(TextView textView, boolean select) {

View File

@@ -105,7 +105,7 @@
android:gravity="center"
android:text="@string/anchor_his_heart"
android:textColor="#8F3B00"
android:textSize="16sp"
android:textSize="14sp"
android:textStyle="bold" />
</LinearLayout>
</FrameLayout>

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
@@ -231,7 +232,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_send_red_packet_illustrate"
android:visibility="gone">
android:visibility="gone"
tools:visibility="visible">
<androidx.core.widget.NestedScrollView
@@ -280,20 +282,6 @@
android:textColor="@color/white"
android:textSize="11sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="@string/send_red_packet_illustrate5"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/send_red_packet_illustrate6"
android:textColor="@color/white"
android:textSize="11sp" />
<TextView
android:layout_width="wrap_content"
@@ -324,6 +312,31 @@
android:text="@string/send_red_packet_illustrate10"
android:textColor="@color/white"
android:textSize="11sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="@string/send_red_packet_illustrate5"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/send_red_packet_illustrate6"
android:textColor="@color/white"
android:textSize="11sp" />
<ImageView
android:id="@+id/red_packet_info_img"
android:layout_width="wrap_content"
android:layout_gravity="center"
android:layout_height="match_parent"
android:layout_marginTop="5dp"
android:src="@mipmap/bg_red_packet_info_zh"
/>
</LinearLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB