修改战令入口颜色
This commit is contained in:
parent
c2979b4cf7
commit
52c561fa08
@ -617,11 +617,6 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(AnchorRecommendModel data) {
|
public void onSuccess(AnchorRecommendModel data) {
|
||||||
if (isFinishing()) return;
|
if (isFinishing()) return;
|
||||||
if (data.getShowWarOrder() == 0) {
|
|
||||||
floatWarOrder.setVisibility(View.GONE);
|
|
||||||
} else {
|
|
||||||
floatWarOrder.setVisibility(View.VISIBLE);
|
|
||||||
}
|
|
||||||
if (data.getListShow() == 1 && data.getList().size() > 2) {
|
if (data.getListShow() == 1 && data.getList().size() > 2) {
|
||||||
floatBanner.setVisibility(View.VISIBLE);
|
floatBanner.setVisibility(View.VISIBLE);
|
||||||
findViewById(R.id.banner_click).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());
|
((ProgressBar) floatRedPacket.findViewById(R.id.progress)).setProgress(data.getRedPacketNum());
|
||||||
((TextView) floatRedPacket.findViewById(R.id.progressText)).setText(data.getRedPacketNum() + "/" + data.getRedPacketTotal());
|
((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
|
@Override
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:alpha="0.85"
|
||||||
android:layout_width="140dp"
|
android:layout_width="140dp"
|
||||||
android:layout_height="41dp"
|
android:layout_height="41dp"
|
||||||
android:background="@drawable/bg_war_order"
|
android:background="@drawable/bg_war_order"
|
||||||
|
Loading…
Reference in New Issue
Block a user