Merge branch 'master' into dev_live_new_user_icon
This commit is contained in:
commit
b1c899a92b
@ -38,6 +38,7 @@ public abstract class AbsActivity extends AppCompatActivity {
|
|||||||
protected String mTag;
|
protected String mTag;
|
||||||
protected Activity mContext;
|
protected Activity mContext;
|
||||||
protected List<LifeCycleListener> mLifeCycleListeners;
|
protected List<LifeCycleListener> mLifeCycleListeners;
|
||||||
|
protected boolean isFullWindow;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Resources getResources() {
|
public Resources getResources() {
|
||||||
@ -51,6 +52,11 @@ public abstract class AbsActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
|
isFullWindow=getIntent().getBooleanExtra("isFull",false);
|
||||||
|
if(isFullWindow){
|
||||||
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
|
||||||
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
|
||||||
|
}
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
mTag = this.getClass().getSimpleName();
|
mTag = this.getClass().getSimpleName();
|
||||||
setStatusBar();
|
setStatusBar();
|
||||||
|
@ -7,7 +7,6 @@ import android.view.WindowManager;
|
|||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
|
||||||
import com.yunbao.common.R;
|
import com.yunbao.common.R;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
@ -37,11 +36,10 @@ public class EffectsSettingsDialog extends AbsDialogFragment {
|
|||||||
@Override
|
@Override
|
||||||
public void onActivityCreated(Bundle savedInstanceState) {
|
public void onActivityCreated(Bundle savedInstanceState) {
|
||||||
super.onActivityCreated(savedInstanceState);
|
super.onActivityCreated(savedInstanceState);
|
||||||
IMLoginModel userInfo = IMLoginManager.get(getContext()).getUserInfo();
|
|
||||||
specialSwitch = (ImageView) findViewById(R.id.special_switch);
|
specialSwitch = (ImageView) findViewById(R.id.special_switch);
|
||||||
specialMountSwitch = (ImageView) findViewById(R.id.special_mount_switch);
|
specialMountSwitch = (ImageView) findViewById(R.id.special_mount_switch);
|
||||||
giftEffect = userInfo.isGiftEffect();
|
giftEffect = IMLoginManager.get(getActivity()).isGiftEffect();
|
||||||
mountEffect = userInfo.isMountEffect();
|
mountEffect = IMLoginManager.get(getActivity()).isMountEffect();
|
||||||
if (giftEffect) {
|
if (giftEffect) {
|
||||||
ImgLoader.display(getContext(), R.mipmap.special_icon_off, specialSwitch);
|
ImgLoader.display(getContext(), R.mipmap.special_icon_off, specialSwitch);
|
||||||
} else {
|
} else {
|
||||||
@ -61,7 +59,8 @@ public class EffectsSettingsDialog extends AbsDialogFragment {
|
|||||||
ImgLoader.display(getContext(), R.mipmap.special_icon_on, specialSwitch);
|
ImgLoader.display(getContext(), R.mipmap.special_icon_on, specialSwitch);
|
||||||
}
|
}
|
||||||
//更新特效开关
|
//更新特效开关
|
||||||
IMLoginManager.get(getContext()).upDataUserInfo(userInfo.setGiftEffect(giftEffect));
|
IMLoginManager.get(getContext()).setGiftEffect(giftEffect);
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
//坐骑特效开关
|
//坐骑特效开关
|
||||||
@ -73,7 +72,7 @@ public class EffectsSettingsDialog extends AbsDialogFragment {
|
|||||||
ImgLoader.display(getContext(), R.mipmap.special_icon_on, specialMountSwitch);
|
ImgLoader.display(getContext(), R.mipmap.special_icon_on, specialMountSwitch);
|
||||||
}
|
}
|
||||||
//更新特效开关
|
//更新特效开关
|
||||||
IMLoginManager.get(getContext()).upDataUserInfo(userInfo.setMountEffect(mountEffect));
|
IMLoginManager.get(getContext()).setMountEffect(mountEffect);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,8 @@ public class IMLoginManager extends BaseCacheManager {
|
|||||||
private IMLoginModel userInfo;
|
private IMLoginModel userInfo;
|
||||||
private final static String isNewUserGif = "isNewUserGif";
|
private final static String isNewUserGif = "isNewUserGif";
|
||||||
private final static String isNewUserOne = "isNewUserOne";
|
private final static String isNewUserOne = "isNewUserOne";
|
||||||
|
private final static String GiftEffect = "giftEffect";
|
||||||
|
private final static String MountEffect = "mountEffect";
|
||||||
//暂时缓存token
|
//暂时缓存token
|
||||||
private String token = "";
|
private String token = "";
|
||||||
|
|
||||||
@ -82,9 +84,12 @@ public class IMLoginManager extends BaseCacheManager {
|
|||||||
if (null == userInfo) {
|
if (null == userInfo) {
|
||||||
userInfo = new Gson().fromJson(
|
userInfo = new Gson().fromJson(
|
||||||
getString(KEY_USER_INFO), IMLoginModel.class);
|
getString(KEY_USER_INFO), IMLoginModel.class);
|
||||||
if (userInfo != null)
|
if (userInfo != null) {
|
||||||
token = userInfo.getToken();
|
token = userInfo.getToken();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
return userInfo;
|
return userInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,6 +149,23 @@ public class IMLoginManager extends BaseCacheManager {
|
|||||||
SpUtil.getInstance().setStringValue(SpUtil.USER_INFO, new Gson().toJson(userInfo));
|
SpUtil.getInstance().setStringValue(SpUtil.USER_INFO, new Gson().toJson(userInfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setGiftEffect(boolean giftEffect) {
|
||||||
|
put(GiftEffect, giftEffect);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMountEffect(boolean mountEffect) {
|
||||||
|
|
||||||
|
put(MountEffect, mountEffect);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isMountEffect() {
|
||||||
|
return getBoolean(MountEffect, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isGiftEffect() {
|
||||||
|
return getBoolean(GiftEffect, false);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重新请求管理员身份信息
|
* 重新请求管理员身份信息
|
||||||
*/
|
*/
|
||||||
|
@ -26,6 +26,7 @@ import com.yunbao.common.HtmlConfig;
|
|||||||
import com.yunbao.common.bean.AnchorRecommendItemModel;
|
import com.yunbao.common.bean.AnchorRecommendItemModel;
|
||||||
import com.yunbao.common.bean.AnchorRecommendModel;
|
import com.yunbao.common.bean.AnchorRecommendModel;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
|
import com.yunbao.common.bean.SlideInfoModel;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.dialog.EffectsSettingsDialog;
|
import com.yunbao.common.dialog.EffectsSettingsDialog;
|
||||||
import com.yunbao.common.dialog.LiveChargeDialogFragment;
|
import com.yunbao.common.dialog.LiveChargeDialogFragment;
|
||||||
@ -214,7 +215,6 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
ToastUtil.show(error);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -236,7 +236,6 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
ToastUtil.show(error);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -274,6 +273,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
getDrawer();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadData(ViewGroup viewGroup, int currentItem) {
|
private void loadData(ViewGroup viewGroup, int currentItem) {
|
||||||
@ -294,6 +294,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0 && info.length > 0) {
|
if (code == 0 && info.length > 0) {
|
||||||
LiveBean liveBean = JSON.parseObject(info[0], LiveBean.class);
|
LiveBean liveBean = JSON.parseObject(info[0], LiveBean.class);
|
||||||
|
LiveRoomCheckLivePresenter.isRoom = true;
|
||||||
LiveRoomCheckLivePresenter mCheckLivePresenter = new LiveRoomCheckLivePresenter(mContext, (liveBean1, liveType, liveTypeVal, liveSdk) -> {
|
LiveRoomCheckLivePresenter mCheckLivePresenter = new LiveRoomCheckLivePresenter(mContext, (liveBean1, liveType, liveTypeVal, liveSdk) -> {
|
||||||
//主播正在直播
|
//主播正在直播
|
||||||
if (liveBean1 == null) {
|
if (liveBean1 == null) {
|
||||||
@ -700,6 +701,8 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
//从右边打开侧边栏
|
//从右边打开侧边栏
|
||||||
SidebarLiveAudience sidebarLiveAudience = new SidebarLiveAudience();
|
SidebarLiveAudience sidebarLiveAudience = new SidebarLiveAudience();
|
||||||
bundle.putString("Avatar", mLiveBean.getAvatar());
|
bundle.putString("Avatar", mLiveBean.getAvatar());
|
||||||
|
bundle.putString("banner", GsonUtils.toJson(slideInfoModels));
|
||||||
|
bundle.putString("list", GsonUtils.toJson(list));
|
||||||
sidebarLiveAudience.setArguments(bundle);
|
sidebarLiveAudience.setArguments(bundle);
|
||||||
sidebarLiveAudience.show(getSupportFragmentManager(), "SidebarLiveAudience");
|
sidebarLiveAudience.show(getSupportFragmentManager(), "SidebarLiveAudience");
|
||||||
// manager.openDrawer();
|
// manager.openDrawer();
|
||||||
@ -824,11 +827,10 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
url += "&uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
url += "&uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
||||||
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid;
|
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid;
|
||||||
Log.i("tag", url);
|
Log.i("tag", url);
|
||||||
Bundle bundle1 = new Bundle();
|
Intent intent=new Intent(mContext,ZhuangBanActivity.class);
|
||||||
bundle1.putString("url", url);
|
intent.putExtra("url", url);
|
||||||
liveHDDialogFragment = new LiveHDDialogFragment(true);
|
intent.putExtra("isFull",true);
|
||||||
liveHDDialogFragment.setArguments(bundle1);
|
mContext.startActivity(intent);
|
||||||
liveHDDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment");
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -857,5 +859,39 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取侧边栏数据
|
||||||
|
*/
|
||||||
|
private List<SlideInfoModel> slideInfoModels = new ArrayList<>();
|
||||||
|
private List<AnchorRecommendItemModel> list = new ArrayList<>();
|
||||||
|
|
||||||
|
private void getDrawer() {
|
||||||
|
//侧边栏轮播
|
||||||
|
MainNetManager.get(mContext)
|
||||||
|
.getHot(1, new com.yunbao.common.http.base.HttpCallback<List<SlideInfoModel>>() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(List<SlideInfoModel> data) {
|
||||||
|
slideInfoModels = data;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onError(String error) {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//推荐位
|
||||||
|
MainNetManager.get(mContext)
|
||||||
|
.anchorRecommend("10", new com.yunbao.common.http.base.HttpCallback<AnchorRecommendModel>() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(AnchorRecommendModel anchorRecommendModel) {
|
||||||
|
list = anchorRecommendModel.getList();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onError(String error) {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
package com.yunbao.live.activity;
|
package com.yunbao.live.activity;
|
||||||
|
|
||||||
|
import static com.yunbao.common.CommonAppContext.logger;
|
||||||
|
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
||||||
|
import static com.yunbao.common.utils.RouteUtil.PATH_COIN;
|
||||||
|
|
||||||
import android.content.ClipData;
|
import android.content.ClipData;
|
||||||
import android.content.ClipboardManager;
|
import android.content.ClipboardManager;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -7,7 +11,6 @@ import android.content.Intent;
|
|||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.provider.MediaStore;
|
import android.provider.MediaStore;
|
||||||
import androidx.annotation.RequiresApi;
|
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -18,9 +21,12 @@ import android.webkit.WebChromeClient;
|
|||||||
import android.webkit.WebSettings;
|
import android.webkit.WebSettings;
|
||||||
import android.webkit.WebView;
|
import android.webkit.WebView;
|
||||||
import android.webkit.WebViewClient;
|
import android.webkit.WebViewClient;
|
||||||
|
import android.widget.FrameLayout;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.ProgressBar;
|
import android.widget.ProgressBar;
|
||||||
|
|
||||||
|
import androidx.annotation.RequiresApi;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
import com.adjust.sdk.Adjust;
|
||||||
import com.adjust.sdk.AdjustEvent;
|
import com.adjust.sdk.AdjustEvent;
|
||||||
import com.alibaba.android.arouter.launcher.ARouter;
|
import com.alibaba.android.arouter.launcher.ARouter;
|
||||||
@ -40,10 +46,6 @@ import com.yunbao.live.R;
|
|||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
import static com.yunbao.common.utils.RouteUtil.PATH_COIN;
|
|
||||||
|
|
||||||
public class ZhuangBanActivity extends AbsActivity {
|
public class ZhuangBanActivity extends AbsActivity {
|
||||||
|
|
||||||
private ProgressBar mProgressBar;
|
private ProgressBar mProgressBar;
|
||||||
@ -53,10 +55,11 @@ public class ZhuangBanActivity extends AbsActivity {
|
|||||||
private ValueCallback<Uri> mValueCallback;
|
private ValueCallback<Uri> mValueCallback;
|
||||||
private ValueCallback<Uri[]> mValueCallback2;
|
private ValueCallback<Uri[]> mValueCallback2;
|
||||||
private SVGAImageView svga;
|
private SVGAImageView svga;
|
||||||
|
private FrameLayout title;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayoutId() {
|
protected int getLayoutId() {
|
||||||
return R.layout.activity_zhuang_ban;
|
return R.layout.activity_zhuang_ban_new;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -66,9 +69,12 @@ public class ZhuangBanActivity extends AbsActivity {
|
|||||||
LinearLayout rootView = (LinearLayout) findViewById(R.id.rootView);
|
LinearLayout rootView = (LinearLayout) findViewById(R.id.rootView);
|
||||||
mProgressBar = (ProgressBar) findViewById(R.id.progressbar);
|
mProgressBar = (ProgressBar) findViewById(R.id.progressbar);
|
||||||
svga = (SVGAImageView) findViewById(R.id.svga);
|
svga = (SVGAImageView) findViewById(R.id.svga);
|
||||||
|
title=findViewById(R.id.ft_title);
|
||||||
|
if (isFullWindow){
|
||||||
|
title.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
mWebView = new WebView(mContext);
|
mWebView = new WebView(mContext);
|
||||||
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
|
||||||
params.topMargin = DpUtil.dp2px(1);
|
params.topMargin = DpUtil.dp2px(1);
|
||||||
mWebView.setLayoutParams(params);
|
mWebView.setLayoutParams(params);
|
||||||
mWebView.setOverScrollMode(View.OVER_SCROLL_NEVER);
|
mWebView.setOverScrollMode(View.OVER_SCROLL_NEVER);
|
||||||
|
@ -1,16 +1,20 @@
|
|||||||
package com.yunbao.live.dialog;
|
package com.yunbao.live.dialog;
|
||||||
|
|
||||||
import android.app.Dialog;
|
import static com.yunbao.common.CommonAppContext.logger;
|
||||||
|
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
||||||
|
import static com.yunbao.common.utils.RouteUtil.PATH_COIN;
|
||||||
|
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.graphics.drawable.ColorDrawable;
|
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.DisplayMetrics;
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import android.view.Display;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
import android.view.ViewGroup;
|
||||||
import android.view.Window;
|
import android.view.Window;
|
||||||
|
import android.view.WindowInsets;
|
||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
import android.webkit.JavascriptInterface;
|
import android.webkit.JavascriptInterface;
|
||||||
import android.webkit.WebSettings;
|
import android.webkit.WebSettings;
|
||||||
@ -20,7 +24,6 @@ import android.webkit.WebViewClient;
|
|||||||
import com.adjust.sdk.Adjust;
|
import com.adjust.sdk.Adjust;
|
||||||
import com.adjust.sdk.AdjustEvent;
|
import com.adjust.sdk.AdjustEvent;
|
||||||
import com.alibaba.android.arouter.launcher.ARouter;
|
import com.alibaba.android.arouter.launcher.ARouter;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.JsWishBean;
|
import com.yunbao.common.bean.JsWishBean;
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
@ -29,10 +32,6 @@ import com.yunbao.live.R;
|
|||||||
import com.yunbao.live.activity.LiveActivity;
|
import com.yunbao.live.activity.LiveActivity;
|
||||||
import com.yunbao.live.activity.LiveAudienceActivity;
|
import com.yunbao.live.activity.LiveAudienceActivity;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
import static com.yunbao.common.utils.RouteUtil.PATH_COIN;
|
|
||||||
|
|
||||||
public class LiveHDDialogFragment extends AbsDialogFragment {
|
public class LiveHDDialogFragment extends AbsDialogFragment {
|
||||||
|
|
||||||
private WebView mWebView;
|
private WebView mWebView;
|
||||||
@ -73,7 +72,24 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
|
|||||||
WindowManager.LayoutParams params = window.getAttributes();
|
WindowManager.LayoutParams params = window.getAttributes();
|
||||||
params.width = WindowManager.LayoutParams.MATCH_PARENT;
|
params.width = WindowManager.LayoutParams.MATCH_PARENT;
|
||||||
if(isFullWindow){
|
if(isFullWindow){
|
||||||
|
Display display=null;
|
||||||
|
window.setLayout(WindowManager.LayoutParams.MATCH_PARENT,WindowManager.LayoutParams.MATCH_PARENT);
|
||||||
|
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.R) {
|
||||||
|
display= requireContext().getDisplay();
|
||||||
|
window.getInsetsController().hide(WindowInsets.Type.statusBars());
|
||||||
|
window.getInsetsController().hide(WindowInsets.Type.navigationBars());
|
||||||
|
}else {
|
||||||
|
display=window.getWindowManager().getDefaultDisplay();
|
||||||
|
window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||||
|
}
|
||||||
|
window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.MATCH_PARENT);
|
||||||
|
window.getDecorView().setBackgroundColor(Color.parseColor("#10000000"));
|
||||||
params.height = WindowManager.LayoutParams.MATCH_PARENT;
|
params.height = WindowManager.LayoutParams.MATCH_PARENT;
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||||
|
window.getDecorView().setMinimumHeight(display.getMode().getPhysicalHeight());
|
||||||
|
window.getDecorView().setMinimumWidth(display.getMode().getPhysicalWidth());
|
||||||
|
}
|
||||||
|
window.getDecorView().setPadding(10,-10,0,0);
|
||||||
}else {
|
}else {
|
||||||
params.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
params.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
||||||
}
|
}
|
||||||
@ -192,6 +208,10 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
|
|||||||
dismiss();
|
dismiss();
|
||||||
((LiveAudienceActivity) mContext).openGiftWindow();
|
((LiveAudienceActivity) mContext).openGiftWindow();
|
||||||
}
|
}
|
||||||
|
@JavascriptInterface
|
||||||
|
public void androidGoBack(){
|
||||||
|
dismiss();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -199,7 +199,6 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
ToastUtil.show(error);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
@ -327,7 +326,6 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
ToastUtil.show(error);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,6 @@ public class LiveTotalDialog extends AbsDialogFragment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
ToastUtil.show(error);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//粉丝团
|
//粉丝团
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package com.yunbao.live.dialog;
|
package com.yunbao.live.dialog;
|
||||||
|
|
||||||
import android.os.Build;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.Display;
|
import android.view.Display;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
@ -12,6 +11,8 @@ import android.widget.ImageView;
|
|||||||
import androidx.recyclerview.widget.GridLayoutManager;
|
import androidx.recyclerview.widget.GridLayoutManager;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.blankj.utilcode.util.GsonUtils;
|
||||||
|
import com.google.gson.reflect.TypeToken;
|
||||||
import com.yunbao.common.bean.AnchorRecommendItemModel;
|
import com.yunbao.common.bean.AnchorRecommendItemModel;
|
||||||
import com.yunbao.common.bean.AnchorRecommendModel;
|
import com.yunbao.common.bean.AnchorRecommendModel;
|
||||||
import com.yunbao.common.bean.SlideInfoModel;
|
import com.yunbao.common.bean.SlideInfoModel;
|
||||||
@ -30,6 +31,7 @@ import com.yunbao.live.bean.LiveBean;
|
|||||||
import com.yunbao.live.http.LiveHttpUtil;
|
import com.yunbao.live.http.LiveHttpUtil;
|
||||||
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -43,6 +45,8 @@ public class SidebarLiveAudience extends AbsDialogFragment {
|
|||||||
|
|
||||||
//侧边栏适配器
|
//侧边栏适配器
|
||||||
private SidebarAdapter sidebarAdapter;
|
private SidebarAdapter sidebarAdapter;
|
||||||
|
private List<SlideInfoModel> slideInfoModels = new ArrayList<>();
|
||||||
|
private List<AnchorRecommendItemModel> list = new ArrayList<>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayoutId() {
|
protected int getLayoutId() {
|
||||||
@ -61,8 +65,13 @@ public class SidebarLiveAudience extends AbsDialogFragment {
|
|||||||
sidebarBack = (ImageView) findViewById(R.id.sidebar_back);
|
sidebarBack = (ImageView) findViewById(R.id.sidebar_back);
|
||||||
if (bundle != null) {
|
if (bundle != null) {
|
||||||
String avatar = bundle.getString("Avatar");
|
String avatar = bundle.getString("Avatar");
|
||||||
|
slideInfoModels = GsonUtils.fromJson(bundle.getString("banner"), new TypeToken<List<SlideInfoModel>>() {
|
||||||
|
}.getType());
|
||||||
|
list = GsonUtils.fromJson(bundle.getString("list"), new TypeToken<List<AnchorRecommendItemModel>>() {
|
||||||
|
}.getType());
|
||||||
//侧边栏背景
|
//侧边栏背景
|
||||||
ImgLoader.displayBlurLive(mContext, avatar, sidebarBack);
|
ImgLoader.displayBlurLive(mContext, avatar, sidebarBack);
|
||||||
|
|
||||||
}
|
}
|
||||||
sidebarList = (CommonRefreshView) findViewById(R.id.sidebarList);
|
sidebarList = (CommonRefreshView) findViewById(R.id.sidebarList);
|
||||||
GridLayoutManager gridLayoutManager = new GridLayoutManager(mContext, 2, GridLayoutManager.VERTICAL, false);
|
GridLayoutManager gridLayoutManager = new GridLayoutManager(mContext, 2, GridLayoutManager.VERTICAL, false);
|
||||||
@ -85,6 +94,10 @@ public class SidebarLiveAudience extends AbsDialogFragment {
|
|||||||
sidebarAdapter = new SidebarAdapter(mContext, mDisplay.getHeight());
|
sidebarAdapter = new SidebarAdapter(mContext, mDisplay.getHeight());
|
||||||
sidebarAdapter.setHasStableIds(true);
|
sidebarAdapter.setHasStableIds(true);
|
||||||
sidebarList.setRecyclerViewAdapter(sidebarAdapter);
|
sidebarList.setRecyclerViewAdapter(sidebarAdapter);
|
||||||
|
if (sidebarAdapter != null) {
|
||||||
|
sidebarAdapter.addData(list);
|
||||||
|
sidebarAdapter.setData(slideInfoModels);
|
||||||
|
}
|
||||||
sidebarList.setDataHelperNew(new CommonRefreshView.DataHelperNew() {
|
sidebarList.setDataHelperNew(new CommonRefreshView.DataHelperNew() {
|
||||||
@Override
|
@Override
|
||||||
public void loadData(int p) {
|
public void loadData(int p) {
|
||||||
@ -98,7 +111,6 @@ public class SidebarLiveAudience extends AbsDialogFragment {
|
|||||||
.anchorRecommend("10", new com.yunbao.common.http.base.HttpCallback<AnchorRecommendModel>() {
|
.anchorRecommend("10", new com.yunbao.common.http.base.HttpCallback<AnchorRecommendModel>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(AnchorRecommendModel anchorRecommendModel) {
|
public void onSuccess(AnchorRecommendModel anchorRecommendModel) {
|
||||||
if (getActivity().isFinishing()) return;
|
|
||||||
//侧边栏
|
//侧边栏
|
||||||
MainNetManager.get(getActivity())
|
MainNetManager.get(getActivity())
|
||||||
.getHot(1, new com.yunbao.common.http.base.HttpCallback<List<SlideInfoModel>>() {
|
.getHot(1, new com.yunbao.common.http.base.HttpCallback<List<SlideInfoModel>>() {
|
||||||
@ -136,12 +148,12 @@ public class SidebarLiveAudience extends AbsDialogFragment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void setWindowAttributes(Window window) {
|
protected void setWindowAttributes(Window window) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
|
||||||
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
|
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
|
||||||
window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
||||||
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
||||||
window.setStatusBarColor(0);
|
window.setStatusBarColor(0);
|
||||||
}
|
|
||||||
window.setWindowAnimations(com.yunbao.common.R.style.RightLeftToAnim);
|
window.setWindowAnimations(com.yunbao.common.R.style.RightLeftToAnim);
|
||||||
WindowManager.LayoutParams params = window.getAttributes();
|
WindowManager.LayoutParams params = window.getAttributes();
|
||||||
params.width = DeviceUtils.getScreenWidth(getActivity()) / 3 * 2;
|
params.width = DeviceUtils.getScreenWidth(getActivity()) / 3 * 2;
|
||||||
@ -151,7 +163,6 @@ public class SidebarLiveAudience extends AbsDialogFragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 前往直播间
|
* 前往直播间
|
||||||
*/
|
*/
|
||||||
|
@ -24,6 +24,7 @@ import android.widget.MediaController;
|
|||||||
import android.widget.RelativeLayout;
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import com.opensource.svgaplayer.SVGACallback;
|
||||||
import com.opensource.svgaplayer.SVGAImageView;
|
import com.opensource.svgaplayer.SVGAImageView;
|
||||||
import com.opensource.svgaplayer.SVGAParser;
|
import com.opensource.svgaplayer.SVGAParser;
|
||||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||||
@ -313,10 +314,35 @@ public class LiveEnterRoomAnimPresenter {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (mSVGImageView != null) {
|
if (mSVGImageView != null) {
|
||||||
|
mSVGImageView.setVisibility(View.VISIBLE);
|
||||||
SVGARect rect = svgaVideoEntity.getVideoSize();
|
SVGARect rect = svgaVideoEntity.getVideoSize();
|
||||||
mSVGImageView.setVideoItem(svgaVideoEntity);
|
mSVGImageView.setVideoItem(svgaVideoEntity);
|
||||||
mSVGImageView.setLoops(1);
|
mSVGImageView.setLoops(1);
|
||||||
mSVGImageView.startAnimation();
|
mSVGImageView.startAnimation();
|
||||||
|
mSVGImageView.setCallback(new SVGACallback() {
|
||||||
|
@Override
|
||||||
|
public void onPause() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onFinished() {
|
||||||
|
mSVGImageView.clear();
|
||||||
|
mSVGImageView.setVisibility(View.GONE);
|
||||||
|
mIsAnimating = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onRepeat() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStep(int i, double v) {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mIsAnimating = false;
|
mIsAnimating = false;
|
||||||
@ -414,8 +440,10 @@ public class LiveEnterRoomAnimPresenter {
|
|||||||
colocNow = "#" + car.getCar_colour();
|
colocNow = "#" + car.getCar_colour();
|
||||||
playText = car.getUser_nicename() + mContext.getResources().getString(R.string.enter_room);
|
playText = car.getUser_nicename() + mContext.getResources().getString(R.string.enter_room);
|
||||||
}
|
}
|
||||||
if (IMLoginManager.get(mContext).getUserInfo().isMountEffect()){
|
if (IMLoginManager.get(mContext).isMountEffect()) {
|
||||||
GifCacheUtil.getFile(Constants.GIF_CAR_PREFIX + id, url1, "0", mDownloadGifCallback);
|
GifCacheUtil.getFile(Constants.GIF_CAR_PREFIX + id, url1, "0", mDownloadGifCallback);
|
||||||
|
} else {
|
||||||
|
mIsAnimating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -796,7 +796,7 @@ public class LiveGiftAnimPresenter {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((bean.getGifUrl().contains("svga") || bean.getGifUrl().contains("gif")) &&
|
if ((bean.getGifUrl().contains("svga") || bean.getGifUrl().contains("gif")) &&
|
||||||
IMLoginManager.get(mContext).getUserInfo().isGiftEffect()) {
|
IMLoginManager.get(mContext).isGiftEffect()) {
|
||||||
|
|
||||||
//同一直播间,玩家自己送礼物,也能看到全服通知
|
//同一直播间,玩家自己送礼物,也能看到全服通知
|
||||||
//同一直播间,其他玩家也能看到全服通知
|
//同一直播间,其他玩家也能看到全服通知
|
||||||
@ -859,12 +859,6 @@ public class LiveGiftAnimPresenter {
|
|||||||
|
|
||||||
AllMsgTextRender.render(mContext, mGifGiftTipAllServer, mTempGifGiftBean.getGiftIcon(), mTempGifGiftBean.getUserNiceName(), mAncherName, mTempGifGiftBean.getGiftName(), 1, mWindowManager, "");
|
AllMsgTextRender.render(mContext, mGifGiftTipAllServer, mTempGifGiftBean.getGiftIcon(), mTempGifGiftBean.getUserNiceName(), mAncherName, mTempGifGiftBean.getGiftName(), 1, mWindowManager, "");
|
||||||
|
|
||||||
//下载横幅前面的动画
|
|
||||||
// ConfigBean configBean = CommonAppConfig.getInstance().getConfig();
|
|
||||||
// String testUrl = configBean.getAllServerGiftIcon();
|
|
||||||
// if (!testUrl.isEmpty() && testUrl != null)
|
|
||||||
// GifCacheUtil.getFile(Constants.GIF_GIFT_PREFIX + GIFTFRONT_ID, testUrl, "1", mDownloadIconCallback);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1224,6 +1218,7 @@ public class LiveGiftAnimPresenter {
|
|||||||
*/
|
*/
|
||||||
private void playSVGA(SVGAVideoEntity svgaVideoEntity) {
|
private void playSVGA(SVGAVideoEntity svgaVideoEntity) {
|
||||||
if (mSVGAImageView != null) {
|
if (mSVGAImageView != null) {
|
||||||
|
mSVGAImageView.setVisibility(View.VISIBLE);
|
||||||
SVGARect rect = svgaVideoEntity.getVideoSize();
|
SVGARect rect = svgaVideoEntity.getVideoSize();
|
||||||
resizeSvgaImageView(rect.getWidth(), rect.getHeight());
|
resizeSvgaImageView(rect.getWidth(), rect.getHeight());
|
||||||
mSvgaPlayTime = System.currentTimeMillis();
|
mSvgaPlayTime = System.currentTimeMillis();
|
||||||
@ -1239,6 +1234,7 @@ public class LiveGiftAnimPresenter {
|
|||||||
public void onFinished() {
|
public void onFinished() {
|
||||||
mSVGAImageView.clear();
|
mSVGAImageView.clear();
|
||||||
mSVGAImageView.setVisibility(View.GONE);
|
mSVGAImageView.setVisibility(View.GONE);
|
||||||
|
mShowGif = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -32,7 +32,7 @@ public class LiveRoomCheckLivePresenter {
|
|||||||
private ActionListener mActionListener;
|
private ActionListener mActionListener;
|
||||||
private int mLiveSdk;
|
private int mLiveSdk;
|
||||||
//搜索页面不提示密码
|
//搜索页面不提示密码
|
||||||
public static boolean isSearch = false;
|
public static boolean isRoom = false;
|
||||||
|
|
||||||
public LiveRoomCheckLivePresenter(Context context, ActionListener actionListener) {
|
public LiveRoomCheckLivePresenter(Context context, ActionListener actionListener) {
|
||||||
mContext = context;
|
mContext = context;
|
||||||
@ -102,7 +102,7 @@ public class LiveRoomCheckLivePresenter {
|
|||||||
* 前往密码房间
|
* 前往密码房间
|
||||||
*/
|
*/
|
||||||
private void forwardPwdRoom() {
|
private void forwardPwdRoom() {
|
||||||
if (!isSearch) {
|
if (!isRoom) {
|
||||||
DialogUitl.showSimpleInputDialog(mContext, WordUtil.getString(R.string.live_input_password), DialogUitl.INPUT_TYPE_NUMBER_PASSWORD, new DialogUitl.SimpleCallback() {
|
DialogUitl.showSimpleInputDialog(mContext, WordUtil.getString(R.string.live_input_password), DialogUitl.INPUT_TYPE_NUMBER_PASSWORD, new DialogUitl.SimpleCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onConfirmClick(Dialog dialog, String content) {
|
public void onConfirmClick(Dialog dialog, String content) {
|
||||||
@ -121,7 +121,7 @@ public class LiveRoomCheckLivePresenter {
|
|||||||
});
|
});
|
||||||
}else {
|
}else {
|
||||||
enterLiveRoom();
|
enterLiveRoom();
|
||||||
isSearch = false;
|
isRoom = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -61,6 +61,7 @@ import org.greenrobot.eventbus.ThreadMode;
|
|||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import io.reactivex.android.schedulers.AndroidSchedulers;
|
import io.reactivex.android.schedulers.AndroidSchedulers;
|
||||||
|
import io.reactivex.functions.Consumer;
|
||||||
import io.reactivex.schedulers.Schedulers;
|
import io.reactivex.schedulers.Schedulers;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -126,6 +127,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
|
|
||||||
|
|
||||||
private void svga_new_user_gif() {
|
private void svga_new_user_gif() {
|
||||||
|
svga_new_user_gif.setVisibility(View.VISIBLE);
|
||||||
new SVGAParser(mContext).decodeFromAssets("free_gift_tip.svga", new SVGAParser.ParseCompletion() {
|
new SVGAParser(mContext).decodeFromAssets("free_gift_tip.svga", new SVGAParser.ParseCompletion() {
|
||||||
@Override
|
@Override
|
||||||
public void onComplete(SVGAVideoEntity videoItem) {
|
public void onComplete(SVGAVideoEntity videoItem) {
|
||||||
@ -142,6 +144,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void svga_new_user_double() {
|
private void svga_new_user_double() {
|
||||||
|
svga_new_user_double.setVisibility(View.VISIBLE);
|
||||||
new SVGAParser(mContext).decodeFromAssets("double_click_tip.svga", new SVGAParser.ParseCompletion() {
|
new SVGAParser(mContext).decodeFromAssets("double_click_tip.svga", new SVGAParser.ParseCompletion() {
|
||||||
@Override
|
@Override
|
||||||
public void onComplete(SVGAVideoEntity videoItem) {
|
public void onComplete(SVGAVideoEntity videoItem) {
|
||||||
@ -159,6 +162,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void svga_new_user_follow() {
|
private void svga_new_user_follow() {
|
||||||
|
svga_new_user_follow.setVisibility(View.VISIBLE);
|
||||||
new SVGAParser(mContext).decodeFromAssets("live_follow_tip.svga", new SVGAParser.ParseCompletion() {
|
new SVGAParser(mContext).decodeFromAssets("live_follow_tip.svga", new SVGAParser.ParseCompletion() {
|
||||||
@Override
|
@Override
|
||||||
public void onComplete(SVGAVideoEntity videoItem) {
|
public void onComplete(SVGAVideoEntity videoItem) {
|
||||||
@ -371,11 +375,11 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(stringResponseModel -> {
|
.subscribe(stringResponseModel -> {
|
||||||
NewPeopleInfo peopleInfo = stringResponseModel.getData().getInfo();
|
NewPeopleInfo peopleInfo = stringResponseModel.getData().getInfo();
|
||||||
if(peopleInfo.getIsShow()){
|
if (peopleInfo.getIsShow()) {
|
||||||
liveNewPeople.setVisibility(View.VISIBLE);
|
liveNewPeople.setVisibility(View.VISIBLE);
|
||||||
newPeopleUrl=peopleInfo.getLink();
|
newPeopleUrl = peopleInfo.getLink();
|
||||||
}
|
}
|
||||||
}).isDisposed();
|
}, Throwable::printStackTrace).isDisposed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -240,7 +240,6 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
ToastUtil.show(error);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
69
live/src/main/res/layout/activity_zhuang_ban_new.xml
Normal file
69
live/src/main/res/layout/activity_zhuang_ban_new.xml
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/ft_title"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="65dp"
|
||||||
|
android:background="@color/white"
|
||||||
|
android:paddingTop="19dp">
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/titleView"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textColor="@color/textColor"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/btn_back"
|
||||||
|
android:layout_width="40dp"
|
||||||
|
android:layout_height="40dp"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:onClick="backClick"
|
||||||
|
android:padding="9dp"
|
||||||
|
android:src="@mipmap/icon_back"
|
||||||
|
android:tint="@color/textColor" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:id="@+id/progressbar"
|
||||||
|
style="@android:style/Widget.ProgressBar.Horizontal"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="3dp"
|
||||||
|
android:progressDrawable="@drawable/bg_horizontal_progressbar"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:id="@+id/rootView"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"/>
|
||||||
|
|
||||||
|
|
||||||
|
<com.opensource.svgaplayer.SVGAImageView
|
||||||
|
android:id="@+id/svga"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_gravity="center_vertical"/>
|
||||||
|
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
@ -26,9 +26,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingStart="8dp"
|
android:paddingTop="26dp">
|
||||||
android:paddingTop="10dp"
|
|
||||||
android:paddingEnd="8dp">
|
|
||||||
|
|
||||||
|
|
||||||
<com.yunbao.common.custom.CommonRefreshView
|
<com.yunbao.common.custom.CommonRefreshView
|
||||||
|
@ -6,21 +6,29 @@
|
|||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<androidx.cardview.widget.CardView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:cardCornerRadius="4dp"
|
||||||
|
app:cardElevation="4dp">
|
||||||
|
|
||||||
<com.ms.banner.Banner
|
<com.ms.banner.Banner
|
||||||
android:id="@+id/banner"
|
android:id="@+id/banner"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="77dp"
|
android:layout_height="77dp"
|
||||||
android:layout_marginBottom="5dp"
|
|
||||||
app:delay_time="3000"
|
app:delay_time="3000"
|
||||||
app:indicator_drawable_selected="@drawable/bg_home_indicator_selected"
|
app:indicator_drawable_selected="@drawable/bg_home_indicator_selected"
|
||||||
app:indicator_drawable_unselected="@drawable/bg_home_indicator_unselected"
|
app:indicator_drawable_unselected="@drawable/bg_home_indicator_unselected"
|
||||||
app:indicator_height="8dp"
|
app:indicator_height="8dp"
|
||||||
app:indicator_margin="6dp"
|
app:indicator_margin="6dp"
|
||||||
app:indicator_width="8dp" />
|
app:indicator_width="8dp" />
|
||||||
|
</androidx.cardview.widget.CardView>
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -175,7 +175,7 @@ public class SearchActivity extends AbsActivity {
|
|||||||
if (code == 0 && info.length > 0) {
|
if (code == 0 && info.length > 0) {
|
||||||
LiveBean liveBean = JSON.parseObject(info[0], LiveBean.class);
|
LiveBean liveBean = JSON.parseObject(info[0], LiveBean.class);
|
||||||
|
|
||||||
LiveRoomCheckLivePresenter.isSearch = true;
|
|
||||||
LiveRoomCheckLivePresenter mCheckLivePresenter = new LiveRoomCheckLivePresenter(mContext, (liveBean1, liveType, liveTypeVal, liveSdk) -> {
|
LiveRoomCheckLivePresenter mCheckLivePresenter = new LiveRoomCheckLivePresenter(mContext, (liveBean1, liveType, liveTypeVal, liveSdk) -> {
|
||||||
if (liveBean1 == null) {
|
if (liveBean1 == null) {
|
||||||
return;
|
return;
|
||||||
|
@ -61,7 +61,6 @@ public class SearchResultsAdapter extends RecyclerView.Adapter {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
ToastUtil.show(error);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,6 @@ public class SearchRecommendFragment extends BaseFragment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
ToastUtil.show(error);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,6 @@ public class SearchRecommendBodyViewHolder extends RecyclerView.ViewHolder {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
ToastUtil.show(error);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user