修改测试问题,shouye ytuijian
This commit is contained in:
parent
788fc9faa0
commit
59678be822
@ -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",
|
||||
|
@ -30,8 +30,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="22dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:src="@mipmap/instructors"
|
||||
android:visibility="visible" />
|
||||
android:layout_marginBottom="-5dp"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
@ -165,6 +165,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
private int messageNumber = 0, numberMe = 1;
|
||||
private ImageView waitingTip;
|
||||
private FloatBannerView floatBanner;
|
||||
private boolean isClickfloatBanner = false;
|
||||
|
||||
|
||||
@Override
|
||||
@ -371,6 +372,8 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
findViewById(R.id.banner_click).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (!isClickfloatBanner) {
|
||||
isClickfloatBanner = true;
|
||||
String Uid = floatBanner.getUid();
|
||||
LiveNetManager.get(mContext)
|
||||
.getLiveInfo(String.valueOf(Uid), new com.yunbao.common.http.base.HttpCallback<LiveInfoModel>() {
|
||||
@ -388,16 +391,19 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
String json = GsonUtils.toJson(data);
|
||||
LiveBean liveBean = GsonUtils.fromJson(json, LiveBean.class);
|
||||
mCheckLivePresenter.checkLive(liveBean);
|
||||
|
||||
isClickfloatBanner = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
|
||||
RouteUtil.forwardUserHome(mContext, String.valueOf(Uid), 0);
|
||||
|
||||
isClickfloatBanner = false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
//选中监听
|
||||
|
@ -34,7 +34,7 @@ public class FloatBannerView extends FrameLayout {
|
||||
private ClipPathCircleImage clipImage1, clipImage2, clipImage3;
|
||||
private List<AnchorRecommendItemModel> list = new ArrayList<>();
|
||||
//默认定时器时间
|
||||
private int delayMillis = 1500;
|
||||
private int delayMillis = 1400;
|
||||
//Handler定时加载下一张的数据
|
||||
private Handler bannerHandler = new Handler();
|
||||
private int index = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user