新人奖励
This commit is contained in:
parent
b52a157ed2
commit
13a4de4fee
@ -9,9 +9,9 @@ ext {
|
|||||||
]
|
]
|
||||||
manifestPlaceholders = [
|
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",
|
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
||||||
|
@ -10,6 +10,7 @@ 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.text.TextUtils;
|
||||||
import android.util.DisplayMetrics;
|
import android.util.DisplayMetrics;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
@ -32,6 +33,7 @@ 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.bean.MsgModel;
|
||||||
|
import com.yunbao.common.event.LiveAudienceEvent;
|
||||||
import com.yunbao.common.event.MessageIMEvent;
|
import com.yunbao.common.event.MessageIMEvent;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
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.LiveHDDialogFragment;
|
||||||
import com.yunbao.live.dialog.LiveMicUserDialogFragment;
|
import com.yunbao.live.dialog.LiveMicUserDialogFragment;
|
||||||
import com.yunbao.live.dialog.LivePromotionDialogFragment;
|
import com.yunbao.live.dialog.LivePromotionDialogFragment;
|
||||||
import com.yunbao.common.event.LiveAudienceEvent;
|
|
||||||
import com.yunbao.live.http.LiveHttpUtil;
|
import com.yunbao.live.http.LiveHttpUtil;
|
||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
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.util.Locale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2018/10/9.
|
* Created by cxf on 2018/10/9.
|
||||||
* 观众直播间逻辑
|
* 观众直播间逻辑
|
||||||
@ -74,7 +77,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
private TextView goToRomm;
|
private TextView goToRomm;
|
||||||
private int icon = 0;
|
private int icon = 0;
|
||||||
private String nobleName, nobleTtext;
|
private String nobleName, nobleTtext;
|
||||||
private ImageView giftImage;
|
private ImageView giftImage,liveNewPeople;
|
||||||
|
|
||||||
public LiveAudienceViewHolder(Context context, ViewGroup parentView) {
|
public LiveAudienceViewHolder(Context context, ViewGroup parentView) {
|
||||||
super(context, parentView);
|
super(context, parentView);
|
||||||
@ -181,6 +184,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
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);
|
||||||
giftImage = (ImageView) findViewById(R.id.gift_image);
|
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_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);
|
||||||
@ -314,6 +318,10 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
.setType(LiveAudienceEvent.LiveAudienceType.GIFT_POPUP));
|
.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();
|
public static Handler handler = new Handler();
|
||||||
|
@ -42,6 +42,7 @@ import com.yunbao.common.CommonAppConfig;
|
|||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
import com.yunbao.common.bean.LevelBean;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
|
import com.yunbao.common.event.LiveAudienceEvent;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.CommonHttpConsts;
|
import com.yunbao.common.http.CommonHttpConsts;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
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.LiveFansMedalDialogFragment;
|
||||||
import com.yunbao.live.dialog.LiveHDDialogFragment;
|
import com.yunbao.live.dialog.LiveHDDialogFragment;
|
||||||
import com.yunbao.live.dialog.LiveUserDialogFragment;
|
import com.yunbao.live.dialog.LiveUserDialogFragment;
|
||||||
import com.yunbao.common.event.LiveAudienceEvent;
|
|
||||||
import com.yunbao.live.http.LiveHttpConsts;
|
import com.yunbao.live.http.LiveHttpConsts;
|
||||||
import com.yunbao.live.http.LiveHttpUtil;
|
import com.yunbao.live.http.LiveHttpUtil;
|
||||||
import com.yunbao.live.presenter.LiveDanmuPresenter;
|
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;
|
public static int pkEndIndex = 0;
|
||||||
|
@ -460,7 +460,7 @@
|
|||||||
android:layout_marginEnd="16dp"
|
android:layout_marginEnd="16dp"
|
||||||
android:layout_toStartOf="@id/gift_image"
|
android:layout_toStartOf="@id/gift_image"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:src="@mipmap/live_icon_new_people_cn" />
|
android:src="@mipmap/live_icon_newpeople_en" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@
|
|||||||
android:src="@mipmap/icon_arrow_right"
|
android:src="@mipmap/icon_arrow_right"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
<!--守护-->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/btn_guard"
|
android:id="@+id/btn_guard"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -201,7 +201,8 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingLeft="8dp"
|
android:paddingLeft="8dp"
|
||||||
android:paddingRight="5dp">
|
android:paddingRight="5dp"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="20dp"
|
android:layout_width="20dp"
|
||||||
@ -224,21 +225,50 @@
|
|||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
</LinearLayout>
|
</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
|
<LinearLayout
|
||||||
android:id="@+id/fans_btn"
|
android:id="@+id/fans_btn"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="21dp"
|
android:layout_height="21dp"
|
||||||
android:layout_below="@id/lin"
|
android:layout_below="@id/lin"
|
||||||
android:layout_alignTop="@id/btn_votes"
|
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:background="@drawable/bg_live_item"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingLeft="8dp"
|
android:paddingStart="8dp"
|
||||||
android:paddingRight="5dp">
|
android:paddingEnd="5dp"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="13dp"
|
android:layout_width="13dp"
|
||||||
|
BIN
live/src/main/res/mipmap-xxxhdpi/live_icon_newpeople_en.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/live_icon_newpeople_en.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/live_icon_zhouxing.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/live_icon_zhouxing.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
Loading…
Reference in New Issue
Block a user