调整连麦主播邀请用户时,用户的弹框样式
This commit is contained in:
parent
ec40f8fa0d
commit
47b9487e13
85
common/src/main/res/layout/dialog_live_mic_invite.xml
Normal file
85
common/src/main/res/layout/dialog_live_mic_invite.xml
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="280dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/bg_dialog"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:orientation="vertical"
|
||||||
|
>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_marginBottom="15dp"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="主播:"
|
||||||
|
android:textColor="#161616"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="16sp"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/title"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:textColor="#EB6877"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="16sp"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/content"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="15dp"
|
||||||
|
android:layout_marginLeft="15dp"
|
||||||
|
android:layout_marginRight="15dp"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:textColor="#161616"
|
||||||
|
android:textSize="14sp"
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginBottom="22dp"
|
||||||
|
android:layout_height="40dp">
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/btn_cancel"
|
||||||
|
android:layout_width="87dp"
|
||||||
|
android:layout_height="33dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/cancel"
|
||||||
|
android:textColor="#FFC621"
|
||||||
|
android:layout_marginRight="7dp"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:background="@drawable/bg_dialog_unfollow_cancel"
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/btn_confirm"
|
||||||
|
|
||||||
|
android:layout_width="87dp"
|
||||||
|
android:layout_height="33dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginLeft="7dp"
|
||||||
|
android:text="@string/confirm"
|
||||||
|
android:textColor="#FFFFFF"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:background="@mipmap/tipbox_btn_orange"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
@ -539,12 +539,19 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if ("inviteMic".equals(str)) {
|
} else if ("inviteMic".equals(str)) {
|
||||||
DialogUitl.showSimpleDialog(mContext, "主播邀請您進行語音連麥", new DialogUitl.SimpleCallback() {
|
DialogUitl.Builder builder = new DialogUitl.Builder(mContext)
|
||||||
|
.setContent("邀請您進行語音連麥")
|
||||||
|
.setTitle(mLiveBean.getUserNiceName())
|
||||||
|
.setConfrimString("接受")
|
||||||
|
.setCancelString("拒絕")
|
||||||
|
.setView(R.layout.dialog_live_mic_invite)
|
||||||
|
.setClickCallback(new DialogUitl.SimpleCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onConfirmClick(Dialog dialog, String content) {
|
public void onConfirmClick(Dialog dialog, String content) {
|
||||||
UsertoRY();
|
UsertoRY();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
builder.build().show();
|
||||||
|
|
||||||
} else if ("endMic".equals(str)) {
|
} else if ("endMic".equals(str)) {
|
||||||
if (rcrtcRoom != null) {
|
if (rcrtcRoom != null) {
|
||||||
|
@ -3,6 +3,7 @@ package com.yunbao.live.views;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
|
||||||
|
import com.yunbao.common.bean.LiveBean;
|
||||||
import com.yunbao.common.views.AbsViewHolder;
|
import com.yunbao.common.views.AbsViewHolder;
|
||||||
import com.yunbao.live.interfaces.ILiveLinkMicViewHolder;
|
import com.yunbao.live.interfaces.ILiveLinkMicViewHolder;
|
||||||
|
|
||||||
@ -11,6 +12,7 @@ import com.yunbao.live.interfaces.ILiveLinkMicViewHolder;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public abstract class LiveRoomPlayViewHolder extends AbsViewHolder implements ILiveLinkMicViewHolder {
|
public abstract class LiveRoomPlayViewHolder extends AbsViewHolder implements ILiveLinkMicViewHolder {
|
||||||
|
protected LiveBean mLiveBean;
|
||||||
|
|
||||||
public LiveRoomPlayViewHolder(Context context, ViewGroup parentView) {
|
public LiveRoomPlayViewHolder(Context context, ViewGroup parentView) {
|
||||||
super(context, parentView);
|
super(context, parentView);
|
||||||
@ -41,4 +43,8 @@ public abstract class LiveRoomPlayViewHolder extends AbsViewHolder implements IL
|
|||||||
public abstract void setPkEndview();
|
public abstract void setPkEndview();
|
||||||
|
|
||||||
public abstract void setLiveBeanLandscape(int landscape);
|
public abstract void setLiveBeanLandscape(int landscape);
|
||||||
|
|
||||||
|
public void setLiveBean(LiveBean data) {
|
||||||
|
this.mLiveBean = data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -261,6 +261,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
ImgLoader.displayBlurLive(mContext, mLiveBean.getAvatar(), liveBack, 400, 600);
|
ImgLoader.displayBlurLive(mContext, mLiveBean.getAvatar(), liveBack, 400, 600);
|
||||||
//ImageLoadUtils.loadUrlToBlur(mContext,mLiveBean.getAvatar(),400,600,liveBack);
|
//ImageLoadUtils.loadUrlToBlur(mContext,mLiveBean.getAvatar(),400,600,liveBack);
|
||||||
mask.setVisibility(View.VISIBLE);
|
mask.setVisibility(View.VISIBLE);
|
||||||
|
mLivePlayViewHolder.setLiveBean(data);
|
||||||
mLivePlayViewHolder.setCover(data.getThumb());
|
mLivePlayViewHolder.setCover(data.getThumb());
|
||||||
mLivePlayViewHolder.play(data.getPull());
|
mLivePlayViewHolder.play(data.getPull());
|
||||||
mLiveRoomViewHolder.resetView();
|
mLiveRoomViewHolder.resetView();
|
||||||
|
Loading…
Reference in New Issue
Block a user