直播间修改

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 = [
//
// 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",

View File

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

View File

@ -168,7 +168,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
private int messageNumber = 0, numberMe = 1;
private ImageView waitingTip;
private FloatBannerView floatBanner;
private boolean isfloatBannernet = true;
private boolean isfloatBannernet = true, isFirst = true;
@Override
@ -422,9 +422,10 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
//选中监听
mTabButtonGroup.addTabButtonGroupChangeListener((view, index) -> {
if (index == 0) {
floatBanner.setVisibility(View.VISIBLE);
findViewById(R.id.banner_click).setVisibility(View.VISIBLE);
// floatBanner.setVisibility(View.VISIBLE);
// findViewById(R.id.banner_click).setVisibility(View.VISIBLE);
isfloatBannernet = true;
initAnchorRecommendBanner();
} else {
floatBanner.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).checktHomeZdyPop();
initAnchorRecommendBanner();
if (!isFirst) {
initAnchorRecommendBanner();
}
}
/**
@ -1084,9 +1086,10 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
mViewPager.setCurrentItem(event.getPage());
mTabButtonGroup.setCurPosition(event.getPage());
if (event.getPage() == 0) {
floatBanner.setVisibility(View.VISIBLE);
findViewById(R.id.banner_click).setVisibility(View.VISIBLE);
isfloatBannernet = true;
initAnchorRecommendBanner();
} else {
isfloatBannernet = false;
floatBanner.setVisibility(View.GONE);
findViewById(R.id.banner_click).setVisibility(View.GONE);
}

View File

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