喇叭,个人中心贵族添加中心

This commit is contained in:
18401019693 2022-08-03 18:24:52 +08:00
parent e5cf353597
commit 805ca91637
19 changed files with 739 additions and 432 deletions

View File

@ -46,7 +46,12 @@ public class ImgLoader {
} }
Glide.with(context).asDrawable().load(url).placeholder(imageView.getDrawable()).dontAnimate().skipMemoryCache(SKIP_MEMORY_CACHE).into(imageView); Glide.with(context).asDrawable().load(url).placeholder(imageView.getDrawable()).dontAnimate().skipMemoryCache(SKIP_MEMORY_CACHE).into(imageView);
} }
public static void display2(Context context, int url, ImageView imageView) {
if (!contextIsExist(context)){
return;
}
Glide.with(context).asDrawable().load(url).placeholder(imageView.getDrawable()).dontAnimate().skipMemoryCache(SKIP_MEMORY_CACHE).into(imageView);
}
public static void displayWithError(Context context, String url, ImageView imageView, int errorRes) { public static void displayWithError(Context context, String url, ImageView imageView, int errorRes) {
if (!contextIsExist(context)){ if (!contextIsExist(context)){
return; return;

View File

@ -2,8 +2,11 @@ package com.yunbao.common.manager.imrongcloud;
import android.util.Log; import android.util.Log;
import java.util.List;
import io.rong.imkit.IMCenter; import io.rong.imkit.IMCenter;
import io.rong.imkit.MessageInterceptor; import io.rong.imkit.MessageInterceptor;
import io.rong.imlib.RongIMClient;
import io.rong.imlib.model.Conversation; import io.rong.imlib.model.Conversation;
import io.rong.imlib.model.Message; import io.rong.imlib.model.Message;
import io.rong.message.TextMessage; import io.rong.message.TextMessage;
@ -23,9 +26,33 @@ public class PDMessageInterceptor implements MessageInterceptor {
Log.e("PDMessageInterceptor", textMessage.getContent()); Log.e("PDMessageInterceptor", textMessage.getContent());
//删除消息 //删除消息
IMCenter.getInstance().deleteRemoteMessages(Conversation.ConversationType.PRIVATE, message.getTargetId(), messages, null); IMCenter.getInstance().deleteRemoteMessages(Conversation.ConversationType.PRIVATE, message.getTargetId(), messages, null);
IMCenter.getInstance().clearMessagesUnreadStatus(Conversation.ConversationType.PRIVATE, message.getTargetId(), null); IMCenter.getInstance().clearMessagesUnreadStatus(Conversation.ConversationType.PRIVATE, message.getTargetId(), null);
// return true; // return true;
} }
RongIMClient.getInstance().getHistoryMessages(Conversation.ConversationType.PRIVATE, message.getTargetId(), -1, 10,
new RongIMClient.ResultCallback<List<Message>>() {
/**
* 成功时回调
*
* @param messages 获取的消息列表
*/
@Override
public void onSuccess(List<Message> messages) {
if (messages.size() == 0||(messages.size()==1&&((TextMessage) messages.get(0).getContent()).getContent().contains("LivePK"))) {
IMCenter.getInstance().removeConversation(Conversation.ConversationType.PRIVATE, message.getTargetId(), null);
}
}
/**
* 错误时回调
*
* @param e 错误码
*/
@Override
public void onError(RongIMClient.ErrorCode e) {
}
});
} }
return false; return false;
} }

View File

@ -865,4 +865,5 @@
<string name="back">返回</string> <string name="back">返回</string>
<string name="go_nobility">前往贵族</string> <string name="go_nobility">前往贵族</string>
<string name="use_successfully">使用成功</string> <string name="use_successfully">使用成功</string>
<string name="use_live">前往直播間</string>
</resources> </resources>

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -14,6 +14,7 @@ import com.yunbao.common.CommonAppConfig;
import com.yunbao.common.CommonAppContext; import com.yunbao.common.CommonAppContext;
import com.yunbao.common.Constants; import com.yunbao.common.Constants;
import com.yunbao.common.bean.FansMedalBean; import com.yunbao.common.bean.FansMedalBean;
import com.yunbao.common.bean.MsgModel;
import com.yunbao.common.bean.SocketModel; import com.yunbao.common.bean.SocketModel;
import com.yunbao.common.bean.UserBean; import com.yunbao.common.bean.UserBean;
import com.yunbao.common.http.HttpCallback; import com.yunbao.common.http.HttpCallback;
@ -441,8 +442,10 @@ public class SocketRyClient {
break; break;
case Constants.TRUMPET_NOTIFY://全站喇叭 case Constants.TRUMPET_NOTIFY://全站喇叭
SocketModel model = GsonUtils.fromJson(socketMsg, SocketModel.class); SocketModel model = GsonUtils.fromJson(socketMsg, SocketModel.class);
Log.e(Constants.TRUMPET_NOTIFY,model.getMsg().get(0).getTrumpetMsg()); List<MsgModel> msg = model.getMsg();
Log.e(Constants.TRUMPET_NOTIFY,model.getMsg().get(0).getUserName()); if (msg.size() > 0) {
EventBus.getDefault().post(msg.get(0));
}
break; break;
} }
} }

View File

@ -1,28 +1,39 @@
package com.yunbao.live.views; package com.yunbao.live.views;
import android.annotation.SuppressLint;
import android.app.Activity; import android.app.Activity;
import android.app.Dialog; import android.app.Dialog;
import android.content.Context; import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.os.Bundle; import android.os.Bundle;
import android.os.CountDownTimer; import android.os.CountDownTimer;
import android.os.Handler; import android.os.Handler;
import android.util.DisplayMetrics;
import android.util.Log; import android.util.Log;
import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.Button; import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.RelativeLayout; import android.widget.RelativeLayout;
import android.widget.TextView; import android.widget.TextView;
import android.widget.ViewFlipper;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.opensource.svgaplayer.SVGACallback;
import com.opensource.svgaplayer.SVGADrawable; import com.opensource.svgaplayer.SVGADrawable;
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;
import com.yunbao.common.CommonAppConfig; import com.yunbao.common.CommonAppConfig;
import com.yunbao.common.Constants; import com.yunbao.common.Constants;
import com.yunbao.common.bean.MsgModel;
import com.yunbao.common.event.MessageIMEvent; import com.yunbao.common.event.MessageIMEvent;
import com.yunbao.common.event.UpdateTablePoint; import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.http.HttpCallback; import com.yunbao.common.http.HttpCallback;
import com.yunbao.common.http.HttpClient; import com.yunbao.common.http.HttpClient;
import com.yunbao.common.manager.imrongcloud.MessageIMManager; import com.yunbao.common.manager.imrongcloud.MessageIMManager;
@ -41,11 +52,6 @@ import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode; import org.greenrobot.eventbus.ThreadMode;
import java.net.MalformedURLException;
import java.net.URL;
import static com.yunbao.live.views.LiveRoomViewHolder.mNameText;
/** /**
* Created by cxf on 2018/10/9. * Created by cxf on 2018/10/9.
* 观众直播间逻辑 * 观众直播间逻辑
@ -58,9 +64,13 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
private String url; private String url;
private LinearLayout lt_trickery; private LinearLayout lt_trickery;
private TextView tv_trickery_time; private TextView tv_trickery_time;
private View v_msg_redpoint; private View v_msg_redpoint, stationHornBanner;
private Activity context; private Activity context;
private SVGAImageView svga_new_user_gif,svga_new_user_double,svga_new_user_follow; private SVGAImageView svga_new_user_gif, svga_new_user_double, svga_new_user_follow, svga_station_horn;
private ViewFlipper viewFlipper;
private TextView goToRomm;
private int icon = 0;
private String nobleName, nobleTtext;
public LiveAudienceViewHolder(Context context, ViewGroup parentView) { public LiveAudienceViewHolder(Context context, ViewGroup parentView) {
super(context, parentView); super(context, parentView);
@ -71,30 +81,30 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
public void onUpdata(String str) { public void onUpdata(String str) {
if ("svga_new_user_gif".equals(str)) { if ("svga_new_user_gif".equals(str)) {
svga_new_user_gif(); svga_new_user_gif();
}else if ("svga_new_user_double".equals(str)) { } else if ("svga_new_user_double".equals(str)) {
svga_new_user_double(); svga_new_user_double();
}else if ("svga_new_user_follow".equals(str)) { } else if ("svga_new_user_follow".equals(str)) {
svga_new_user_follow(); svga_new_user_follow();
}else if("stop_svga_new_user_double".equals(str)){ } else if ("stop_svga_new_user_double".equals(str)) {
svga_new_user_double.setVisibility(View.GONE); svga_new_user_double.setVisibility(View.GONE);
svga_new_user_double.stopAnimation(); svga_new_user_double.stopAnimation();
svga_new_user_double.clear(); svga_new_user_double.clear();
} else if("stop_svga_new_user_follow".equals(str)) { } else if ("stop_svga_new_user_follow".equals(str)) {
svga_new_user_follow.setVisibility(View.GONE); svga_new_user_follow.setVisibility(View.GONE);
svga_new_user_follow.stopAnimation(); svga_new_user_follow.stopAnimation();
svga_new_user_follow.clear(); svga_new_user_follow.clear();
}else if("stop_svga_new_user_gif".equals(str)) { } else if ("stop_svga_new_user_gif".equals(str)) {
svga_new_user_gif.setVisibility(View.GONE); svga_new_user_gif.setVisibility(View.GONE);
svga_new_user_gif.stopAnimation(); svga_new_user_gif.stopAnimation();
svga_new_user_gif.clear(); svga_new_user_gif.clear();
}else if("name_true".equals(str)){ } else if ("name_true".equals(str)) {
if(LiveRoomViewHolder.mName.getText().length()<=4){ if (LiveRoomViewHolder.mName.getText().length() <= 4) {
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(DpUtil.dp2px(116),DpUtil.dp2px(40)); RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(DpUtil.dp2px(116), DpUtil.dp2px(40));
layoutParams.setMargins(DpUtil.dp2px(80),DpUtil.dp2px(80),0,0); layoutParams.setMargins(DpUtil.dp2px(80), DpUtil.dp2px(80), 0, 0);
svga_new_user_follow.setLayoutParams(layoutParams); svga_new_user_follow.setLayoutParams(layoutParams);
}else{ } else {
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(DpUtil.dp2px(116),DpUtil.dp2px(40)); RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(DpUtil.dp2px(116), DpUtil.dp2px(40));
layoutParams.setMargins(DpUtil.dp2px(100),DpUtil.dp2px(80),0,0); layoutParams.setMargins(DpUtil.dp2px(100), DpUtil.dp2px(80), 0, 0);
svga_new_user_follow.setLayoutParams(layoutParams); svga_new_user_follow.setLayoutParams(layoutParams);
} }
} }
@ -102,7 +112,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
} }
private void svga_new_user_gif(){ private void svga_new_user_gif() {
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) {
@ -113,10 +123,11 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
@Override @Override
public void onError() { public void onError() {
Log.e("errqs","errl"); Log.e("errqs", "errl");
} }
}); });
} }
private void svga_new_user_double() { private void svga_new_user_double() {
new SVGAParser(mContext).decodeFromAssets("double_click_tip.svga", new SVGAParser.ParseCompletion() { new SVGAParser(mContext).decodeFromAssets("double_click_tip.svga", new SVGAParser.ParseCompletion() {
@Override @Override
@ -133,6 +144,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
} }
}); });
} }
private void svga_new_user_follow() { private void svga_new_user_follow() {
new SVGAParser(mContext).decodeFromAssets("live_follow_tip.svga", new SVGAParser.ParseCompletion() { new SVGAParser(mContext).decodeFromAssets("live_follow_tip.svga", new SVGAParser.ParseCompletion() {
@Override @Override
@ -149,6 +161,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
}); });
} }
@Override @Override
protected int getLayoutId() { protected int getLayoutId() {
return R.layout.view_live_audience; return R.layout.view_live_audience;
@ -163,11 +176,12 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
findViewById(R.id.btn_red_pack).setOnClickListener(this); findViewById(R.id.btn_red_pack).setOnClickListener(this);
findViewById(R.id.btn_gift).setOnClickListener(this); findViewById(R.id.btn_gift).setOnClickListener(this);
findViewById(R.id.btn_zg).setOnClickListener(this); findViewById(R.id.btn_zg).setOnClickListener(this);
svga_new_user_gif = (SVGAImageView)findViewById(R.id.svga_new_user_gif); svga_new_user_gif = (SVGAImageView) findViewById(R.id.svga_new_user_gif);
svga_new_user_double = (SVGAImageView)findViewById(R.id.svga_new_user_double); svga_new_user_double = (SVGAImageView) findViewById(R.id.svga_new_user_double);
svga_new_user_follow = (SVGAImageView)findViewById(R.id.svga_new_user_follow); svga_new_user_follow = (SVGAImageView) findViewById(R.id.svga_new_user_follow);
svga_station_horn = (SVGAImageView) findViewById(R.id.svga_station_horn);
viewFlipper = (ViewFlipper) findViewById(R.id.viewflipper_banner);
stationHornBanner = findViewById(R.id.station_horn_banner);
svga_new_user_double.setOnClickListener(new View.OnClickListener() { svga_new_user_double.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
@ -179,7 +193,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
public void onClick(View v) { public void onClick(View v) {
//获取房间连麦状态 //获取房间连麦状态
HttpClient.getInstance().get("live.getDrLm", "live.getDrLm") HttpClient.getInstance().get("live.getDrLm", "live.getDrLm")
.params("uid", mLiveUid,true) .params("uid", mLiveUid, true)
.execute(new HttpCallback() { .execute(new HttpCallback() {
@Override @Override
public void onSuccess(int code, String msg, String[] info) { public void onSuccess(int code, String msg, String[] info) {
@ -217,6 +231,65 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
v_msg_redpoint = (View) findViewById(R.id.v_msg_redpoint); v_msg_redpoint = (View) findViewById(R.id.v_msg_redpoint);
//获取系统未读消息 //获取系统未读消息
MessageIMManager.get(mContext).getSystemMessages(); MessageIMManager.get(mContext).getSystemMessages();
//全站喇叭
svga_station_horn.setCallback(new SVGACallback() {
@Override
public void onPause() {
}
@Override
public void onFinished() {
}
@Override
public void onRepeat() {
}
@Override
public void onStep(int frame, double percentage) {
Log.e("SVGADynamicEntity", "frame" + frame);
Log.e("SVGADynamicEntity", "percentage" + percentage);
if ((int) (percentage * 100) == 5) {
viewFlipper.removeAllViews();
stationHornBanner.setVisibility(View.VISIBLE);
if ((nobleName + nobleTtext).length() > 15) {
for (int i = 0; i < 2; i++) {
//展示内容子布局
View childrenView = LayoutInflater.from(mContext).inflate(R.layout.view_whole_station_horn, null, false);
ImageView iconImg = childrenView.findViewById(R.id.icon_img);
TextView userName = childrenView.findViewById(R.id.rc_user_name);
TextView userText = childrenView.findViewById(R.id.rc_user_text);
userName.setText(nobleName);
userText.setText(" : " + nobleTtext);
ImgLoader.display2(mContext, icon, iconImg);
viewFlipper.addView(childrenView);
}
} else {
//展示内容子布局
View childrenView = LayoutInflater.from(mContext).inflate(R.layout.view_whole_station_horn, null, false);
ImageView iconImg = childrenView.findViewById(R.id.icon_img);
TextView userName = childrenView.findViewById(R.id.rc_user_name);
TextView userText = childrenView.findViewById(R.id.rc_user_text);
userName.setText(nobleName);
userText.setText(" : " + nobleTtext);
ImgLoader.display2(mContext, icon, iconImg);
viewFlipper.addView(childrenView);
}
}
if ((int) (percentage * 100) == 50 && viewFlipper.getChildCount() > 1) {
viewFlipper.showNext();
}
if ((int) (percentage * 100) == 92) {
stationHornBanner.setVisibility(View.GONE);
}
}
});
} }
public static Handler handler = new Handler(); public static Handler handler = new Handler();
@ -503,4 +576,83 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
super.release(); super.release();
EventBus.getDefault().unregister(this); EventBus.getDefault().unregister(this);
} }
/**
* 绘制全站喇叭的样式
*
* @return
*/
@SuppressLint("SetTextI18n")
private Bitmap canvasBitmap(int icon, String name, String text) {
// Log.e("SVGADynamicEntity", "子布局宽度:" + name);
// Log.e("SVGADynamicEntity", "fu布局宽度" + text);
//计算设备分辨率
WindowManager manager = ((Activity) mContext).getWindowManager();
DisplayMetrics metrics = new DisplayMetrics();
manager.getDefaultDisplay().getMetrics(metrics);
int width = metrics.widthPixels;
int height = metrics.heightPixels;
View view = LayoutInflater.from(mContext).inflate(R.layout.view_whole_station_horn_layout, null, false);
ViewFlipper viewFlipper = view.findViewById(R.id.viewflipper_banner);
//展示内容子布局
View childrenView = LayoutInflater.from(mContext).inflate(R.layout.view_whole_station_horn, null, false);
ImageView iconImg = childrenView.findViewById(R.id.icon_img);
TextView userName = childrenView.findViewById(R.id.rc_user_name);
TextView userText = childrenView.findViewById(R.id.rc_user_text);
userName.setText(name);
userText.setText(" : " + text);
ImgLoader.display2(mContext, icon, iconImg);
viewFlipper.addView(childrenView);
//测量使得view指定大小
int measureWidth = View.MeasureSpec.makeMeasureSpec(width / 3 * 2 - 30, View.MeasureSpec.AT_MOST);
int measureHeight = View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.AT_MOST);
view.measure(measureWidth, measureHeight);
//调用layout方法布局后可以得到view的尺寸
view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight());
// Log.e("SVGADynamicEntity", "子布局宽度:" + childrenView.getWidth());
// Log.e("SVGADynamicEntity", "fu布局宽度" + (width / 3 * 2 - 30));
Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888);
Canvas bitmapCanvas = new Canvas(bitmap);
bitmapCanvas.drawColor(Color.TRANSPARENT);
view.draw(bitmapCanvas);
return bitmap;
}
/**
* 全站喇叭
*/
@Subscribe(threadMode = ThreadMode.MAIN)
public void onMsgModelEvent(MsgModel model) {
nobleName = model.getUserName();
nobleTtext = model.getTrumpetMsg();
if (!svga_station_horn.isAnimating()) {
svga_station_horn.setLoops(1);
String backPath = "";
if (model.getNobleId() == 5) {
backPath = "icon_livemsgbg_guowang.svga";
icon = R.mipmap.imng_guowang;
} else if (model.getNobleId() == 6) {
backPath = "icon_livemsgbg_huangdi.svga";
icon = R.mipmap.img_huangdi;
} else {
backPath = "icon_livemsgbg_chaohuang.svga";
icon = R.mipmap.img_chaohuang;
}
new SVGAParser(mContext).decodeFromAssets(backPath, new SVGAParser.ParseCompletion() {
@Override
public void onComplete(SVGAVideoEntity videoItem) {
SVGADrawable drawable = new SVGADrawable(videoItem);
svga_station_horn.setImageDrawable(drawable);
svga_station_horn.startAnimation();
}
@Override
public void onError() {
Log.e("errqs", "errl");
}
});
}
}
} }

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:fromXDelta="100%p"
android:toXDelta="0%p" />
<translate
android:fromXDelta="100%p"
android:toXDelta="0%p" />
</set>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:duration="1000"
android:fromXDelta="0%p"
android:toXDelta="-100%p" />
<translate
android:duration="1000"
android:fromXDelta="0%p"
android:toXDelta="-100%p" />
</set>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<corners android:radius="11dp" />
<gradient android:angle="360" android:endColor="#FFFBD040" android:startColor="#FFFF5655" />
</shape>
</item>
</selector>

View File

@ -58,6 +58,7 @@
android:drawableStart="@mipmap/icon_world_horn" android:drawableStart="@mipmap/icon_world_horn"
android:text="@string/whole_station_horn" android:text="@string/whole_station_horn"
android:textColor="#FFB1B6C7" android:textColor="#FFB1B6C7"
android:visibility="gone"
android:textSize="12sp" /> android:textSize="12sp" />
<View <View

View File

@ -9,464 +9,475 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_alignParentBottom="true"
android:orientation="vertical">
<LinearLayout
android:id="@+id/btn_turntable"
android:layout_width="76dp"
android:layout_height="45dp"
android:layout_gravity="right"
android:layout_marginRight="10dp"
android:layout_marginBottom="30dp"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="gone">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/live_turntable" />
</LinearLayout>
<LinearLayout
android:id="@+id/lt_trickery"
android:layout_width="75dp"
android:layout_height="75dp"
android:layout_gravity="right"
android:layout_marginRight="10dp"
android:layout_marginBottom="18dp"
android:background="@mipmap/img_buoy"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone">
<TextView
android:id="@+id/tv_trickery_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="9dp"
android:text="60"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/btn_event3" android:id="@+id/chart_room_layout"
android:layout_width="67dp" android:layout_width="match_parent"
android:layout_height="90dp" android:layout_height="wrap_content"
android:layout_gravity="right" android:layout_alignParentBottom="true"
android:layout_marginRight="10dp" android:layout_gravity="bottom"
android:layout_marginBottom="18dp"
android:gravity="center_horizontal"
android:background="@mipmap/live_mission_box"
android:visibility="gone"
android:orientation="vertical"> android:orientation="vertical">
<com.ms.banner.Banner
android:id="@+id/banner3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="5dp"
android:layout_marginRight="5dp"
android:layout_marginLeft="5dp"
app:delay_time="5000"
app:indicator_height="8dp"
app:indicator_width="8dp" />
</LinearLayout> <LinearLayout
android:id="@+id/btn_turntable"
android:layout_width="76dp"
android:layout_height="45dp"
android:layout_gravity="right"
android:layout_marginRight="10dp"
android:layout_marginBottom="30dp"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="gone">
<LinearLayout <ImageView
android:id="@+id/btn_event1" android:layout_width="match_parent"
android:layout_width="68dp" android:layout_height="match_parent"
android:layout_height="68dp" android:src="@drawable/live_turntable" />
android:layout_gravity="right"
android:layout_marginRight="10dp"
android:layout_marginBottom="18dp"
android:gravity="center_horizontal"
android:orientation="vertical">
<com.ms.banner.Banner </LinearLayout>
android:id="@+id/banner1"
android:layout_width="68dp"
android:layout_height="68dp"
android:layout_marginBottom="5dp"
app:delay_time="5000"
app:indicator_height="8dp"
app:indicator_width="8dp" />
</LinearLayout> <LinearLayout
android:id="@+id/lt_trickery"
android:layout_width="75dp"
android:layout_height="75dp"
android:layout_gravity="right"
android:layout_marginRight="10dp"
android:layout_marginBottom="18dp"
android:background="@mipmap/img_buoy"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone">
<!-- <ImageView--> <TextView
<!-- android:id="@+id/btn_event2"--> android:id="@+id/tv_trickery_time"
<!-- android:layout_width="68dp"--> android:layout_width="wrap_content"
<!-- android:layout_height="102dp"--> android:layout_height="wrap_content"
<!-- android:layout_gravity="right"--> android:layout_marginBottom="9dp"
<!-- android:layout_marginRight="10dp"--> android:text="60"
<!-- android:layout_marginBottom="20dp"--> android:textColor="@color/white"
<!-- android:gravity="center_horizontal"--> android:textSize="18sp"
<!-- android:orientation="vertical"/>--> android:textStyle="bold" />
<LinearLayout </LinearLayout>
android:id="@+id/btn_event2"
android:layout_width="58dp"
android:layout_height="80dp"
android:layout_gravity="right"
android:layout_marginRight="15dp"
android:layout_marginBottom="18dp"
android:gravity="center_horizontal"
android:orientation="vertical">
<com.ms.banner.Banner <LinearLayout
android:id="@+id/banner2" android:id="@+id/btn_event3"
android:layout_width="58dp" android:layout_width="67dp"
android:layout_height="80dp" android:layout_height="90dp"
android:layout_marginBottom="5dp" android:layout_gravity="right"
app:delay_time="5000" android:layout_marginRight="10dp"
app:indicator_height="8dp" android:layout_marginBottom="18dp"
app:indicator_width="8dp" /> android:background="@mipmap/live_mission_box"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="gone">
</LinearLayout> <com.ms.banner.Banner
android:id="@+id/banner3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:layout_marginRight="5dp"
app:delay_time="5000"
app:indicator_height="8dp"
app:indicator_width="8dp" />
<LinearLayout </LinearLayout>
android:id="@+id/btn_onecz_event"
android:layout_width="55dp"
android:layout_height="55dp"
android:layout_gravity="right"
android:layout_marginRight="10dp"
android:layout_marginBottom="20dp"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="gone">
<pl.droidsonroids.gif.GifImageView <LinearLayout
android:id="@+id/img_onecz" android:id="@+id/btn_event1"
android:layout_width="match_parent" android:layout_width="68dp"
android:layout_height="match_parent" android:layout_height="68dp"
android:adjustViewBounds="true" android:layout_gravity="right"
android:src="@mipmap/onecz" /> android:layout_marginRight="10dp"
android:layout_marginBottom="18dp"
android:gravity="center_horizontal"
android:orientation="vertical">
</LinearLayout> <com.ms.banner.Banner
android:id="@+id/banner1"
android:layout_width="68dp"
android:layout_height="68dp"
android:layout_marginBottom="5dp"
app:delay_time="5000"
app:indicator_height="8dp"
app:indicator_width="8dp" />
<LinearLayout </LinearLayout>
android:id="@+id/btn_event"
android:layout_width="68dp"
android:layout_height="68dp"
android:layout_gravity="right"
android:layout_marginRight="10dp"
android:layout_marginBottom="20dp"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="gone">
<ImageView <LinearLayout
android:id="@+id/img_event" android:id="@+id/btn_event2"
android:layout_width="match_parent" android:layout_width="58dp"
android:layout_height="match_parent" android:layout_height="80dp"
android:src="@drawable/live_turntable" /> android:layout_gravity="right"
android:layout_marginRight="15dp"
android:layout_marginBottom="18dp"
android:gravity="center_horizontal"
android:orientation="vertical">
</LinearLayout> <com.ms.banner.Banner
android:id="@+id/banner2"
android:layout_width="58dp"
android:layout_height="80dp"
android:layout_marginBottom="5dp"
app:delay_time="5000"
app:indicator_height="8dp"
app:indicator_width="8dp" />
</LinearLayout>
<LinearLayout
android:id="@+id/btn_onecz_event"
android:layout_width="55dp"
android:layout_height="55dp"
android:layout_gravity="right"
android:layout_marginRight="10dp"
android:layout_marginBottom="20dp"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="gone">
<pl.droidsonroids.gif.GifImageView
android:id="@+id/img_onecz"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:src="@mipmap/onecz" />
</LinearLayout>
<LinearLayout
android:id="@+id/btn_event"
android:layout_width="68dp"
android:layout_height="68dp"
android:layout_gravity="right"
android:layout_marginRight="10dp"
android:layout_marginBottom="20dp"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="gone">
<ImageView
android:id="@+id/img_event"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/live_turntable" />
</LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/btn_wishlist" android:id="@+id/btn_wishlist"
android:layout_width="55dp" android:layout_width="55dp"
android:layout_height="55dp" android:layout_height="55dp"
android:layout_gravity="right" android:layout_gravity="right"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:layout_marginBottom="20dp" android:layout_marginBottom="20dp"
android:gravity="center_horizontal" android:gravity="center_horizontal"
android:orientation="vertical" android:orientation="vertical"
android:visibility="gone"> android:visibility="gone">
<ImageView <ImageView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:src="@drawable/icon_wish_player" /> android:src="@drawable/icon_wish_player" />
<TextView <TextView
android:id="@+id/wishlist_tip" android:id="@+id/wishlist_tip"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center" android:gravity="center"
android:text="@string/live_wish_list" android:text="@string/live_wish_list"
android:textColor="@color/gray2" android:textColor="@color/gray2"
android:textSize="10sp" android:textSize="10sp"
android:visibility="gone" /> android:visibility="gone" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/btn_link_mic2" android:id="@+id/btn_link_mic2"
android:layout_width="50dp" android:layout_width="50dp"
android:layout_height="50dp" android:layout_height="50dp"
android:layout_gravity="right" android:layout_gravity="right"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
android:background="@drawable/bg_live_link_mic" android:background="@drawable/bg_live_link_mic"
android:gravity="center_horizontal" android:gravity="center_horizontal"
android:orientation="vertical" android:orientation="vertical"
android:visibility="gone"> android:visibility="gone">
<ImageView <ImageView
android:layout_width="30dp" android:layout_width="30dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_marginTop="2dp" android:layout_marginTop="2dp"
android:src="@mipmap/icon_live_link_mic" /> android:src="@mipmap/icon_live_link_mic" />
<TextView <TextView
android:id="@+id/link_mic_tip" android:id="@+id/link_mic_tip"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center" android:gravity="center"
android:text="@string/live_link_mic_2" android:text="@string/live_link_mic_2"
android:textColor="@color/gray2" android:textColor="@color/gray2"
android:textSize="10sp" /> android:textSize="10sp" />
</LinearLayout> </LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="45dp">
<ImageView
android:id="@+id/btn_close"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:padding="5dp"
android:src="@mipmap/icon_live_close"
android:visibility="invisible" />
<pl.droidsonroids.gif.GifImageView
android:id="@+id/btn_zg"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_toLeftOf="@id/btn_gift"
android:adjustViewBounds="true"
android:background="@mipmap/img_bg"
android:padding="5dp"
android:src="@mipmap/zg" />
<RelativeLayout
android:id="@+id/btn_zg1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/btn_zg">
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:background="@mipmap/img_bg" />
<pl.droidsonroids.gif.GifImageView
android:id="@+id/btn_hd"
android:layout_width="33dp"
android:layout_height="33dp"
android:adjustViewBounds="true"
android:src="@mipmap/play" />
</RelativeLayout>
<pl.droidsonroids.gif.GifImageView
android:id="@+id/btn_share"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_toRightOf="@id/btn_gift"
android:adjustViewBounds="true"
android:background="@mipmap/img_bg"
android:padding="5dp"
android:src="@mipmap/zan_gif"
android:visibility="gone" />
<pl.droidsonroids.gif.GifImageView
android:id="@+id/btn_gift"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@id/btn_close"
android:adjustViewBounds="true"
android:background="@mipmap/img_bg"
android:src="@mipmap/live_lw" />
<ImageView
android:id="@+id/btn_link_mic"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/btn_more"
android:src="@mipmap/icon_live_link_mic_1"
android:visibility="gone" />
<ImageView
android:id="@+id/btn_more"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:layout_toLeftOf="@id/btn_mic"
android:src="@mipmap/live_user_more" />
<ImageView
android:id="@+id/btn_mic"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:layout_toLeftOf="@id/btn_zg1"
android:src="@mipmap/lianmai" />
<RelativeLayout
android:id="@+id/msg_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/btn_more">
<RelativeLayout <RelativeLayout
android:id="@+id/rt_msg" android:layout_width="match_parent"
android:layout_width="45dp"
android:layout_height="45dp"> android:layout_height="45dp">
<ImageView <ImageView
android:id="@+id/btn_msg" android:id="@+id/btn_close"
android:layout_width="40dp" android:layout_width="0dp"
android:layout_height="40dp" android:layout_height="0dp"
android:layout_centerHorizontal="true" android:layout_alignParentRight="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:padding="5dp" android:padding="5dp"
android:src="@mipmap/messagesss" /> android:src="@mipmap/icon_live_close"
android:visibility="invisible" />
<View
android:id="@+id/v_msg_redpoint" <pl.droidsonroids.gif.GifImageView
android:layout_width="12dp" android:id="@+id/btn_zg"
android:layout_height="12dp" android:layout_width="32dp"
android:layout_alignParentRight="true" android:layout_height="32dp"
android:layout_marginTop="6dp" android:layout_centerVertical="true"
android:layout_marginRight="6dp" android:layout_marginLeft="5dp"
android:background="@drawable/background_ff5075" android:layout_toLeftOf="@id/btn_gift"
android:adjustViewBounds="true"
android:background="@mipmap/img_bg"
android:padding="5dp"
android:src="@mipmap/zg" />
<RelativeLayout
android:id="@+id/btn_zg1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/btn_zg">
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:background="@mipmap/img_bg" />
<pl.droidsonroids.gif.GifImageView
android:id="@+id/btn_hd"
android:layout_width="33dp"
android:layout_height="33dp"
android:adjustViewBounds="true"
android:src="@mipmap/play" />
</RelativeLayout>
<pl.droidsonroids.gif.GifImageView
android:id="@+id/btn_share"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_toRightOf="@id/btn_gift"
android:adjustViewBounds="true"
android:background="@mipmap/img_bg"
android:padding="5dp"
android:src="@mipmap/zan_gif"
android:visibility="gone" /> android:visibility="gone" />
<pl.droidsonroids.gif.GifImageView
android:id="@+id/btn_gift"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@id/btn_close"
android:adjustViewBounds="true"
android:background="@mipmap/img_bg"
android:src="@mipmap/live_lw" />
<ImageView
android:id="@+id/btn_link_mic"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/btn_more"
android:src="@mipmap/icon_live_link_mic_1"
android:visibility="gone" />
<ImageView
android:id="@+id/btn_more"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:layout_toLeftOf="@id/btn_mic"
android:src="@mipmap/live_user_more" />
<ImageView
android:id="@+id/btn_mic"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:layout_toLeftOf="@id/btn_zg1"
android:src="@mipmap/lianmai" />
<RelativeLayout
android:id="@+id/msg_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/btn_more">
<RelativeLayout
android:id="@+id/rt_msg"
android:layout_width="45dp"
android:layout_height="45dp">
<ImageView
android:id="@+id/btn_msg"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:padding="5dp"
android:src="@mipmap/messagesss" />
<View
android:id="@+id/v_msg_redpoint"
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_alignParentRight="true"
android:layout_marginTop="6dp"
android:layout_marginRight="6dp"
android:background="@drawable/background_ff5075"
android:visibility="gone" />
</RelativeLayout>
<TextView
android:id="@+id/red_point"
android:layout_width="wrap_content"
android:layout_height="14dp"
android:layout_alignTop="@id/rt_msg"
android:layout_alignRight="@id/rt_msg"
android:layout_marginTop="5dp"
android:layout_marginRight="5dp"
android:background="@drawable/bg_red_point"
android:gravity="center"
android:includeFontPadding="false"
android:minWidth="14dp"
android:paddingLeft="3dp"
android:paddingRight="3dp"
android:text="1"
android:textColor="#fff"
android:textSize="10sp"
android:translationY="-4dp"
android:visibility="invisible" />
</RelativeLayout>
<ImageView
android:id="@+id/btn_red_pack"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_marginRight="5dp"
android:layout_toLeftOf="@id/btn_link_mic"
android:padding="5dp"
android:src="@mipmap/icon_live_red_pack" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="15dp"
android:layout_toLeftOf="@+id/msg_view"
android:background="@drawable/bg_live_chat"
android:orientation="horizontal">
<ImageView
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_gravity="center"
android:layout_marginLeft="5dp"
android:src="@mipmap/icon_live_msg" />
<TextView
android:id="@+id/et_input"
android:layout_width="match_parent"
android:layout_height="30dp"
android:alpha="0.5"
android:gravity="center_vertical"
android:hint="@string/live_say_something"
android:singleLine="true"
android:textColor="@color/textColor"
android:textColorHint="@color/gray3"
android:textSize="12sp" />
</LinearLayout>
</RelativeLayout> </RelativeLayout>
<TextView
android:id="@+id/red_point"
android:layout_width="wrap_content"
android:layout_height="14dp"
android:layout_alignTop="@id/rt_msg"
android:layout_alignRight="@id/rt_msg"
android:layout_marginTop="5dp"
android:layout_marginRight="5dp"
android:background="@drawable/bg_red_point"
android:gravity="center"
android:includeFontPadding="false"
android:minWidth="14dp"
android:paddingLeft="3dp"
android:paddingRight="3dp"
android:text="1"
android:textColor="#fff"
android:textSize="10sp"
android:translationY="-4dp"
android:visibility="invisible" />
</RelativeLayout>
<ImageView
android:id="@+id/btn_red_pack"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_marginRight="5dp"
android:layout_toLeftOf="@id/btn_link_mic"
android:padding="5dp"
android:src="@mipmap/icon_live_red_pack" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="15dp"
android:layout_toLeftOf="@+id/msg_view"
android:background="@drawable/bg_live_chat"
android:orientation="horizontal">
<ImageView
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_gravity="center"
android:layout_marginLeft="5dp"
android:src="@mipmap/icon_live_msg" />
<TextView
android:id="@+id/et_input"
android:layout_width="match_parent"
android:layout_height="30dp"
android:alpha="0.5"
android:gravity="center_vertical"
android:hint="@string/live_say_something"
android:singleLine="true"
android:textColor="@color/textColor"
android:textColorHint="@color/gray3"
android:textSize="12sp" />
</LinearLayout> </LinearLayout>
</RelativeLayout>
</LinearLayout>
<com.opensource.svgaplayer.SVGAImageView <com.opensource.svgaplayer.SVGAImageView
android:id="@+id/svga_new_user_gif" android:id="@+id/svga_new_user_gif"
android:layout_width="116dp" android:layout_width="116dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginBottom="40dp" android:layout_alignParentRight="true"
android:layout_marginRight="5dp"
android:layout_gravity="center_vertical"
app:autoPlay="true"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" /> android:layout_gravity="center_vertical"
android:layout_marginRight="5dp"
android:layout_marginBottom="40dp"
app:autoPlay="true" />
<com.opensource.svgaplayer.SVGAImageView <com.opensource.svgaplayer.SVGAImageView
android:id="@+id/svga_new_user_double" android:id="@+id/svga_new_user_double"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginBottom="40dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
app:autoPlay="true"/> android:layout_marginBottom="40dp"
app:autoPlay="true" />
<com.opensource.svgaplayer.SVGAImageView <com.opensource.svgaplayer.SVGAImageView
android:id="@+id/svga_new_user_follow" android:id="@+id/svga_new_user_follow"
android:layout_width="116dp" android:layout_width="116dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginTop="80dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginTop="80dp"
app:autoPlay="true" /> app:autoPlay="true" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="360dp">
<com.opensource.svgaplayer.SVGAImageView
android:id="@+id/svga_station_horn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical" />
<include
android:id="@+id/station_horn_banner"
android:visibility="gone"
layout="@layout/view_whole_station_horn_layout" />
</RelativeLayout>
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/icon_img"
android:layout_width="44dp"
android:layout_height="22dp"
android:layout_marginStart="7dp" />
<TextView
android:id="@+id/rc_user_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="7dp"
android:layout_marginBottom="1dp"
android:text="dasdas"
android:textColor="#FFFFEF00"
android:textSize="12dp" />
<TextView
android:id="@+id/rc_user_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:layout_marginBottom="1dp"
android:text="dasdas"
android:textColor="#FFFFFFFF"
android:textSize="12dp" />
</LinearLayout>

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="20dp"
android:layout_marginTop="32dp"
android:orientation="horizontal">
<ViewFlipper
android:id="@+id/viewflipper_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="20dp"
android:layout_marginTop="17dp"
android:inAnimation="@anim/vice_screen_come_in"
android:outAnimation="@anim/vice_screen_come_out" />
<TextView
android:id="@+id/goto_room_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginTop="8dp"
android:layout_marginEnd="9dp"
android:layout_marginBottom="5dp"
android:background="@drawable/background_whole_station_horn"
android:paddingLeft="7dp"
android:paddingTop="3dp"
android:paddingRight="7dp"
android:paddingBottom="3dp"
android:text="@string/use_live"
android:textColor="#FFFEFEFE"
android:textSize="10dp" />
</RelativeLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -4,8 +4,6 @@ import android.content.ClipboardManager;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.graphics.Outline; import android.graphics.Outline;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log; import android.util.Log;
import android.view.View; import android.view.View;
@ -16,6 +14,9 @@ import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.ms.banner.Banner; import com.ms.banner.Banner;
@ -295,7 +296,11 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
user_noble_text.setText(u.getNoble_name()); user_noble_text.setText(u.getNoble_name());
user_noble_time.setText(mContext.getResources().getString(R.string.open_noble_text)); user_noble_time.setText(mContext.getResources().getString(R.string.open_noble_text));
} }
signature.setText(u.getSignature()); String singnature = u.getSignature();
if (TextUtils.equals(singnature, "貴族") || TextUtils.equals(singnature, "贵族")) {
singnature = singnature + "中心";
}
signature.setText(singnature);
CommonAppConfig appConfig = CommonAppConfig.getInstance(); CommonAppConfig appConfig = CommonAppConfig.getInstance();
LevelBean anchorLevelBean = appConfig.getAnchorLevel(u.getLevelAnchor()); LevelBean anchorLevelBean = appConfig.getAnchorLevel(u.getLevelAnchor());