新人奖励

This commit is contained in:
18401019693 2022-08-17 18:30:56 +08:00
parent b52a157ed2
commit 13a4de4fee
7 changed files with 55 additions and 13 deletions

View File

@ -9,9 +9,9 @@ ext {
]
manifestPlaceholders = [
//
// serverHost : "https://napi.yaoulive.com",
serverHost : "https://napi.yaoulive.com",
//
serverHost : "https://ceshi.yaoulive.com",
// serverHost : "https://ceshi.yaoulive.com",
//
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",

View File

@ -10,6 +10,7 @@ import android.graphics.Color;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Handler;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.LayoutInflater;
@ -32,6 +33,7 @@ import com.opensource.svgaplayer.SVGAVideoEntity;
import com.yunbao.common.CommonAppConfig;
import com.yunbao.common.Constants;
import com.yunbao.common.bean.MsgModel;
import com.yunbao.common.event.LiveAudienceEvent;
import com.yunbao.common.event.MessageIMEvent;
import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.http.HttpCallback;
@ -48,13 +50,14 @@ import com.yunbao.live.bean.LiveChatBean;
import com.yunbao.live.dialog.LiveHDDialogFragment;
import com.yunbao.live.dialog.LiveMicUserDialogFragment;
import com.yunbao.live.dialog.LivePromotionDialogFragment;
import com.yunbao.common.event.LiveAudienceEvent;
import com.yunbao.live.http.LiveHttpUtil;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import java.util.Locale;
/**
* Created by cxf on 2018/10/9.
* 观众直播间逻辑
@ -74,7 +77,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
private TextView goToRomm;
private int icon = 0;
private String nobleName, nobleTtext;
private ImageView giftImage;
private ImageView giftImage,liveNewPeople;
public LiveAudienceViewHolder(Context context, ViewGroup parentView) {
super(context, parentView);
@ -181,6 +184,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
findViewById(R.id.btn_gift).setOnClickListener(this);
findViewById(R.id.btn_zg).setOnClickListener(this);
giftImage = (ImageView) findViewById(R.id.gift_image);
liveNewPeople = (ImageView) findViewById(R.id.live_new_people);
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_follow = (SVGAImageView) findViewById(R.id.svga_new_user_follow);
@ -314,6 +318,10 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
.setType(LiveAudienceEvent.LiveAudienceType.GIFT_POPUP));
}
});
Locale locale = mContext.getResources().getConfiguration().locale;
String language = locale.getLanguage();
ImgLoader.display(mContext,TextUtils.equals(language, "zh")?R.mipmap.live_icon_new_people_cn:R.mipmap.live_icon_newpeople_en,liveNewPeople);
}
public static Handler handler = new Handler();

View File

@ -42,6 +42,7 @@ import com.yunbao.common.CommonAppConfig;
import com.yunbao.common.Constants;
import com.yunbao.common.bean.LevelBean;
import com.yunbao.common.bean.UserBean;
import com.yunbao.common.event.LiveAudienceEvent;
import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.http.CommonHttpConsts;
import com.yunbao.common.http.CommonHttpUtil;
@ -79,7 +80,6 @@ import com.yunbao.live.custom.TopGradual;
import com.yunbao.live.dialog.LiveFansMedalDialogFragment;
import com.yunbao.live.dialog.LiveHDDialogFragment;
import com.yunbao.live.dialog.LiveUserDialogFragment;
import com.yunbao.common.event.LiveAudienceEvent;
import com.yunbao.live.http.LiveHttpConsts;
import com.yunbao.live.http.LiveHttpUtil;
import com.yunbao.live.presenter.LiveDanmuPresenter;
@ -847,6 +847,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
}
}
});
//点击打开周星榜
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_wks_layout),
() -> Bus.get().post(new LiveAudienceEvent()
.setType(LiveAudienceEvent.LiveAudienceType.LIVE_WKS)));
}
public static int pkEndIndex = 0;

View File

@ -460,7 +460,7 @@
android:layout_marginEnd="16dp"
android:layout_toStartOf="@id/gift_image"
android:padding="4dp"
android:src="@mipmap/live_icon_new_people_cn" />
android:src="@mipmap/live_icon_newpeople_en" />
</RelativeLayout>

View File

@ -189,7 +189,7 @@
android:src="@mipmap/icon_arrow_right"
android:visibility="gone" />
</LinearLayout>
<!--守护-->
<LinearLayout
android:id="@+id/btn_guard"
android:layout_width="wrap_content"
@ -201,7 +201,8 @@
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="8dp"
android:paddingRight="5dp">
android:paddingRight="5dp"
android:visibility="gone">
<ImageView
android:layout_width="20dp"
@ -224,21 +225,50 @@
android:visibility="gone" />
</LinearLayout>
<!--周星榜-->
<LinearLayout
android:id="@+id/live_wks_layout"
android:layout_width="wrap_content"
android:layout_height="21dp"
android:layout_alignTop="@id/btn_votes"
android:layout_marginLeft="10dp"
android:layout_toRightOf="@id/btn_votes"
android:background="@drawable/bg_live_item"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="8dp"
android:paddingRight="5dp"
android:visibility="visible">
<ImageView
android:layout_width="14dp"
android:layout_height="14dp"
android:src="@mipmap/live_icon_zhouxing" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:text="@string/live_wks"
android:textColor="#FFFFFFFF"
android:textSize="10sp" />
</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/btn_votes"
android:layout_marginLeft="10dp"
android:layout_marginRight="12dp"
android:layout_toRightOf="@+id/btn_guard"
android:background="@drawable/bg_live_item"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="8dp"
android:paddingRight="5dp">
android:paddingStart="8dp"
android:paddingEnd="5dp"
android:visibility="gone">
<ImageView
android:layout_width="13dp"

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB