调整Glide设置高宽的方法
隐藏直播间右侧贵族头条之类的view 取消首页进入密码房输入密码,不然会弹两次密码输入框 密码输入框响应取消按钮
This commit is contained in:
@@ -857,6 +857,7 @@ public class LiveGiftAnimPresenter {
|
||||
|
||||
mIvLook.setVisibility(View.VISIBLE);
|
||||
mGifGiftTipGroupAllServer.setAlpha(1f);
|
||||
mGifGiftTipGroupAllServer.setVisibility(View.VISIBLE);
|
||||
mGifGiftTipShowAnimatorAllServer.start();
|
||||
|
||||
AllMsgTextRender.render(mContext, mGifGiftTipAllServer, mTempGifGiftBean.getGiftIcon(), mTempGifGiftBean.getUserNiceName(), mAncherName, mTempGifGiftBean.getGiftName(), 1, mWindowManager, "");
|
||||
@@ -912,6 +913,7 @@ public class LiveGiftAnimPresenter {
|
||||
mAncherName = bean.getAncherName();
|
||||
|
||||
mGifGiftTipGroupBuyGuard.setAlpha(1f);
|
||||
mGifGiftTipGroupBuyGuard.setVisibility(View.VISIBLE);
|
||||
mGifGiftTipShowAnimatorBuyGuard.start();
|
||||
|
||||
AllMsgTextRender.render(mContext, mGifGiftTipBuyGuard, "", mTempGifGiftBean.getUserNiceName(), mAncherName, "", 2, mWindowManager, mTempGifGiftBean.getGuardType());
|
||||
@@ -945,6 +947,7 @@ public class LiveGiftAnimPresenter {
|
||||
Spanned spanned = Html.fromHtml(text, null, new HtmlTagHandler("myfont"));
|
||||
mGifGiftTipBuyZuoji.setText(spanned);
|
||||
mGifGiftTipBuyZuoji.setSelected(false);
|
||||
mGifGiftTipBuyZuoji.setVisibility(View.VISIBLE);
|
||||
mGifGiftTipBuyZuoji.postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
@@ -993,7 +996,7 @@ public class LiveGiftAnimPresenter {
|
||||
}
|
||||
}
|
||||
}, delayMarqueen);
|
||||
|
||||
mGifGiftTipGroupBuyLiangName.setVisibility(View.VISIBLE);
|
||||
mGifGiftTipGroupBuyLiangName.setAlpha(1f);
|
||||
mGifGiftTipShowAnimatorBuyLiangName.start();
|
||||
}
|
||||
@@ -1039,6 +1042,7 @@ public class LiveGiftAnimPresenter {
|
||||
|
||||
mGifGiftTipGroupBuyVip.setAlpha(1f);
|
||||
if (bean.getAvatar() != null && bean.getAvatar().equals("1")) {
|
||||
mGifGiftTipGroupBuyVip.setVisibility(View.VISIBLE);
|
||||
mGifGiftTipShowAnimatorBuyVip.start();
|
||||
|
||||
AllMsgTextRender.render(mContext, mGifGiftTipBuyVip, "", mTempGifGiftBean.getUserNiceName(), mAncherName, bean.getNobilityname(), 3, mWindowManager, bean.getOpentype());
|
||||
@@ -1069,6 +1073,7 @@ public class LiveGiftAnimPresenter {
|
||||
mGifGiftTipAllServer.setSelected(false);
|
||||
mIvLook.setVisibility(View.GONE);
|
||||
mGifGiftTipGroupAllServer.setAlpha(1f);
|
||||
mGifGiftTipGroupAllServer.setVisibility(View.VISIBLE);
|
||||
mGifGiftTipShowAnimatorAllServer.start();
|
||||
|
||||
AllMsgTextRender.render(mContext, mGifGiftTipAllServer, "", bean.getVipName(), "", "", 4, mWindowManager, "");
|
||||
@@ -1111,6 +1116,7 @@ public class LiveGiftAnimPresenter {
|
||||
Log.e("--> ", "v115");
|
||||
mGifGiftTip.setText(getGiftWordsContent1());
|
||||
mGifGiftTipGroup.setAlpha(1f);
|
||||
mGifGiftTipGroup.setVisibility(View.VISIBLE);
|
||||
mGifGiftTipShowAnimator.start();
|
||||
if (mHandler != null) {
|
||||
mHandler.sendEmptyMessageDelayed(WHAT_GIF, 4000);
|
||||
@@ -1166,6 +1172,7 @@ public class LiveGiftAnimPresenter {
|
||||
if (!mIsSameRoom) {
|
||||
mGifGiftTip.setText(getGiftWordsContent1());
|
||||
mGifGiftTipGroup.setAlpha(1f);
|
||||
mGifGiftTipGroup.setVisibility(View.VISIBLE);
|
||||
mGifGiftTipShowAnimator.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.yunbao.live.presenter;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
@@ -106,7 +107,14 @@ public class LiveRoomCheckLivePresenter {
|
||||
* 前往密码房间
|
||||
*/
|
||||
private void forwardPwdRoom() {
|
||||
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.SimpleCallback2() {
|
||||
@Override
|
||||
public void onCancelClick() {
|
||||
if(mContext instanceof Activity) {
|
||||
((Activity) mContext).finish();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
if (TextUtils.isEmpty(content)) {
|
||||
|
||||
@@ -216,7 +216,9 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
||||
mCover.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
mPlayer.stopPlay();
|
||||
if(mPlayer!=null) {
|
||||
mPlayer.stopPlay();
|
||||
}
|
||||
stopPlay2();
|
||||
}
|
||||
|
||||
|
||||
@@ -948,6 +948,7 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/gif_gift_tip_group"
|
||||
android:layout_width="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:layout_height="26dp"
|
||||
android:layout_below="@id/hour_rank_layout"
|
||||
android:layout_marginLeft="10dp"
|
||||
@@ -986,6 +987,7 @@
|
||||
android:id="@+id/gif_gift_tip_group_all_server"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="36dp"
|
||||
android:visibility="gone"
|
||||
android:translationX="500dp">
|
||||
|
||||
<LinearLayout
|
||||
@@ -1058,6 +1060,7 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/gif_gift_tip_group_buy_guard"
|
||||
android:layout_width="match_parent"
|
||||
android:visibility="gone"
|
||||
android:layout_height="36dp"
|
||||
android:translationX="500dp">
|
||||
|
||||
@@ -1132,6 +1135,7 @@
|
||||
android:id="@+id/gif_gift_tip_group_buy_zuoji"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="100dp"
|
||||
android:translationX="500dp">
|
||||
@@ -1183,6 +1187,7 @@
|
||||
android:id="@+id/gif_gift_tip_group_buy_liang_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="135dp"
|
||||
android:translationX="500dp">
|
||||
@@ -1233,6 +1238,7 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/gif_gift_tip_group_buy_vip"
|
||||
android:layout_width="match_parent"
|
||||
android:visibility="gone"
|
||||
android:layout_height="36dp"
|
||||
android:translationX="500dp">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user