直播间修改

This commit is contained in:
18401019693 2022-08-17 09:51:38 +08:00
parent f8f1f4e647
commit 121e07f915
4 changed files with 17 additions and 11 deletions

View File

@ -9,9 +9,9 @@ ext {
] ]
manifestPlaceholders = [ manifestPlaceholders = [
// //
// serverHost : "https://napi.yaoulive.com", serverHost : "https://napi.yaoulive.com",
// //
serverHost : "https://ceshi.yaoulive.com", // serverHost : "https://ceshi.yaoulive.com",
// //
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",

View File

@ -404,12 +404,14 @@ public class LiveAudienceActivity extends LiveActivity {
} }
}); });
mBanner.setClipToOutline(true); mBanner.setClipToOutline(true);
//侧边栏 //侧边栏
MainNetManager.get(mContext) MainNetManager.get(mContext)
.getHot(1, new com.yunbao.common.http.base.HttpCallback<List<SlideInfoModel>>() { .getHot(1, new com.yunbao.common.http.base.HttpCallback<List<SlideInfoModel>>() {
@Override @Override
public void onSuccess(List<SlideInfoModel> data) { public void onSuccess(List<SlideInfoModel> data) {
onBanner(data); runOnUiThread(() -> onBanner(data));
} }
@Override @Override

View File

@ -168,7 +168,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
private int messageNumber = 0, numberMe = 1; private int messageNumber = 0, numberMe = 1;
private ImageView waitingTip; private ImageView waitingTip;
private FloatBannerView floatBanner; private FloatBannerView floatBanner;
private boolean isfloatBannernet = true; private boolean isfloatBannernet = true, isFirst = true;
@Override @Override
@ -422,9 +422,10 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
//选中监听 //选中监听
mTabButtonGroup.addTabButtonGroupChangeListener((view, index) -> { mTabButtonGroup.addTabButtonGroupChangeListener((view, index) -> {
if (index == 0) { if (index == 0) {
floatBanner.setVisibility(View.VISIBLE); // floatBanner.setVisibility(View.VISIBLE);
findViewById(R.id.banner_click).setVisibility(View.VISIBLE); // findViewById(R.id.banner_click).setVisibility(View.VISIBLE);
isfloatBannernet = true; isfloatBannernet = true;
initAnchorRecommendBanner();
} else { } else {
floatBanner.setVisibility(View.GONE); floatBanner.setVisibility(View.GONE);
findViewById(R.id.banner_click).setVisibility(View.GONE); findViewById(R.id.banner_click).setVisibility(View.GONE);
@ -698,8 +699,9 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
//获取指导员引导逻辑 //获取指导员引导逻辑
NoviceInstructorManager.get(mContext).getNoviceInstructor(); NoviceInstructorManager.get(mContext).getNoviceInstructor();
NoviceInstructorManager.get(mContext).checktHomeZdyPop(); NoviceInstructorManager.get(mContext).checktHomeZdyPop();
initAnchorRecommendBanner(); if (!isFirst) {
initAnchorRecommendBanner();
}
} }
/** /**
@ -1084,9 +1086,10 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
mViewPager.setCurrentItem(event.getPage()); mViewPager.setCurrentItem(event.getPage());
mTabButtonGroup.setCurPosition(event.getPage()); mTabButtonGroup.setCurPosition(event.getPage());
if (event.getPage() == 0) { if (event.getPage() == 0) {
floatBanner.setVisibility(View.VISIBLE); isfloatBannernet = true;
findViewById(R.id.banner_click).setVisibility(View.VISIBLE); initAnchorRecommendBanner();
} else { } else {
isfloatBannernet = false;
floatBanner.setVisibility(View.GONE); floatBanner.setVisibility(View.GONE);
findViewById(R.id.banner_click).setVisibility(View.GONE); findViewById(R.id.banner_click).setVisibility(View.GONE);
} }

View File

@ -154,7 +154,7 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:visibility="visible" /> android:visibility="gone" />
<View <View
android:id="@+id/banner_click" android:id="@+id/banner_click"
@ -162,6 +162,7 @@
android:layout_height="35.33dp" android:layout_height="35.33dp"
android:clickable="true" android:clickable="true"
android:focusable="true" android:focusable="true"
android:visibility="gone"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:layout_above="@id/rt_main_tab" android:layout_above="@id/rt_main_tab"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"