修改战令入口颜色

This commit is contained in:
zlzw 2024-01-18 18:22:41 +08:00
parent c2979b4cf7
commit 52c561fa08
2 changed files with 10 additions and 5 deletions

View File

@ -617,11 +617,6 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
@Override
public void onSuccess(AnchorRecommendModel data) {
if (isFinishing()) return;
if (data.getShowWarOrder() == 0) {
floatWarOrder.setVisibility(View.GONE);
} else {
floatWarOrder.setVisibility(View.VISIBLE);
}
if (data.getListShow() == 1 && data.getList().size() > 2) {
floatBanner.setVisibility(View.VISIBLE);
findViewById(R.id.banner_click).setVisibility(View.VISIBLE);
@ -638,6 +633,15 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
((ProgressBar) floatRedPacket.findViewById(R.id.progress)).setProgress(data.getRedPacketNum());
((TextView) floatRedPacket.findViewById(R.id.progressText)).setText(data.getRedPacketNum() + "/" + data.getRedPacketTotal());
}
if (data.getShowWarOrder() == 0) {
floatWarOrder.setVisibility(View.GONE);
floatBanner.setVisibility(View.VISIBLE);
findViewById(R.id.banner_click).setVisibility(View.VISIBLE);
} else {
floatWarOrder.setVisibility(View.VISIBLE);
floatBanner.setVisibility(View.GONE);
findViewById(R.id.banner_click).setVisibility(View.GONE);
}
}
@Override

View File

@ -4,6 +4,7 @@
android:layout_height="wrap_content">
<LinearLayout
android:alpha="0.85"
android:layout_width="140dp"
android:layout_height="41dp"
android:background="@drawable/bg_war_order"