主播开播优化
@ -33,11 +33,16 @@ public class LiveClarityCustomPopup extends BottomPopupView implements View.OnCl
|
||||
private TextView titleSDText, titleHDText, titleFHDText, mTips;
|
||||
private int banSelect;
|
||||
private boolean isUser = false;
|
||||
private SelectPositionListener selectPositionListener;
|
||||
|
||||
public int getSelectClarity() {
|
||||
return selectClarity;
|
||||
}
|
||||
|
||||
public void setSelectPositionListener(SelectPositionListener selectPositionListener) {
|
||||
this.selectPositionListener = selectPositionListener;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param banSelect 禁止选项,{@link #BAN_720} 禁止高清和超高清。 {@link #BAN_1080} 禁止超高清
|
||||
* @param isUser 是否为观众,true 观众,false 主播
|
||||
@ -227,6 +232,13 @@ public class LiveClarityCustomPopup extends BottomPopupView implements View.OnCl
|
||||
iconFhd.setVisibility(VISIBLE);
|
||||
break;
|
||||
}
|
||||
if(selectPositionListener!=null){
|
||||
selectPositionListener.onSelect(selectClarity);
|
||||
}
|
||||
}
|
||||
|
||||
public interface SelectPositionListener{
|
||||
void onSelect(int position);
|
||||
}
|
||||
|
||||
private Handler netHandler = new Handler();
|
||||
|
23
common/src/main/res/drawable/bg_gift_progressbar.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!--设置ProgressBar背景色-->
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<!--设置ProgressBar进度条圆角半径-->
|
||||
<corners android:radius="1dp" />
|
||||
<solid android:color="#A5A193" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<!--设置ProgressBar进度条颜色-->
|
||||
<item android:id="@android:id/progress">
|
||||
<scale android:scaleWidth="100%">
|
||||
<shape>
|
||||
<corners android:radius="1dp" />
|
||||
<gradient
|
||||
android:endColor="#FFC949"
|
||||
android:startColor="#FFC949" />
|
||||
</shape>
|
||||
</scale>
|
||||
</item>
|
||||
</layer-list>
|
@ -8,8 +8,8 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/interactionLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@ -41,9 +41,10 @@
|
||||
android:src="@mipmap/icon_interaction_zg" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/live_zg"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
@ -63,9 +64,10 @@
|
||||
android:src="@mipmap/icon_interaction_wish" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/live_wishlist"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
@ -74,8 +76,8 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/live_tool_mic"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible">
|
||||
@ -86,9 +88,10 @@
|
||||
android:src="@mipmap/icon_interaction_mic" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/live_mic"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
@ -97,8 +100,8 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/live_tool_game"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
@ -108,9 +111,10 @@
|
||||
android:src="@mipmap/icon_interaction_game" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/interactive_game"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
@ -126,8 +130,8 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/live_tool_anchor_say"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
@ -137,9 +141,10 @@
|
||||
android:src="@mipmap/icon_interaction_anchor_say" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/live_fun_anchor_say"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
@ -148,8 +153,8 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/live_tool_qa"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
@ -159,17 +164,19 @@
|
||||
android:src="@mipmap/icon_interaction_qa" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/dialog_live_function_qa"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="2"
|
||||
android:layout_height="match_parent"/>
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@ -177,8 +184,8 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/equityLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@ -209,9 +216,10 @@
|
||||
android:src="@mipmap/icon_interaction_live_data" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/broadcast_data"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
@ -231,9 +239,10 @@
|
||||
android:src="@mipmap/icon_interaction_robot" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/robot_setup"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
@ -241,9 +250,10 @@
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="2"
|
||||
android:layout_height="match_parent"/>
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@ -252,18 +262,19 @@
|
||||
android:text="@string/live_interaction_tools"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_marginTop="14dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="14dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:paddingEnd="16dp">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/live_tool_beauty"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
@ -273,9 +284,10 @@
|
||||
android:src="@mipmap/icon_interaction_beauty" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/live_beauty"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
@ -284,8 +296,8 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/live_tool_camera"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
@ -295,9 +307,10 @@
|
||||
android:src="@mipmap/icon_interaction_camera" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/live_camera"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
@ -306,8 +319,8 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/live_tool_leave"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
@ -319,17 +332,19 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/live_tool_leave_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/live_zslk"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="match_parent"/>
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.3 KiB |
@ -290,7 +290,7 @@
|
||||
<string name="live_camera">Flip</string>
|
||||
<string name="live_camera_s">Mirroring</string>
|
||||
<string name="live_zg">Trickster</string>
|
||||
<string name="live_dr">MultiplayerPK</string>
|
||||
<string name="live_dr">Multi PK</string>
|
||||
<string name="live_mic">Voice connection</string>
|
||||
<string name="live_wks">billboard</string>
|
||||
<string name="live_zslk">leave temporarily</string>
|
||||
@ -1105,7 +1105,7 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="lunar_wish">Month Wishes</string>
|
||||
<string name="seasonal_wish">Seasonal Wishes</string>
|
||||
<string name="wish_number">Wish%s</string>
|
||||
<string name="aristocrat">aristocrat</string>
|
||||
<string name="aristocrat">noble</string>
|
||||
<string name="aristocrat_determine">sure</string>
|
||||
<string name="replacement_wish_day">Reset Your: Day</string>
|
||||
<string name="replacement_wish_zhou">Reset Wish: Week</string>
|
||||
@ -1488,5 +1488,5 @@ Limited ride And limited avatar frame</string>
|
||||
|
||||
<string name="live_data_tip">* Non-real-time calculation of data</string>
|
||||
<string name="live_data_msg2">Historical data can be viewed in the anchor center</string>
|
||||
<string name="live_data_msg1">This live data statistics</string>
|
||||
<string name="live_data_msg1">This live information</string>
|
||||
</resources>
|
||||
|
@ -1617,6 +1617,6 @@
|
||||
<string name="live_data_history_gain">收益</string>
|
||||
<string name="live_data_tip">* 人數及新增相關數據非实时计算</string>
|
||||
<string name="live_data_msg2">歷史數據可在主播中心查看</string>
|
||||
<string name="live_data_msg1">本場直播數據統計</string>
|
||||
<string name="live_data_msg1">本場直播信息</string>
|
||||
|
||||
</resources>
|
||||
|
@ -233,7 +233,7 @@
|
||||
<string name="must_hint">A maximum of 10 entries can be set</string>
|
||||
<string name="live_camera">Flip</string>
|
||||
<string name="live_zg">Trickster</string>
|
||||
<string name="live_dr">MultiplayerPK</string>
|
||||
<string name="live_dr">Multi PK</string>
|
||||
<string name="live_mic">Voice connection</string>
|
||||
<string name="live_wks">billboard</string>
|
||||
<string name="live_zslk">leave temporarily</string>
|
||||
@ -929,7 +929,7 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="lunar_wish">Month Wishes</string>
|
||||
<string name="seasonal_wish">Seasonal Wishes</string>
|
||||
<string name="wish_number">Wish%s</string>
|
||||
<string name="aristocrat">aristocrat</string>
|
||||
<string name="aristocrat">noble</string>
|
||||
<string name="aristocrat_determine">sure</string>
|
||||
<string name="replacement_wish_day">Reset Your: Day</string>
|
||||
<string name="replacement_wish_zhou">Reset Wish: Week</string>
|
||||
@ -1426,5 +1426,5 @@ Limited ride And limited avatar frame</string>
|
||||
|
||||
<string name="live_data_tip">* Non-real-time calculation of data</string>
|
||||
<string name="live_data_msg2">Historical data can be viewed in the anchor center</string>
|
||||
<string name="live_data_msg1">This live data statistics</string>
|
||||
<string name="live_data_msg1">This live information</string>
|
||||
</resources>
|
||||
|
@ -4,8 +4,8 @@ ext {
|
||||
buildToolsVersion: "29.0.2",
|
||||
minSdkVersion : 23,
|
||||
targetSdkVersion : 34,
|
||||
versionCode : 550,
|
||||
versionName : "6.8.0",
|
||||
versionCode : 560,
|
||||
versionName : "6.8.2",
|
||||
namespace : "com.pandoralive.shayu"
|
||||
]
|
||||
manifestPlaceholders = [
|
||||
|
@ -921,6 +921,9 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
|
||||
//初始化天梯数据
|
||||
mLiveRoomViewHolder.initRankPKInfo(mLiveUid,"");
|
||||
//初始化心愿单数据
|
||||
mLiveRoomViewHolder.initWishListView();
|
||||
mLiveRoomViewHolder.initWishData();
|
||||
}
|
||||
mLiveSwLinkMicPkPresenter.setmLiveRoomViewHolder(mLiveRoomViewHolder);
|
||||
}
|
||||
@ -1793,7 +1796,11 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
.build()
|
||||
.show();
|
||||
break;
|
||||
|
||||
case WISH_LIST_PROGRESS:
|
||||
if(mLiveRoomViewHolder!=null){
|
||||
mLiveRoomViewHolder.wishListProgress(event.getWishListProgress(), event.getUname(), event.getLiveType());
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,7 @@ import android.view.animation.Animation;
|
||||
import android.view.animation.AnimationUtils;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@ -41,6 +42,10 @@ import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.makeramen.roundedimageview.RoundedImageView;
|
||||
import com.opensource.svgaplayer.SVGADrawable;
|
||||
import com.opensource.svgaplayer.SVGAImageView;
|
||||
import com.opensource.svgaplayer.SVGAParser;
|
||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||
import com.yunbao.common.CommonAppConfig;
|
||||
import com.yunbao.common.Constants;
|
||||
import com.yunbao.common.bean.IMLoginModel;
|
||||
@ -51,6 +56,7 @@ import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.utils.Bus;
|
||||
import com.yunbao.common.utils.DpUtil;
|
||||
import com.yunbao.common.utils.SVGAViewUtils;
|
||||
import com.yunbao.common.utils.SpUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
@ -64,6 +70,8 @@ import com.yunbao.live.utils.LiveTextRender;
|
||||
import com.yunbao.live.utils.LoadDian9TuUtil;
|
||||
import com.yunbao.live.views.LiveRoomViewHolder;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
@ -225,6 +233,10 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
TextView prank_open_live_msg;
|
||||
TextView prank_to_setting;
|
||||
|
||||
RoundedImageView msg_avatar;
|
||||
SVGAImageView avatar_gift_svga;
|
||||
RelativeLayout avatarLayout;
|
||||
|
||||
public Vh(View itemView) {
|
||||
super(itemView);
|
||||
mBg = (LinearLayout) itemView.findViewById(R.id.bg);
|
||||
@ -255,6 +267,9 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
prank_open_live_msg = itemView.findViewById(R.id.prank_open_live_msg);
|
||||
prank_to_setting = itemView.findViewById(R.id.prank_to_setting);
|
||||
|
||||
msg_avatar = itemView.findViewById(R.id.msg_avatar);
|
||||
avatar_gift_svga = itemView.findViewById(R.id.avatar_gift_svga);
|
||||
avatarLayout = itemView.findViewById(R.id.avatarLayout);
|
||||
}
|
||||
|
||||
void setData(final LiveChatBean bean, int position) {
|
||||
@ -262,9 +277,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
@Override
|
||||
public boolean onLongClick(View v) {
|
||||
if (!TextUtils.isEmpty(bean.getId()) && !TextUtils.isEmpty(bean.getUserNiceName())) {
|
||||
Bus.get().post(new LiveAudienceEvent()
|
||||
.setType(LiveAudienceEvent.LiveAudienceType.INPUT_DIALOG)
|
||||
.setOlineUserlistModel(new OlineUserlistModel().setId(bean.getId()).setUserNicename(bean.getUserNiceName())));
|
||||
Bus.get().post(new LiveAudienceEvent().setType(LiveAudienceEvent.LiveAudienceType.INPUT_DIALOG).setOlineUserlistModel(new OlineUserlistModel().setId(bean.getId()).setUserNicename(bean.getUserNiceName())));
|
||||
}
|
||||
Log.e("eqwewqeweq", bean.toString());
|
||||
return true;
|
||||
@ -327,7 +340,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
int length2 = builder.length();
|
||||
builder.append(bean.getAnchorName());
|
||||
builder.setSpan(new ForegroundColorSpan(0xFF73FFFF), length2, length2 + bean.getAnchorName().length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
builder.append(WordUtil.isNewZh() ? "發出了 " + bean.getContent(): "Sent out " + bean.getContent());
|
||||
builder.append(WordUtil.isNewZh() ? "發出了 " + bean.getContent() : "Sent out " + bean.getContent());
|
||||
mTextView.setText(builder);
|
||||
} else if (bean.getType() == -4) {
|
||||
String str1 = WordUtil.isNewZh() ? "成功拯救了 " : "Succeeded in saving";
|
||||
@ -529,7 +542,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
if (!StringUtil.isEmpty(bean.getBubble())) {
|
||||
new LoadDian9TuUtil().loadDian9Tu(mContext, mBg, bean.getBubble(), 1);
|
||||
}
|
||||
} else if(bean.getType() == TYPE_TO_ANCHOR_PRANK){
|
||||
} else if (bean.getType() == TYPE_TO_ANCHOR_PRANK) {
|
||||
/*String str1 = "<font color='#ff1a1a'>娛樂整蠱</font>";
|
||||
String str2 = "<font color='#0d0d0d'>全新升級,快去設置整蠱内容,給直播間增加更多趣味吧!</font>";
|
||||
String str3 = "<font color='#3384ff'>>>立即前往>></font>";
|
||||
@ -542,16 +555,47 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
mBg.setLayoutParams(params3);
|
||||
prank_open_live_layout.setVisibility(View.VISIBLE);
|
||||
|
||||
}else if(bean.getType() == TYPE_TO_ANCHOR_PRANK_GIFT){
|
||||
} else if (bean.getType() == TYPE_TO_ANCHOR_PRANK_GIFT) {
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
stringBuffer.append("<font color='#ffffff'>"+(WordUtil.isNewZh()?"整蠱來了!":"Tricky is coming")+"</font>");
|
||||
stringBuffer.append(" <font color='#ECB238'>"+bean.getUserNiceName()+"</font>");
|
||||
stringBuffer.append("<font color='#ffffff'>"+(WordUtil.isNewZh()?"送出":"send")+"【"+bean.getGiftName()+"*"+bean.getHot_num()+"】</font>");
|
||||
stringBuffer.append("<font color='#ffffff'>,"+(WordUtil.isNewZh()?"主播需完成":",and the anchor needs to complete ")+"</font>");
|
||||
stringBuffer.append( "<font color='#ECB238'>【"+bean.getContent()+"】</font>");
|
||||
stringBuffer.append("<font color='#ffffff'>" + (WordUtil.isNewZh() ? "整蠱來了!" : "Tricky is coming") + "</font>");
|
||||
stringBuffer.append(" <font color='#ECB238'>" + bean.getUserNiceName() + "</font>");
|
||||
stringBuffer.append("<font color='#ffffff'>" + (WordUtil.isNewZh() ? "送出" : "send") + "【" + bean.getGiftName() + "*" + bean.getHot_num() + "】</font>");
|
||||
stringBuffer.append("<font color='#ffffff'>," + (WordUtil.isNewZh() ? "主播需完成" : ",and the anchor needs to complete ") + "</font>");
|
||||
stringBuffer.append("<font color='#ECB238'>【" + bean.getContent() + "】</font>");
|
||||
mTextView.setText(Html.fromHtml(stringBuffer.toString()));
|
||||
new LoadDian9TuUtil().loadDian9TuAssets(mContext, mBg, 1);
|
||||
}else{
|
||||
} else {
|
||||
/*avatar_gift_svga.setImageDrawable(null);
|
||||
ImgLoader.display2(mContext, bean.getAvatar(), msg_avatar);
|
||||
avatarLayout.setVisibility(View.VISIBLE);
|
||||
msg_avatar.setVisibility(View.VISIBLE);
|
||||
if (!StringUtil.isEmpty(bean.getU_gift_svga())) {
|
||||
avatar_gift_svga.setVisibility(View.VISIBLE);
|
||||
if (bean.getU_gift_svga().contains("svga")) {
|
||||
try {
|
||||
new SVGAParser(mContext).parse(new URL(bean.getU_gift_svga()), new SVGAParser.ParseCompletion() {
|
||||
@Override
|
||||
public void onComplete(SVGAVideoEntity videoItem) {
|
||||
SVGADrawable drawable = new SVGADrawable(videoItem);
|
||||
avatar_gift_svga.setImageDrawable(drawable);
|
||||
SVGAViewUtils.playEndClear(avatar_gift_svga, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError() {
|
||||
}
|
||||
});
|
||||
} catch (MalformedURLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
ImgLoader.display2(mContext, bean.getU_gift_svga(), avatar_gift_svga);
|
||||
}
|
||||
} else {
|
||||
avatar_gift_svga.setVisibility(View.GONE);
|
||||
avatarLayout.setVisibility(View.GONE);
|
||||
msg_avatar.setVisibility(View.GONE);
|
||||
}*/
|
||||
if (bean.getBubble() != null && !bean.getBubble().equals("")) {
|
||||
//加载.9图聊天气泡
|
||||
new LoadDian9TuUtil().loadDian9Tu(mContext, mBg, bean.getBubble(), 1);
|
||||
@ -577,8 +621,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
if (bean == null) {
|
||||
return;
|
||||
}
|
||||
if (bean.getType() == LiveChatBean.TYPE_TO_USER_MSG
|
||||
&& !CommonAppConfig.getInstance().getUid().equals(bean.getAtUserID())) {
|
||||
if (bean.getType() == LiveChatBean.TYPE_TO_USER_MSG && !CommonAppConfig.getInstance().getUid().equals(bean.getAtUserID())) {
|
||||
return;
|
||||
}
|
||||
// Log.i(TAG, "insertItem: " + bean.getContent()+" size = "+(mList.size()+1));
|
||||
@ -599,14 +642,10 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
if (isBottom || mRecyclerViewScrolledDy == 0) {
|
||||
scrollToBottom();
|
||||
} else {
|
||||
Bus.get().post(new LiveAudienceEvent()
|
||||
.setType(LiveAudienceEvent.LiveAudienceType.NEW_MESSAGE_REMINDER));
|
||||
Bus.get().post(new LiveAudienceEvent().setType(LiveAudienceEvent.LiveAudienceType.NEW_MESSAGE_REMINDER));
|
||||
|
||||
if (bean.getType() != LiveChatBean.TYPE_TO_USER_MSG &&
|
||||
bean.getAtUserID() != null
|
||||
&& bean.getAtUserID().contains(String.valueOf(model.getId()))) {
|
||||
Bus.get().post(new LiveAudienceEvent()
|
||||
.setType(LiveAudienceEvent.LiveAudienceType.AT_MESSAGE));
|
||||
if (bean.getType() != LiveChatBean.TYPE_TO_USER_MSG && bean.getAtUserID() != null && bean.getAtUserID().contains(String.valueOf(model.getId()))) {
|
||||
Bus.get().post(new LiveAudienceEvent().setType(LiveAudienceEvent.LiveAudienceType.AT_MESSAGE));
|
||||
mPosition = size;
|
||||
}
|
||||
}
|
||||
@ -675,8 +714,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public class ListAdapter extends
|
||||
RecyclerView.Adapter<ListAdapter.ViewHolder> {
|
||||
public class ListAdapter extends RecyclerView.Adapter<ListAdapter.ViewHolder> {
|
||||
private LayoutInflater mInflater;
|
||||
private List<String> mDatas;
|
||||
|
||||
@ -707,8 +745,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
*/
|
||||
@Override
|
||||
public ListAdapter.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||||
View view = mInflater.inflate(R.layout.item_chat_active,
|
||||
viewGroup, false);
|
||||
View view = mInflater.inflate(R.layout.item_chat_active, viewGroup, false);
|
||||
ListAdapter.ViewHolder viewHolder = new ListAdapter.ViewHolder(view);
|
||||
|
||||
return viewHolder;
|
||||
|
@ -60,6 +60,8 @@ public class LiveChatBean {
|
||||
private String giftName;
|
||||
private String giftname_en;
|
||||
private String toUid;
|
||||
private String avatar; //头像
|
||||
private String u_gift_svga; //
|
||||
|
||||
public int getNORMAL() {
|
||||
return NORMAL;
|
||||
@ -82,6 +84,22 @@ public class LiveChatBean {
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
public String getU_gift_svga() {
|
||||
return u_gift_svga;
|
||||
}
|
||||
|
||||
public void setU_gift_svga(String u_gift_svga) {
|
||||
this.u_gift_svga = u_gift_svga;
|
||||
}
|
||||
|
||||
public String getToUid() {
|
||||
return toUid;
|
||||
}
|
||||
|
@ -26,6 +26,8 @@ public class LiveWishlistBean {
|
||||
private String wishlist_num;
|
||||
private String wishlist_progress;
|
||||
private String wishlist_name;
|
||||
private int price;
|
||||
|
||||
|
||||
@JSONField(name = "id")
|
||||
public String getId() {
|
||||
@ -107,6 +109,12 @@ public class LiveWishlistBean {
|
||||
this.wishlist_name = wishlist_name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@JSONField(name = "price")
|
||||
public int getPrice() {
|
||||
return price;
|
||||
}
|
||||
@JSONField(name = "price")
|
||||
public void setPrice(int price) {
|
||||
this.price = price;
|
||||
}
|
||||
}
|
||||
|
@ -1726,7 +1726,7 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
||||
if (livePushSwViewHolder.timeTitle.getVisibility() == View.GONE && isShowTimeTitle) {
|
||||
mHandler.removeMessages(WHAT_PK_TIME2);
|
||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) livePushSwViewHolder.timeTitle.getLayoutParams();
|
||||
layoutParams.topMargin = DpUtil.dp2px(123);
|
||||
layoutParams.topMargin = DpUtil.dp2px(165);
|
||||
livePushSwViewHolder.timeTitle.setLayoutParams(layoutParams);
|
||||
livePushSwViewHolder.timeTitle.setVisibility(View.VISIBLE);
|
||||
String pkTime = StringUtil.getDurationText(time * 1000);
|
||||
|
@ -95,6 +95,8 @@ public class SocketSwChatUtil {
|
||||
.param("isAnchor", isAnchor ? 1 : 0)
|
||||
.param("level", u.getLevel())
|
||||
.param("uname", u.getUserNiceName())
|
||||
.param("u_avatar", u.getAvatar())
|
||||
.param("u_gift_svga", u.getDress().getAvatar_frame())
|
||||
.param("bubble", u.getDress().getBubble())
|
||||
.param("medal_honor", u.getMedal_no_display_src())
|
||||
.param("medal", u.getDress().getMedal())
|
||||
|
@ -946,6 +946,8 @@ public class SocketSwClient {
|
||||
LiveChatBean chatBean = new LiveChatBean();
|
||||
chatBean.setId(map.getString("uid"));
|
||||
chatBean.setUserNiceName(map.getString("uname"));
|
||||
chatBean.setAvatar(map.getString("u_avatar"));
|
||||
chatBean.setU_gift_svga(map.getString("u_gift_svga"));
|
||||
chatBean.setLevel(map.getIntValue("level"));
|
||||
chatBean.setAnchor(map.getIntValue("isAnchor") == 1);
|
||||
chatBean.setManager(map.getIntValue("usertype") == Constants.SOCKET_USER_TYPE_ADMIN);
|
||||
|
@ -307,7 +307,7 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
String url = CommonAppConfig.HOST + "/h5/Grade/index.html?" + "token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&for";
|
||||
WebViewActivity.forward(mContext, url,false);
|
||||
WebViewActivity.forward(mContext, url,true);
|
||||
}
|
||||
});
|
||||
findViewById(R.id.go_anchor_center).setOnClickListener(new View.OnClickListener() {
|
||||
|
@ -116,6 +116,8 @@ public class LiveNewReadySwViewHolder extends AbsViewHolder implements View.OnCl
|
||||
private boolean selector = true;
|
||||
private String mLiveUid;
|
||||
private ViewFlipper liveOpenVf;
|
||||
private ImageView btn_live_clarity;
|
||||
private int select;
|
||||
|
||||
public LiveNewReadySwViewHolder(Context context, ViewGroup parentView, int liveSdk) {
|
||||
super(context, parentView, liveSdk);
|
||||
@ -138,6 +140,7 @@ public class LiveNewReadySwViewHolder extends AbsViewHolder implements View.OnCl
|
||||
mRootView = (ConstraintLayout) findViewById(R.id.traceroute_rootview);
|
||||
selectorProtocol = (ImageView) findViewById(R.id.selector_protocol);
|
||||
anchorAgreement = (TextView) findViewById(R.id.anchor_agreement);
|
||||
btn_live_clarity = findViewById(R.id.btn_live_clarity);
|
||||
mRootView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
@ -245,8 +248,24 @@ public class LiveNewReadySwViewHolder extends AbsViewHolder implements View.OnCl
|
||||
|
||||
LiveClarityCustomPopup liveClarityCustomPopup =
|
||||
new LiveClarityCustomPopup(mContext,
|
||||
IMLoginManager.get(mContext).getSelectClarity(),
|
||||
IMLoginManager.get(mContext).getClarity() ? 0 : LiveClarityCustomPopup.BAN_1080, false);
|
||||
select);
|
||||
liveClarityCustomPopup.setSelectPositionListener(new LiveClarityCustomPopup.SelectPositionListener() {
|
||||
@Override
|
||||
public void onSelect(int position) {
|
||||
select = position;
|
||||
switch (position) {
|
||||
case 0:
|
||||
btn_live_clarity.setImageResource(R.mipmap.icon_sd);
|
||||
break;
|
||||
case 1:
|
||||
btn_live_clarity.setImageResource(R.mipmap.icon_hd);
|
||||
break;
|
||||
case 2:
|
||||
btn_live_clarity.setImageResource(R.mipmap.icon_fhd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
new XPopup.Builder(mContext)
|
||||
.setPopupCallback(new XPopupCallback() {
|
||||
@Override
|
||||
@ -317,8 +336,8 @@ public class LiveNewReadySwViewHolder extends AbsViewHolder implements View.OnCl
|
||||
LiveNetManager.get(mContext).getLiveOpenTips(new com.yunbao.common.http.base.HttpCallback<List<LiveOpenTipsBean>>() {
|
||||
@Override
|
||||
public void onSuccess(List<LiveOpenTipsBean> data) {
|
||||
if(data!=null){
|
||||
for (int i = 0; i <data.size(); i++) {
|
||||
if (data != null) {
|
||||
for (int i = 0; i < data.size(); i++) {
|
||||
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(DpUtil.dp2px(16), DpUtil.dp2px(16));
|
||||
LinearLayout.LayoutParams textParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
||||
textParams.leftMargin = DpUtil.dp2px(5);
|
||||
@ -328,7 +347,7 @@ public class LiveNewReadySwViewHolder extends AbsViewHolder implements View.OnCl
|
||||
TextView week = weekView.findViewById(R.id.wish_index);
|
||||
week.setLayoutParams(textParams);
|
||||
week.setGravity(Gravity.CENTER_VERTICAL);
|
||||
week.setText(WordUtil.isNewZh()?data.get(i).getContent():data.get(i).getEnglish_content());
|
||||
week.setText(WordUtil.isNewZh() ? data.get(i).getContent() : data.get(i).getEnglish_content());
|
||||
liveOpenVf.addView(weekView);
|
||||
}
|
||||
liveOpenVf.startFlipping();
|
||||
@ -571,6 +590,7 @@ public class LiveNewReadySwViewHolder extends AbsViewHolder implements View.OnCl
|
||||
openAnchorSayDialog();
|
||||
}
|
||||
}
|
||||
|
||||
private void setSelectClarity(int selectClarity) {
|
||||
this.selectClarity = selectClarity;
|
||||
IMLoginManager.get(mContext).setSelectClarity(selectClarity);
|
||||
@ -590,6 +610,7 @@ public class LiveNewReadySwViewHolder extends AbsViewHolder implements View.OnCl
|
||||
//重新发布一下流
|
||||
Bus.get().post(new LivePushRyEvent());
|
||||
}
|
||||
|
||||
/**
|
||||
* 新娱美颜
|
||||
*/
|
||||
|
@ -229,7 +229,7 @@ public class LiveRyAnchorViewHolder extends AbsLiveViewHolder {
|
||||
findViewById(R.id.btn_task).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
((LiveSwAnchorActivity) mContext).showFunctionDialog();
|
||||
((LiveSwAnchorActivity) mContext).showTaskDialog();
|
||||
}
|
||||
});
|
||||
findViewById(R.id.btn_fz).setOnClickListener(new View.OnClickListener() {
|
||||
@ -313,17 +313,6 @@ public class LiveRyAnchorViewHolder extends AbsLiveViewHolder {
|
||||
* 设置连麦pk按钮是否可见
|
||||
*/
|
||||
public void setPkBtnVisible(boolean visible) {
|
||||
if (mBtnPk != null) {
|
||||
if (visible) {
|
||||
if (mBtnPk.getVisibility() != View.VISIBLE) {
|
||||
mBtnPk.setVisibility(View.VISIBLE);
|
||||
}
|
||||
} else {
|
||||
if (mBtnPk.getVisibility() == View.VISIBLE) {
|
||||
mBtnPk.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -639,7 +639,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
//心愿单顶部bannner
|
||||
mLiveRoomViewHolder.setWishListProgress(data.getWishListProgress());
|
||||
//初始化顶部banner
|
||||
mLiveRoomViewHolder.initTopBanner();
|
||||
mLiveRoomViewHolder.initWishListView();
|
||||
mLiveRoomViewHolder.updateTopBanner();
|
||||
mLiveRoomViewHolder.setVoteData(data.getEnterRoomInfo().getVoteModel());
|
||||
mLiveRoomViewHolder.updateFansMessageRed();
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="10dp"/>
|
||||
<solid android:color="#30000000"/>
|
||||
<solid android:color="#8065615A"/>
|
||||
</shape>
|
5
live/src/main/res/drawable/bg_live_item_an.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="18dp"/>
|
||||
<solid android:color="#8065615A"/>
|
||||
</shape>
|
9
live/src/main/res/drawable/bg_live_room_mic_num.xml
Normal 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="30dp" />
|
||||
<solid android:color="#FFFFB410" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape android:shape="oval" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/global"/>
|
||||
<solid android:color="#FFFE4C4B"/>
|
||||
</shape>
|
@ -2,6 +2,45 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/avatarLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingTop="8dp"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/msg_avatar"
|
||||
android:layout_width="21dp"
|
||||
android:layout_height="21dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginEnd="1dp"
|
||||
android:layout_marginBottom="11dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/m_chu_xia"
|
||||
android:visibility="gone"
|
||||
app:riv_oval="true"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.opensource.svgaplayer.SVGAImageView
|
||||
android:id="@+id/avatar_gift_svga"
|
||||
android:layout_width="31dp"
|
||||
android:layout_height="31dp"
|
||||
android:layout_marginStart="5dp"
|
||||
android:visibility="gone"
|
||||
app:autoPlay="true"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -14,13 +53,14 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="9dp"
|
||||
android:layout_marginRight="9dp"
|
||||
android:layout_toEndOf="@+id/avatar_gift_svga"
|
||||
android:breakStrategy="simple"
|
||||
android:paddingBottom="7dp"
|
||||
android:textColor="#fff"
|
||||
android:breakStrategy="simple"
|
||||
android:textSize="12sp"
|
||||
tools:text="aaaaaaaaa111111111111111111111111111111111111111111111111111111111"
|
||||
android:visibility="visible"
|
||||
tools:ignore="RtlHardcoded" />
|
||||
tools:ignore="RtlHardcoded"
|
||||
tools:text="aaaaaaaaa111111111111111111111111111111111111111111111111111111111" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/view_follow"
|
||||
@ -249,7 +289,6 @@
|
||||
<TextView
|
||||
android:id="@+id/prank_open_live_msg"
|
||||
android:layout_width="match_parent"
|
||||
android:paddingStart="10dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="5dp"
|
||||
@ -259,6 +298,7 @@
|
||||
android:clickable="false"
|
||||
android:enabled="false"
|
||||
android:gravity="start"
|
||||
android:paddingStart="10dp"
|
||||
android:text="@string/prank_open_live_msg"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="12sp" />
|
||||
@ -269,10 +309,10 @@
|
||||
android:layout_height="26dp"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginEnd="11dp"
|
||||
android:text="@string/prank_im_immediately_go"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/white"
|
||||
android:background="@drawable/prank_msg_goto"
|
||||
android:gravity="center"
|
||||
android:text="@string/prank_im_immediately_go"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="10dp" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
@ -301,4 +341,7 @@
|
||||
android:visibility="visible"
|
||||
tools:ignore="RtlHardcoded" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
@ -36,7 +36,6 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/btn_onecz_event"
|
||||
android:layout_width="55dp"
|
||||
|
@ -48,7 +48,7 @@
|
||||
android:id="@+id/pk_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="280dp"
|
||||
android:layout_marginTop="130dp">
|
||||
android:layout_marginTop="165dp">
|
||||
|
||||
<com.yunbao.live.custom.MyFrameLayout4
|
||||
android:id="@+id/left_container"
|
||||
@ -68,7 +68,7 @@
|
||||
android:id="@+id/dr_pk_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="280dp"
|
||||
android:layout_marginTop="130dp"
|
||||
android:layout_marginTop="165dp"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
android:id="@+id/dr_pk_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="270dp"
|
||||
android:layout_marginTop="130dp"
|
||||
android:layout_marginTop="165dp"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
@ -126,7 +126,7 @@
|
||||
android:id="@+id/pk_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="270dp"
|
||||
android:layout_marginTop="130dp">
|
||||
android:layout_marginTop="165dp">
|
||||
|
||||
<com.yunbao.live.custom.MyFrameLayout4
|
||||
android:id="@+id/left_container"
|
||||
@ -142,12 +142,13 @@
|
||||
android:layout_marginBottom="20dp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/goto_room_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="27dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="130dp"
|
||||
android:layout_marginTop="170dp"
|
||||
android:layout_marginRight="9dp"
|
||||
android:background="@drawable/bg_live_other_ico"
|
||||
android:gravity="center"
|
||||
@ -182,12 +183,13 @@
|
||||
android:textSize="12sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_close"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="400dp"
|
||||
android:layout_marginTop="435dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:background="@drawable/background_dedede"
|
||||
android:paddingLeft="8dp"
|
||||
|
@ -8,7 +8,6 @@
|
||||
android:layout_marginBottom="45dp"
|
||||
android:paddingTop="15dp">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lin"
|
||||
android:layout_width="match_parent"
|
||||
@ -22,7 +21,7 @@
|
||||
android:layout_height="34dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:background="@drawable/bg_live_ico"
|
||||
android:background="@drawable/bg_live_item_an"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
@ -162,18 +161,18 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/user_more"
|
||||
android:layout_width="27dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="34dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@mipmap/live_users_more" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_close"
|
||||
android:layout_width="27dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@mipmap/icon_live_close_3" />
|
||||
</LinearLayout>
|
||||
@ -236,50 +235,6 @@
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/hour_rank_layout"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_below="@id/lin"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/hour_rank_layout2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal" />
|
||||
|
||||
<include
|
||||
layout="@layout/view_wish_list"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:src="@mipmap/live_icon_wishlist"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ViewFlipper
|
||||
android:id="@+id/hour_rank_list"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="0dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:flipInterval="5000"
|
||||
android:inAnimation="@anim/anim_marquee_in"
|
||||
android:outAnimation="@anim/anim_marquee_out" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="4dp"
|
||||
android:layout_height="8dp"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:src="@drawable/live_icon_right_more" />
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/topLayout1"
|
||||
android:layout_width="match_parent"
|
||||
@ -299,8 +254,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="5dp"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="13dp"
|
||||
@ -325,13 +279,67 @@
|
||||
android:textSize="10sp" />
|
||||
|
||||
</LinearLayout>
|
||||
<!--小时榜-->
|
||||
<FrameLayout
|
||||
android:id="@+id/hour_rank_layout"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginEnd="7dp"
|
||||
android:background="@drawable/bg_live_item"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/hour_rank_layout2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal" />
|
||||
|
||||
<include
|
||||
layout="@layout/view_wish_list"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:src="@mipmap/live_icon_wishlist"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ViewFlipper
|
||||
android:id="@+id/hour_rank_list"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginStart="0dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:flipInterval="5000"
|
||||
android:inAnimation="@anim/anim_marquee_in"
|
||||
android:outAnimation="@anim/anim_marquee_out" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="4dp"
|
||||
android:layout_height="8dp"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:src="@drawable/live_icon_right_more" />
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
<!--贵族-->
|
||||
<LinearLayout
|
||||
android:id="@+id/noble_seat"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="7dp"
|
||||
android:background="@drawable/bg_live_item"
|
||||
android:visibility="visible">
|
||||
|
||||
<include layout="@layout/view_noble_seat" />
|
||||
</LinearLayout>
|
||||
<!--天梯赛-->
|
||||
<FrameLayout
|
||||
android:id="@+id/live_rank_pk"
|
||||
android:layout_width="85dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_height="23dp"
|
||||
android:background="@drawable/bg_live_item"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:visibility="visible">
|
||||
@ -351,7 +359,6 @@
|
||||
android:inAnimation="@anim/anim_marquee_in"
|
||||
android:outAnimation="@anim/anim_marquee_out" />
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@ -359,7 +366,7 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/topLayout2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="38dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_below="@+id/topLayout1"
|
||||
android:layout_marginTop="5dp"
|
||||
android:orientation="horizontal">
|
||||
@ -369,47 +376,52 @@
|
||||
android:layout_width="82dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="7dp"
|
||||
android:background="@mipmap/bg_live_room_task"
|
||||
android:gravity="center">
|
||||
android:gravity="center"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:text="新手任務"
|
||||
android:text="@string/live_room_new_task"
|
||||
android:textColor="#1D386B"
|
||||
android:textSize="10dp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:src="@mipmap/icon_live_room_task" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!--红包-->
|
||||
<RelativeLayout
|
||||
android:id="@+id/red_packet"
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="12dp"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:src="@mipmap/icon_red_packet_new" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/red_packet_countdown"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="5dp"
|
||||
android:paddingEnd="5dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@mipmap/bg_live_room_red_time"
|
||||
android:gravity="center"
|
||||
android:text="@string/red_packet_countdown"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="9sp"
|
||||
android:visibility="gone" />
|
||||
android:textSize="7sp"
|
||||
android:visibility="visible" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/red_packet_queue"
|
||||
@ -442,20 +454,20 @@
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<!---->
|
||||
<RelativeLayout
|
||||
android:id="@+id/dragon_immediate_participation"
|
||||
android:layout_width="38dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:src="@mipmap/icon_live_dragon_money" />
|
||||
|
||||
<TextView
|
||||
@ -470,20 +482,20 @@
|
||||
android:textSize="7sp"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
<!---->
|
||||
<RelativeLayout
|
||||
android:id="@+id/dragon_immediate_participation_time"
|
||||
android:layout_width="38dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:src="@mipmap/icon_live_dragon_money" />
|
||||
|
||||
<TextView
|
||||
@ -504,67 +516,142 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<!--礼物墙-->
|
||||
<LinearLayout
|
||||
android:layout_marginEnd="12dp"
|
||||
android:id="@+id/giftLayout"
|
||||
android:layout_width="82dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginEnd="9dp"
|
||||
android:background="@mipmap/bg_live_room_gift"
|
||||
android:orientation="horizontal"
|
||||
android:background="@mipmap/bg_live_room_gift">
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:paddingStart="6dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="6dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="禮物牆"
|
||||
android:layout_height="12dp"
|
||||
android:text="@string/live_room_gift"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="10dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/gift_number"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="5"
|
||||
android:text="11"
|
||||
android:textColor="#FFC949"
|
||||
android:textSize="15dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/gift_total"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="/26"
|
||||
android:text="22"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14dp" />
|
||||
android:textSize="12dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progressbar"
|
||||
android:id="@+id/gift_progressbar"
|
||||
style="@android:style/Widget.ProgressBar.Horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="1.5dp"
|
||||
android:max="26"
|
||||
android:progress="5"
|
||||
android:progressDrawable="@drawable/bg_horizontal_progressbar" />
|
||||
android:layout_marginTop="2dp"
|
||||
android:progressDrawable="@drawable/bg_gift_progressbar" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_marginStart="10dp"
|
||||
android:src="@mipmap/icon_live_room_gift"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_height="wrap_content"/>
|
||||
android:layout_marginStart="10dp"
|
||||
android:src="@mipmap/icon_live_room_gift" />
|
||||
|
||||
</LinearLayout>
|
||||
<!--心愿单-->
|
||||
<LinearLayout
|
||||
android:id="@+id/wishlistLayout"
|
||||
android:layout_width="82dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="@mipmap/bg_live_room_wishlist"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="6dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="12dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/live_room_wishlist"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="10dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/wish_number"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="11"
|
||||
android:textColor="#FFC949"
|
||||
android:textSize="15dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/wish_total"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="22"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="12dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/wishlist_progressbar"
|
||||
style="@android:style/Widget.ProgressBar.Horizontal"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="1.5dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:progressDrawable="@drawable/bg_gift_progressbar" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/wish_icon"
|
||||
android:layout_width="28dp"
|
||||
android:layout_height="28dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="10dp"
|
||||
android:src="@mipmap/icon_live_room_gift" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@ -578,14 +665,12 @@
|
||||
android:layout_below="@id/lin"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_toRightOf="@id/hour_rank_layout"
|
||||
android:background="@drawable/bg_live_item"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="5dp"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="13dp"
|
||||
@ -621,9 +706,7 @@
|
||||
android:id="@+id/btn_guard"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="21dp"
|
||||
android:layout_alignTop="@id/hour_rank_layout"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_toRightOf="@id/hour_rank_layout"
|
||||
android:background="@drawable/bg_live_item"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
@ -657,12 +740,10 @@
|
||||
android:id="@+id/live_wks_layout"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignTop="@id/hour_rank_layout"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_toRightOf="@id/hour_rank_layout"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="visible">
|
||||
android:visibility="gone">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/live_wks_layout2"
|
||||
@ -670,16 +751,6 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal" />
|
||||
|
||||
<ViewFlipper
|
||||
android:id="@+id/live_wks_and_gift_wall"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="0dp"
|
||||
android:flipInterval="5000"
|
||||
android:inAnimation="@anim/anim_marquee_in"
|
||||
android:outAnimation="@anim/anim_marquee_out" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
@ -704,15 +775,12 @@
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
<!--心愿单-->
|
||||
<LinearLayout
|
||||
android:id="@+id/wish_list_layout"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="21dp"
|
||||
|
||||
android:layout_alignTop="@id/hour_rank_layout"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_toRightOf="@id/live_wks_layout"
|
||||
android:background="@drawable/bg_live_item"
|
||||
@ -739,24 +807,12 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/noble_seat"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@id/hour_rank_layout"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_toEndOf="@id/live_wks_layout"
|
||||
android:visibility="visible">
|
||||
|
||||
<include layout="@layout/view_noble_seat" />
|
||||
</LinearLayout>
|
||||
<!--粉丝团-->
|
||||
<LinearLayout
|
||||
android:id="@+id/fans_btn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="21dp"
|
||||
android:layout_below="@id/lin"
|
||||
android:layout_alignTop="@id/hour_rank_layout"
|
||||
android:background="@drawable/bg_live_item"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
@ -791,7 +847,6 @@
|
||||
android:id="@+id/open_sidebar"
|
||||
android:layout_width="65dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignTop="@id/hour_rank_layout"
|
||||
android:layout_alignParentRight="true"
|
||||
android:background="@drawable/bg_live_item_right"
|
||||
android:clickable="true"
|
||||
@ -820,7 +875,6 @@
|
||||
android:id="@+id/btn_noble"
|
||||
android:layout_width="45dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_alignTop="@id/hour_rank_layout"
|
||||
android:layout_toRightOf="@id/btn_guard"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="5dp"
|
||||
@ -832,7 +886,6 @@
|
||||
android:id="@+id/btn_medal_rank"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="21dp"
|
||||
android:layout_alignTop="@id/hour_rank_layout"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_toRightOf="@id/btn_guard"
|
||||
android:background="@drawable/bg_live_item"
|
||||
@ -863,13 +916,13 @@
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="10dp"
|
||||
android:src="@mipmap/icon_arrow_right" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/luck_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignTop="@id/hour_rank_layout"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_toRightOf="@id/btn_medal_rank" />
|
||||
@ -878,7 +931,6 @@
|
||||
android:id="@+id/live_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_below="@id/hour_rank_layout"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@drawable/bg_live_push_time"
|
||||
@ -912,9 +964,9 @@
|
||||
android:id="@+id/goto_room_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="27dp"
|
||||
android:layout_below="@id/open_sidebar"
|
||||
android:layout_below="@id/topLayout2"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginRight="9dp"
|
||||
android:background="@drawable/bg_live_other_ico"
|
||||
android:gravity="center">
|
||||
@ -1008,7 +1060,6 @@
|
||||
android:id="@+id/btn_red_pack"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_below="@id/hour_rank_layout"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="80dp"
|
||||
android:layout_marginRight="10dp"
|
||||
@ -1098,7 +1149,6 @@
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<com.yunbao.common.custom.MyFrameLayout2
|
||||
android:id="@+id/enter_room_group"
|
||||
android:layout_width="match_parent"
|
||||
@ -1170,7 +1220,6 @@
|
||||
android:id="@+id/title_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="26dp"
|
||||
android:layout_below="@id/hour_rank_layout"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginRight="10dp" />
|
||||
@ -1179,7 +1228,6 @@
|
||||
android:id="@+id/gif_gift_tip_group"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="26dp"
|
||||
android:layout_below="@id/hour_rank_layout"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
@ -1716,7 +1764,7 @@
|
||||
android:layout_height="28dp"
|
||||
android:layout_alignTop="@+id/live_video"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginTop="80dp"
|
||||
android:src="@mipmap/icon_rank_top_box"
|
||||
android:visibility="visible" />
|
||||
|
||||
@ -1724,7 +1772,7 @@
|
||||
android:id="@+id/lt_pk_line"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/live_top"
|
||||
android:layout_marginTop="148dp"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
@ -2464,116 +2512,215 @@
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<!--連麥-->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="190dp"
|
||||
android:layout_marginRight="18dp"
|
||||
android:gravity="bottom"
|
||||
android:layout_marginRight="10dp"
|
||||
android:gravity="bottom|center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/mic_view2"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="50dp"
|
||||
android:id="@+id/mic_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="65dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:visibility="invisible">
|
||||
|
||||
<View
|
||||
android:layout_width="41dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="@drawable/bg_live_mic_av" />
|
||||
android:visibility="invisible"
|
||||
tools:visibility="visible">
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/mic_ico2"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:id="@+id/mic_ico"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginStart="1dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="1dp"
|
||||
android:layout_marginBottom="11dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/m_chu_xia"
|
||||
app:riv_oval="true" />
|
||||
|
||||
<com.opensource.svgaplayer.SVGAImageView
|
||||
android:id="@+id/mic_gift_svga"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
app:autoPlay="true" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:id="@+id/userVoice"
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="10dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="40dp"
|
||||
android:src="@mipmap/voice_open" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:src="@mipmap/voice" />
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:background="@drawable/bg_live_room_mic_num"
|
||||
android:gravity="center"
|
||||
android:text="1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="6dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/userName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="昵称"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="10dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/mic_view1"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="65dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:visibility="invisible">
|
||||
|
||||
<View
|
||||
android:layout_width="41dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="@drawable/bg_live_mic_av" />
|
||||
android:visibility="invisible"
|
||||
tools:visibility="visible">
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/mic_ico1"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginStart="1dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="1dp"
|
||||
android:layout_marginBottom="11dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/m_chu_xia"
|
||||
app:riv_oval="true" />
|
||||
|
||||
<com.opensource.svgaplayer.SVGAImageView
|
||||
android:id="@+id/mic_gift_svga1"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
app:autoPlay="true" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:id="@+id/userVoice1"
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="10dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="40dp"
|
||||
android:src="@mipmap/voice_open" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:src="@mipmap/voice" />
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:background="@drawable/bg_live_room_mic_num"
|
||||
android:gravity="center"
|
||||
android:text="2"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="6dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/userName1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="昵称"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="10dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/mic_view"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="50dp"
|
||||
android:id="@+id/mic_view2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="65dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:visibility="invisible">
|
||||
|
||||
<View
|
||||
android:layout_width="41dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="@drawable/bg_live_mic_av" />
|
||||
android:visibility="invisible"
|
||||
tools:visibility="visible">
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/mic_ico"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:id="@+id/mic_ico2"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginStart="1dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="1dp"
|
||||
android:layout_marginBottom="11dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/m_chu_xia"
|
||||
app:riv_oval="true" />
|
||||
|
||||
<com.opensource.svgaplayer.SVGAImageView
|
||||
android:id="@+id/mic_gift_svga2"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
app:autoPlay="true" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:id="@+id/userVoice2"
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="10dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="40dp"
|
||||
android:src="@mipmap/voice_open" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:src="@mipmap/voice" />
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:background="@drawable/bg_live_room_mic_num"
|
||||
android:gravity="center"
|
||||
android:text="3"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="6dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/userName2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="昵称"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="10dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@ -2598,8 +2745,7 @@
|
||||
<include
|
||||
android:id="@+id/prank_group"
|
||||
layout="@layout/view_prank_group"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
android:visibility="gone" />
|
||||
|
||||
<pl.droidsonroids.gif.GifImageView
|
||||
android:id="@+id/prank_small_icon"
|
||||
|
@ -26,7 +26,7 @@
|
||||
android:layout_marginTop="54dp"
|
||||
android:layout_toRightOf="@+id/btn_horizontally"
|
||||
android:padding="3dp"
|
||||
android:src="@mipmap/icon_fhd"
|
||||
android:src="@mipmap/icon_sd"
|
||||
app:layout_constraintStart_toEndOf="@+id/btn_camera"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
@ -2,14 +2,14 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="23dp"
|
||||
android:orientation="vertical"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/wish_list_layout"
|
||||
android:layout_width="75dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_height="23dp"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="visible">
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
android:id="@+id/live_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginTop="100dp"
|
||||
android:layout_marginTop="90dp"
|
||||
android:layout_gravity="end"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="10dp"
|
||||
@ -286,7 +286,7 @@
|
||||
android:textColor="#fff"
|
||||
android:textSize="10sp"
|
||||
android:translationY="-4dp"
|
||||
android:visibility="visible" />
|
||||
android:visibility="gone" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 10 KiB |
BIN
live/src/main/res/mipmap-xhdpi/bg_live_room_wishlist.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
live/src/main/res/mipmap-xhdpi/voice_close.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
live/src/main/res/mipmap-xhdpi/voice_open.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
@ -62,7 +62,7 @@
|
||||
<string name="live_task_item_complete_false">未完成</string>
|
||||
<string name="live_task_item_hot">直播熱度</string>
|
||||
<string name="live_task_item_xp">主播經驗</string>
|
||||
<string name="live_data_msg1">本場直播數據統計</string>
|
||||
<string name="live_data_msg1">本場直播信息</string>
|
||||
<string name="live_data_msg2">歷史數據可在主播中心查看</string>
|
||||
<string name="live_data_tip">* 人數及新增相關數據非实时计算</string>
|
||||
<string name="live_user_mailbox_top_text">来自%s的信</string>
|
||||
@ -162,5 +162,8 @@
|
||||
<string name="live_end_minute">分鐘</string>
|
||||
<string name="live_data_now_bottom_zs">本場總計鑽石:</string>
|
||||
<string name="live_data_now_bottom_person">打賞人數:</string>
|
||||
<string name="live_room_gift">禮物牆</string>
|
||||
<string name="live_room_wishlist">心願</string>
|
||||
<string name="live_room_new_task">新手任務</string>
|
||||
|
||||
</resources>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<resources>
|
||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
<dimen name="live_view">250dp</dimen>
|
||||
<dimen name="live_top">120dp</dimen>
|
||||
<dimen name="live_top">165dp</dimen>
|
||||
</resources>
|
@ -31,7 +31,7 @@
|
||||
<string name="live_task_item_complete_false">incomplete</string>
|
||||
<string name="live_task_item_hot">hot</string>
|
||||
<string name="live_task_item_xp">exp</string>
|
||||
<string name="live_data_msg1">This live data statistics</string>
|
||||
<string name="live_data_msg1">This live information</string>
|
||||
<string name="live_data_msg2">Historical data can be viewed in the anchor center</string>
|
||||
<string name="live_data_tip">* Non-real-time calculation of data</string>
|
||||
|
||||
@ -165,4 +165,7 @@
|
||||
<string name="live_end_minute">minute</string>
|
||||
<string name="live_data_now_bottom_zs">Get diamonds:</string>
|
||||
<string name="live_data_now_bottom_person">Gift givers:</string>
|
||||
<string name="live_room_gift">Gift Wall</string>
|
||||
<string name="live_room_wishlist">Wishlist</string>
|
||||
<string name="live_room_new_task">Newb job</string>
|
||||
</resources>
|
@ -31,7 +31,7 @@
|
||||
<string name="live_task_item_complete_false">incomplete</string>
|
||||
<string name="live_task_item_hot">hot</string>
|
||||
<string name="live_task_item_xp">exp</string>
|
||||
<string name="live_data_msg1">This live data statistics</string>
|
||||
<string name="live_data_msg1">This live information</string>
|
||||
<string name="live_data_msg2">Historical data can be viewed in the anchor center</string>
|
||||
<string name="live_data_tip">* Non-real-time calculation of data</string>
|
||||
|
||||
|