111
This commit is contained in:
@@ -58,6 +58,7 @@ import com.yunbao.live.bean.LivePKUserListBean;
|
||||
import com.yunbao.live.bean.LiveUserGiftBean;
|
||||
import com.yunbao.live.dialog.BlowkissDialog;
|
||||
import com.yunbao.live.dialog.LiveGiftDialogFragment;
|
||||
import com.yunbao.live.dialog.NewUserDialog;
|
||||
import com.yunbao.live.event.LinkMicTxAccEvent;
|
||||
import com.yunbao.live.event.LiveRoomChangeEvent;
|
||||
import com.yunbao.live.http.LiveHttpConsts;
|
||||
@@ -82,6 +83,7 @@ import com.yunbao.live.views.LivePlayTxViewHolder;
|
||||
import com.yunbao.live.views.LiveRoomPlayViewHolder;
|
||||
import com.yunbao.live.views.LiveRoomViewHolder;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
import org.greenrobot.eventbus.Subscribe;
|
||||
import org.greenrobot.eventbus.ThreadMode;
|
||||
|
||||
@@ -100,6 +102,7 @@ import io.rong.imlib.model.Conversation;
|
||||
import io.rong.message.TextMessage;
|
||||
import pl.droidsonroids.gif.GifImageView;
|
||||
|
||||
import static com.yunbao.common.CommonAppConfig.isNewUser;
|
||||
import static com.yunbao.common.CommonAppContext.logger;
|
||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
||||
import static com.yunbao.live.presenter.LiveLinkMicPresenter.mBannerList2;
|
||||
@@ -181,6 +184,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
|
||||
@Override
|
||||
protected void main() {
|
||||
|
||||
liveImDeletUtil = new LiveImDeletUtil();
|
||||
if (getIntent().getIntExtra("isry", 0) == 1) {
|
||||
isRy = true;
|
||||
@@ -321,6 +325,11 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
countDownTimer = new CountDownTimer(CommonAppConfig.getInstance().alert_end_time * 1000, 1000) {
|
||||
@Override
|
||||
public void onTick(long millisUntilFinished) {
|
||||
|
||||
if (isNewUser == true && timeIndex == 5 ){
|
||||
NewUserDialog fragment1 = new NewUserDialog();
|
||||
fragment1.show(((LiveActivity) mContext).getSupportFragmentManager(), "NewUserDialog");
|
||||
}
|
||||
if (timeIndex == CommonAppConfig.getInstance().alert_time) {
|
||||
if (mLiveRoomViewHolder.isAttention == 0) {
|
||||
BlowkissDialog fragment1 = new BlowkissDialog();
|
||||
|
||||
@@ -21,6 +21,8 @@ import com.yunbao.live.R;
|
||||
import com.yunbao.live.activity.LiveActivity;
|
||||
import com.yunbao.live.http.LiveHttpUtil;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
import static com.yunbao.live.activity.LiveAudienceActivity.countDownTimer;
|
||||
@@ -89,61 +91,24 @@ public class NewUserDialog extends AbsDialogFragment {
|
||||
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
|
||||
super.onActivityCreated(savedInstanceState);
|
||||
ImageView btn_close = (ImageView) mRootView.findViewById(R.id.btn_close);
|
||||
btn_close.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
dismiss();
|
||||
}
|
||||
});
|
||||
RelativeLayout btn_rose = (RelativeLayout) mRootView.findViewById(R.id.btn_rose);
|
||||
RelativeLayout btn_roses = (RelativeLayout) mRootView.findViewById(R.id.btn_roses);
|
||||
RelativeLayout btn_lollipop = (RelativeLayout) mRootView.findViewById(R.id.btn_lollipop);
|
||||
|
||||
|
||||
TextView btn_confirm = (TextView) mRootView.findViewById(R.id.btn_confirm);
|
||||
btn_rose.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
gif = 1;
|
||||
gif_id = 210;
|
||||
btn_rose.setBackgroundResource(R.drawable.button_ffb6c4);
|
||||
btn_roses.setBackgroundResource(R.drawable.button_fff8f6f8);
|
||||
btn_lollipop.setBackgroundResource(R.drawable.button_fff8f6f8);
|
||||
}
|
||||
});
|
||||
|
||||
btn_roses.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
gif = 2;
|
||||
gif_id = 224;
|
||||
btn_rose.setBackgroundResource(R.drawable.button_fff8f6f8);
|
||||
btn_roses.setBackgroundResource(R.drawable.button_ffb6c4);
|
||||
btn_lollipop.setBackgroundResource(R.drawable.button_fff8f6f8);
|
||||
}
|
||||
});
|
||||
|
||||
btn_lollipop.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
gif = 0;
|
||||
gif_id = 1093;
|
||||
btn_rose.setBackgroundResource(R.drawable.button_fff8f6f8);
|
||||
btn_roses.setBackgroundResource(R.drawable.button_fff8f6f8);
|
||||
btn_lollipop.setBackgroundResource(R.drawable.button_ffb6c4);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
btn_confirm.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
follow();
|
||||
LiveHttpUtil.sendGift("0", mLiveUid, LiveActivity.mStream, gif_id, "1", new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
ToastUtil.show(msg);
|
||||
}
|
||||
});
|
||||
countDownTimer.cancel();
|
||||
// follow();
|
||||
// LiveHttpUtil.sendGift("0", mLiveUid, LiveActivity.mStream, gif_id, "1", new HttpCallback() {
|
||||
// @Override
|
||||
// public void onSuccess(int code, String msg, String[] info) {
|
||||
// ToastUtil.show(msg);
|
||||
// }
|
||||
// });
|
||||
EventBus.getDefault().post("showBanner");
|
||||
EventBus.getDefault().post("svga_new_user_gif");
|
||||
|
||||
// countDownTimer.cancel();
|
||||
dismiss();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -68,6 +68,8 @@ import com.yunbao.live.views.LiveLinkMicPushTxViewHolder;
|
||||
import com.yunbao.live.activity.ZhuangBanActivity;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
import org.greenrobot.eventbus.Subscribe;
|
||||
import org.greenrobot.eventbus.ThreadMode;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -112,8 +114,9 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
private ImageView imgEvent;
|
||||
private String eventUrl;
|
||||
private Banner mBanner1;
|
||||
public static Banner mBanner2;
|
||||
public static Banner mBanner2,mBanner3;
|
||||
private List<BannerBean> mBannerList1 = new ArrayList<>();
|
||||
private List<BannerBean> mBannerList3 = new ArrayList<>();
|
||||
|
||||
public static List<BannerBean> mBannerList2 = new ArrayList<>();
|
||||
public static CountDownView date;
|
||||
@@ -121,8 +124,16 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
public static String link = "";
|
||||
LinearLayout btn_event2;
|
||||
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onUpdata(String str) {
|
||||
if ("showBanner".equals(str)) {
|
||||
showBanner3();
|
||||
}
|
||||
}
|
||||
public LiveLinkMicPresenter(Context context, ILiveLinkMicViewHolder linkMicViewHolder, boolean isAnchor, int liveSdk, View root) {
|
||||
mContext = context;
|
||||
EventBus.getDefault().register(this);
|
||||
mRoot = root;
|
||||
mIsAnchor = isAnchor;
|
||||
mLiveSdk = liveSdk;
|
||||
@@ -139,6 +150,9 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
btnEvent = root.findViewById(R.id.btn_event);
|
||||
mBanner1 = (Banner) root.findViewById(R.id.banner1);
|
||||
mBanner2 = (Banner) root.findViewById(R.id.banner2);
|
||||
mBanner3 = (Banner) root.findViewById(R.id.banner3);
|
||||
|
||||
|
||||
btn_event2 = root.findViewById(R.id.btn_event2);
|
||||
mBanner1.setOutlineProvider(new ViewOutlineProvider() {
|
||||
@Override
|
||||
@@ -152,13 +166,32 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), 10);
|
||||
}
|
||||
});
|
||||
|
||||
mBanner3.setOutlineProvider(new ViewOutlineProvider() {
|
||||
@Override
|
||||
public void getOutline(View view, Outline outline) {
|
||||
outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), 10);
|
||||
}
|
||||
});
|
||||
//周星
|
||||
BannerBean bannerBean = new BannerBean();
|
||||
bannerBean.setImageUrl("https://qny.shayucm.com/img/BTN_WEEKSTAR%20%281%29.png");
|
||||
bannerBean.setLink("zxb");
|
||||
mBannerList1.add(bannerBean);
|
||||
|
||||
BannerBean banner3Bean = new BannerBean();
|
||||
banner3Bean.setImageUrl("https://qny.shayucm.com/live_Mission_box.png");
|
||||
banner3Bean.setLink("lw");
|
||||
mBannerList3.add(banner3Bean);
|
||||
BannerBean banner3Bean1 = new BannerBean();
|
||||
banner3Bean1.setImageUrl("https://qny.shayucm.com/live_Mission_box.png");
|
||||
banner3Bean1.setLink("gz");
|
||||
mBannerList3.add(banner3Bean1);
|
||||
|
||||
BannerBean banner3Bean2 = new BannerBean();
|
||||
banner3Bean2.setImageUrl("https://qny.shayucm.com/live_Mission_box.png");
|
||||
banner3Bean2.setLink("dl");
|
||||
mBannerList3.add(banner3Bean2);
|
||||
|
||||
btn_onecz_event = root.findViewById(R.id.btn_onecz_event);
|
||||
btn_onecz_event.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
@@ -746,6 +779,31 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
}
|
||||
}
|
||||
|
||||
private void showBanner3() {
|
||||
if (mBannerList3 == null || mBannerList3.size() == 0 || mBanner3 == null) {
|
||||
return;
|
||||
}
|
||||
mBanner1.setAutoPlay(true)
|
||||
.setPages(mBannerList3, new CustomViewHolder())
|
||||
.setDelayTime(3000)
|
||||
.setBannerStyle(BannerConfig.NOT_INDICATOR)
|
||||
.setOnBannerClickListener(new OnBannerClickListener() {
|
||||
@Override
|
||||
public void onBannerClick(List datas, int p) {
|
||||
if (mBannerList3 != null) {
|
||||
if (p >= 0 && p < mBannerList3.size()) {
|
||||
BannerBean bean = mBannerList3.get(p);
|
||||
if (bean != null) {
|
||||
String link = bean.getLink();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
//获取活动
|
||||
private void getEvent() {
|
||||
if (btn_onecz_event != null) {
|
||||
|
||||
@@ -56,31 +56,28 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
||||
private TextView tv_trickery_time;
|
||||
private View v_msg_redpoint;
|
||||
private Activity context;
|
||||
private SVGAImageView svga_new_user_gif;
|
||||
private SVGAImageView svga_new_user_gif,svga_new_user_double,svga_new_user_follow;
|
||||
|
||||
public LiveAudienceViewHolder(Context context, ViewGroup parentView) {
|
||||
super(context, parentView);
|
||||
this.context = (Activity) context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.view_live_audience;
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onUpdata(String str) {
|
||||
if ("svga_new_user_gif".equals(str)) {
|
||||
svga_new_user_gif();
|
||||
}else if ("svga_new_user_double".equals(str)) {
|
||||
svga_new_user_double();
|
||||
}else if ("svga_new_user_follow".equals(str)) {
|
||||
svga_new_user_follow();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
super.init();
|
||||
findViewById(R.id.btn_close).setOnClickListener(this);
|
||||
findViewById(R.id.btn_share).setOnClickListener(this);
|
||||
findViewById(R.id.btn_red_pack).setOnClickListener(this);
|
||||
findViewById(R.id.btn_gift).setOnClickListener(this);
|
||||
findViewById(R.id.btn_zg).setOnClickListener(this);
|
||||
svga_new_user_gif = (SVGAImageView)findViewById(R.id.svga_new_user_gif);
|
||||
private void svga_new_user_gif(){
|
||||
new SVGAParser(mContext).decodeFromAssets("free_gift_tip.svga", new SVGAParser.ParseCompletion() {
|
||||
@Override
|
||||
public void onComplete(SVGAVideoEntity videoItem) {
|
||||
ToastUtil.show("1212");
|
||||
SVGADrawable drawable = new SVGADrawable(videoItem);
|
||||
svga_new_user_gif.setImageDrawable(drawable);
|
||||
svga_new_user_gif.startAnimation();
|
||||
@@ -91,6 +88,55 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
||||
Log.e("errqs","errl");
|
||||
}
|
||||
});
|
||||
}
|
||||
private void svga_new_user_double() {
|
||||
new SVGAParser(mContext).decodeFromAssets("double_click_tip.svga", new SVGAParser.ParseCompletion() {
|
||||
@Override
|
||||
public void onComplete(SVGAVideoEntity videoItem) {
|
||||
SVGADrawable drawable = new SVGADrawable(videoItem);
|
||||
svga_new_user_double.setImageDrawable(drawable);
|
||||
svga_new_user_double.startAnimation();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError() {
|
||||
Log.e("errqs", "errl");
|
||||
}
|
||||
});
|
||||
}
|
||||
private void svga_new_user_follow() {
|
||||
new SVGAParser(mContext).decodeFromAssets("live_follow_tip.svga", new SVGAParser.ParseCompletion() {
|
||||
@Override
|
||||
public void onComplete(SVGAVideoEntity videoItem) {
|
||||
SVGADrawable drawable = new SVGADrawable(videoItem);
|
||||
svga_new_user_follow.setImageDrawable(drawable);
|
||||
svga_new_user_follow.startAnimation();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError() {
|
||||
Log.e("errqs", "errl");
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.view_live_audience;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
super.init();
|
||||
EventBus.getDefault().register(this);
|
||||
findViewById(R.id.btn_close).setOnClickListener(this);
|
||||
findViewById(R.id.btn_share).setOnClickListener(this);
|
||||
findViewById(R.id.btn_red_pack).setOnClickListener(this);
|
||||
findViewById(R.id.btn_gift).setOnClickListener(this);
|
||||
findViewById(R.id.btn_zg).setOnClickListener(this);
|
||||
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);
|
||||
|
||||
findViewById(R.id.btn_mic).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
@@ -135,7 +181,6 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
||||
v_msg_redpoint = (View) findViewById(R.id.v_msg_redpoint);
|
||||
//获取系统未读消息
|
||||
MessageIMManager.get(context).getSystemMessages();
|
||||
EventBus.getDefault().register(LiveAudienceViewHolder.this);
|
||||
}
|
||||
|
||||
public static Handler handler = new Handler();
|
||||
|
||||
9
live/src/main/res/drawable/border_fdbe40.xml
Normal file
9
live/src/main/res/drawable/border_fdbe40.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="#fdbe40 " />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -8,244 +8,162 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_dialog"
|
||||
android:layout_height="500dp"
|
||||
android:background="@mipmap/live_new_tip"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="50dp">
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_marginTop="220dp"
|
||||
android:layout_width="133dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/live_blowkiss"
|
||||
android:textColor="#ff161616"
|
||||
android:layout_marginTop="50dp"
|
||||
android:textStyle="bold"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/welcome_pdlive"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:textColor="#fff7b55a"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="190dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/live_blowkiss_reply"
|
||||
android:textColor="#ffb1b1b1"
|
||||
android:text="@string/newcomer"
|
||||
android:textColor="#ff1a1a1a"
|
||||
android:layout_gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:textSize="18sp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:textSize="14sp"/>
|
||||
android:layout_marginBottom="20dp"
|
||||
/>
|
||||
|
||||
<RelativeLayout android:id="@+id/btn_rose"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginLeft="13dp"
|
||||
android:layout_marginRight="13dp"
|
||||
android:background="@drawable/button_fff8f6f8">
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginLeft="22dp"
|
||||
android:layout_marginRight="22dp"
|
||||
android:background="@mipmap/freegift_box">
|
||||
|
||||
<LinearLayout
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="一次免費贈送禮物特權!"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="13sp"
|
||||
android:textStyle="bold"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="16dp">
|
||||
android:layout_centerHorizontal="true"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@mipmap/gif_rose"/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout android:id="@+id/aa"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginLeft="22dp"
|
||||
android:layout_marginRight="22dp"
|
||||
android:background="@mipmap/jindou_box">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/live_blowkiss_rose"
|
||||
android:gravity="center"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:textColor="#ff565252"
|
||||
android:textSize="12sp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/golden_bean"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="13sp"
|
||||
android:textStyle="bold"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_alignParentRight="true">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="20"
|
||||
android:layout_gravity="center"
|
||||
android:textColor="#ff565252"
|
||||
android:textColor="#fffff69f"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@mipmap/icon_diamond"/>
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
<RelativeLayout android:id="@+id/aa1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginLeft="22dp"
|
||||
android:layout_marginRight="22dp"
|
||||
android:background="@mipmap/exp_box">
|
||||
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout android:id="@+id/btn_roses"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginLeft="13dp"
|
||||
android:layout_marginRight="13dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/button_fff8f6f8">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@mipmap/icon_rosebouquet"/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/live_blowkiss_roses"
|
||||
android:gravity="center"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:textColor="#ff565252"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_alignParentRight="true">
|
||||
|
||||
<TextView
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="500"
|
||||
android:layout_gravity="center"
|
||||
android:textColor="#ff565252"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@mipmap/icon_diamond"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/exp"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="13sp"
|
||||
android:textStyle="bold"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="20"
|
||||
android:textColor="#fffff69f"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<RelativeLayout android:id="@+id/btn_lollipop"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/new_rewards"
|
||||
android:textColor="#ffb3b3b3"
|
||||
android:textSize="10sp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginLeft="13dp"
|
||||
android:layout_marginRight="13dp"
|
||||
android:background="@drawable/button_ffb6c4">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@mipmap/icon_lollipop"/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/live_blowkiss_lollipop"
|
||||
android:gravity="center"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:textColor="#ff565252"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_alignParentRight="true">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/live_blowkiss_time"
|
||||
android:layout_gravity="center"
|
||||
android:textColor="#ff565252"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@mipmap/icon_diamond"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
/>
|
||||
<TextView android:id="@+id/btn_confirm"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginRight="30dp"
|
||||
android:layout_marginLeft="30dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/live_blowkiss_follow"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="@string/receive_awards"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="13sp"
|
||||
android:gravity="center"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:background="@drawable/button_ffffbf2f"/>
|
||||
android:background="@drawable/border_fdbe40"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true">
|
||||
<ImageView
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="90dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:src="@mipmap/icon_love"/>
|
||||
|
||||
<ImageView android:id="@+id/btn_close"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="20dp"
|
||||
android:layout_marginTop="70dp"
|
||||
android:src="@mipmap/icon_live_user_5"/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -58,7 +58,28 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
<LinearLayout
|
||||
android:id="@+id/btn_event3"
|
||||
android:layout_width="68dp"
|
||||
android:layout_height="68dp"
|
||||
android:layout_gravity="right"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginBottom="18dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.ms.banner.Banner
|
||||
android:id="@+id/banner3"
|
||||
android:layout_width="68dp"
|
||||
android:layout_height="68dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
app:delay_time="5000"
|
||||
app:indicator_height="8dp"
|
||||
app:indicator_width="8dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/btn_event1"
|
||||
android:layout_width="68dp"
|
||||
android:layout_height="68dp"
|
||||
@@ -418,12 +439,32 @@
|
||||
android:id="@+id/svga_new_user_gif"
|
||||
android:layout_width="116dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginBottom="50dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginBottom="40dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
app:autoPlay="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true" />
|
||||
|
||||
|
||||
<com.opensource.svgaplayer.SVGAImageView
|
||||
android:id="@+id/svga_new_user_double"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="40dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@mipmap/black_bg"
|
||||
app:autoPlay="true"/>
|
||||
|
||||
|
||||
<com.opensource.svgaplayer.SVGAImageView
|
||||
android:id="@+id/svga_new_user_follow"
|
||||
android:layout_width="116dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="80dp"
|
||||
android:layout_marginLeft="100dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
app:autoPlay="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
BIN
live/src/main/res/mipmap-xhdpi/black_bg.png
Normal file
BIN
live/src/main/res/mipmap-xhdpi/black_bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
live/src/main/res/mipmap-xhdpi/exp_box.png
Normal file
BIN
live/src/main/res/mipmap-xhdpi/exp_box.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
BIN
live/src/main/res/mipmap-xhdpi/freegift_box.png
Normal file
BIN
live/src/main/res/mipmap-xhdpi/freegift_box.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
live/src/main/res/mipmap-xhdpi/jindou_box.png
Normal file
BIN
live/src/main/res/mipmap-xhdpi/jindou_box.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user