Commit ee9c14d3 authored by mengcuiguang's avatar mengcuiguang

非匹配用户不展示支付页面逻辑

parent 4262a877
......@@ -134,7 +134,7 @@
android:screenOrientation="portrait" />
<activity
android:name=".video.VideoActivity"
android:name=".ui.activitys.NineActivity"
android:exported="false"
android:screenOrientation="portrait" />
<activity
......@@ -147,7 +147,6 @@
android:exported="false"
android:screenOrientation="portrait" />
<activity
android:name=".video.TxVideoActivity"
android:exported="false"
......
......@@ -25,6 +25,7 @@ object Constant {
const val CARRIERTYPE_CSJ_VEDIO = "CSJ_VEDIO"
const val CARRIERTYPE_TX_VEDIO = "TX_VEDIO"
const val CARRIERTYPE_NINE = "NINE"
/**
* app应用首页 0-主页 1-中间 2-我
......
package com.xinfu.helivideo.mvp.presenters;
import com.xinfu.helivideo.mvp.views.NineView;
public class NinePresenter extends BasePresenter<NineView> {
public void getTurnIphoneMsg() {
if (!isLinkView()){
view.showLoading("加载中...");
}
// AppHttpManager.getInstance(loanApplication)
// .call(loanService.getTurnIphoneMsg(),
// new BaseSubscriber<BaseResponse<PhoneBean>>() {
// @Override
// public void onCompleted() {
// if (isLinkView()) return;
//
// view.hideLoading();
// }
//
// @Override
// public void onError(Throwable e) {
// if (isLinkView()) return;
//
// view.hideLoading();
// view.showToast(e.getMessage());
// }
//
// @Override
// public void onNext(BaseResponse<PhoneBean> baseResponse) {
// if (isLinkView()) return;
//
// int code = baseResponse.getStatus();
// String message = baseResponse.getMessage();
// switch (code) {
// case 200://成功
// view.getTurnIphoneMsgSuc(baseResponse.getData());
// break;
// default:
// view.showToast(message);
// break;
// }
// }
// });
}
}
package com.xinfu.helivideo.mvp.views
interface NineView : BaseView{
}
\ No newline at end of file
......@@ -56,7 +56,8 @@ class AboutusActivity : BaseActivity(), View.OnClickListener {
tvAboutasVersion.setOnLongClickListener {
ToastUtil.showLong(this, "包名:" + Constant.MINTS_PKG_NAME)
// readyGo(NineActivity::class.java)
readyGo(NineActivity::class.java)
// VoiceRedEnvelopeManager.load(23,23)
true
}
......
package com.xinfu.helivideo.ui.activitys
import android.view.View
import com.daimajia.androidanimations.library.Techniques
import com.daimajia.androidanimations.library.YoYo
import com.xinfu.helivideo.R
import com.xinfu.helivideo.mvp.presenters.NinePresenter
import com.xinfu.helivideo.mvp.views.NineView
import com.xinfu.helivideo.ui.activitys.base.BaseActivity
import com.xinfu.helivideo.utils.rxutil.CommonRxTask
import com.xinfu.helivideo.utils.rxutil.RxjavaUtil
import com.xinfu.library.utils.nodoubleclick.AntiShake
import kotlinx.android.synthetic.main.activity_nine.*
/**
* 描述:9宫格手机
* 作者:孟崔广
*/
class NineActivity : BaseActivity(), View.OnClickListener, NineView {
private val ninePresenter by lazy { NinePresenter() }
private var yoyo: YoYo.YoYoString? = null
override fun getContentViewLayoutID() = R.layout.activity_nine
override fun isApplyKitKatTranslucency() = false
override fun initViewsAndEvents() {
ninePresenter.attachView(this)
initListener()
// ninePresenter.getTurnIphoneMsg()
btn_action?.postDelayed({
yoyo = YoYo.with(Techniques.Pulse).duration(1000).repeat(-1).playOn(btn_action)
}, 200)
}
override fun onDestroy() {
super.onDestroy()
ninePresenter.detachView()
yoyo?.stop()
yoyo = null
}
private fun initListener() {
btn_action.setOnClickListener(this)
iv_nine_back.setOnClickListener(this)
}
override fun onClick(v: View) {
if (AntiShake.check(v.id)) return
when (v.id) {
R.id.iv_nine_back -> {
finish()
}
R.id.btn_action -> {
luckyAward()
}
}
}
private fun luckyAward() {
startNine()
// val carrierType = Constant.CARRIERTYPE_NINE
// AdManager.instance.showAd(this, carrierType,
// object : AdStatusListener {
// var canFail = false
// override fun adSuccess() {
// canFail = true
// }
//
// override fun adFail() {
// if (canFail) return
//
// NoPreAdManager.loadVideoAd(
// this@NineActivity,
// carrierType, object : AdStatusListener {
// override fun adFail() {
// showToast("广告太火爆了,请稍候再试")
// }
//
// override fun adSuccess() {
// }
//
// override fun adClose(vo: HashMap<String, Any>?) {
// vo?.let {
// Handler(Looper.getMainLooper()).postDelayed({
// startNine()
// }, 500)
// }
// }
// })
// }
//
// override fun adClose(vo: HashMap<String, Any>?) {
// vo?.let {
// Handler(Looper.getMainLooper()).postDelayed({
// startNine()
// }, 500)
// }
// }
//
// })
}
fun startNine() {
if (!lucky_panel.isGameRunning) {
lucky_panel.startGame()
RxjavaUtil.executeRxTask(object : CommonRxTask<String>("") {
override fun doInIOThread() {
Thread.sleep(3000)
}
override fun doInUIThread() {
if (this@NineActivity.isFinishing) {
return
}
lucky_panel.tryToStop(1)
}
})
}
}
}
\ No newline at end of file
......@@ -206,7 +206,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, VipAdapter.On
when (keyCode) {
KeyEvent.KEYCODE_BACK -> {
if (!UserManager.getInstance().vipFlag && UserManager.getInstance().newFlag
&& vipList != null && vipList!!.size > 0 && vipList!!.get(0).price == 0.01
&& vipList != null && vipList!!.size > 0
) {
vipAdapter.setPosition(0)
......@@ -239,7 +239,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, VipAdapter.On
when (v?.id) {
R.id.ic_vip_quit -> {
if (!UserManager.getInstance().vipFlag && UserManager.getInstance().newFlag &&
vipList != null && vipList!!.size > 0 && vipList!!.get(0).price == 0.01
vipList != null && vipList!!.size > 0
) {
vipAdapter.setPosition(0)
vipAdapter.notifyDataSetChanged()
......
......@@ -109,21 +109,21 @@ class MyFragment : BaseFragment(), MyView, View.OnClickListener {
private fun loginStatus(consumer: UserBean) {
// 1-匹配用户
// if (consumer.activiteFlag == 0) {
// // 未匹配
// ll_my_vip.visibility = View.GONE
// ll_my_payrecord.visibility = View.GONE
// ll_contactus.visibility = View.GONE
// line_my_payrecord.visibility = View.GONE
// line_my_contactus.visibility = View.GONE
// } else {
// // 匹配
// ll_my_vip.visibility = View.VISIBLE
// ll_my_payrecord.visibility = View.VISIBLE
// ll_contactus.visibility = View.VISIBLE
// line_my_payrecord.visibility = View.VISIBLE
// line_my_contactus.visibility = View.VISIBLE
// }
if (consumer.activiteFlag == 0) {
// 未匹配
ll_my_vip.visibility = View.GONE
ll_my_payrecord.visibility = View.GONE
ll_contactus.visibility = View.GONE
line_my_payrecord.visibility = View.GONE
line_my_contactus.visibility = View.GONE
} else {
// 匹配
ll_my_vip.visibility = View.VISIBLE
ll_my_payrecord.visibility = View.VISIBLE
ll_contactus.visibility = View.VISIBLE
line_my_payrecord.visibility = View.VISIBLE
line_my_contactus.visibility = View.VISIBLE
}
// 2-登录
if (userManager.userIsLogin()) {
......
......@@ -6,6 +6,7 @@ import android.view.Gravity
import android.view.KeyEvent
import android.view.View
import android.view.WindowManager
import android.widget.FrameLayout
import android.widget.ImageView
import android.widget.RelativeLayout
import android.widget.TextView
......@@ -21,7 +22,11 @@ class PayYesDialog(
context, R.style.dialog
) {
private val lp: WindowManager.LayoutParams
private val fl_dialog_vip_money_root: FrameLayout
private val tv_dialog_vip_next: TextView
private val tv_dialog_vip_money_left: TextView
private val tv_dialog_vip_money_right: TextView
private val tv_dialog_vip_money_center: TextView
private val iv_dialog_vip_quit: ImageView
private val rl_dialog_vip_bg: RelativeLayout
......@@ -45,19 +50,28 @@ class PayYesDialog(
// 查找View
fl_dialog_vip_money_root = findViewById<View>(R.id.fl_dialog_vip_money_root) as FrameLayout
iv_dialog_vip_quit = findViewById<View>(R.id.iv_dialog_vip_quit) as ImageView
tv_dialog_vip_next = findViewById<View>(R.id.tv_dialog_vip_next) as TextView
tv_dialog_vip_money_left = findViewById<View>(R.id.tv_dialog_vip_money_left) as TextView
tv_dialog_vip_money_right = findViewById<View>(R.id.tv_dialog_vip_money_right) as TextView
tv_dialog_vip_money_center = findViewById<View>(R.id.tv_dialog_vip_money_center) as TextView
rl_dialog_vip_bg = findViewById<View>(R.id.rl_dialog_vip_bg) as RelativeLayout
iv_dialog_vip_quit.setOnClickListener(listener)
tv_dialog_vip_next.setOnClickListener(listener)
// if (vipBean.trial == 0) {
// //0-没签约 无0.01
// tv_dialog_vip_next.text = "立即开通"
// rl_dialog_vip_bg.setBackgroundResource(R.mipmap.bg_vip_dialog_one)
// } else {
if (vipBean.trial == 0) {
//0-没签约 无0.01
fl_dialog_vip_money_root.visibility = View.VISIBLE
tv_dialog_vip_money_left.text = "¥${vipBean.oldPrice}"
tv_dialog_vip_money_right.text = "¥${vipBean.oldPrice}"
tv_dialog_vip_money_center.text = "¥${vipBean.price}"
tv_dialog_vip_next.text = "立即开通"
rl_dialog_vip_bg.setBackgroundResource(R.mipmap.bg_vip_dialog_one)
} else {
fl_dialog_vip_money_root.visibility = View.GONE
tv_dialog_vip_next.text = "${0.01}元试用"
rl_dialog_vip_bg.setBackgroundResource(R.mipmap.bg_vip_dialog_zero)
// }
}
}
}
\ No newline at end of file
package com.xinfu.helivideo.ui.widgets.luckymonkeypanel;
/**
* Created by jeanboy on 2017/4/25.
*/
public interface ItemView {
void setFocus(boolean isFocused);
}
package com.xinfu.helivideo.ui.widgets.luckymonkeypanel;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import android.widget.ImageView;
import com.xinfu.helivideo.R;
public class LuckyMonkeyPanelView extends FrameLayout {
private ImageView bg_1;
private ImageView bg_2;
private PanelItemView itemView1, itemView2, itemView3,
itemView4, itemView6,
itemView7, itemView8, itemView9;
private ItemView[] itemViewArr = new ItemView[8];
private int currentIndex = 0;
private int currentTotal = 0;
private int stayIndex = 0;
private boolean isMarqueeRunning = false;
private boolean isGameRunning = false;
private boolean isTryToStop = false;
private static final int DEFAULT_SPEED = 150;
private static final int MIN_SPEED = 50;
private int currentSpeed = DEFAULT_SPEED;
public LuckyMonkeyPanelView(Context context) {
this(context, null);
}
public LuckyMonkeyPanelView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public LuckyMonkeyPanelView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
inflate(context, R.layout.view_lucky_mokey_panel, this);
setupView();
}
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
startMarquee();
}
@Override
protected void onDetachedFromWindow() {
stopMarquee();
super.onDetachedFromWindow();
}
private void setupView() {
bg_1 = (ImageView) findViewById(R.id.bg_1);
bg_2 = (ImageView) findViewById(R.id.bg_2);
itemView1 = (PanelItemView) findViewById(R.id.item1);
itemView2 = (PanelItemView) findViewById(R.id.item2);
itemView3 = (PanelItemView) findViewById(R.id.item3);
itemView4 = (PanelItemView) findViewById(R.id.item4);
itemView6 = (PanelItemView) findViewById(R.id.item6);
itemView7 = (PanelItemView) findViewById(R.id.item7);
itemView8 = (PanelItemView) findViewById(R.id.item8);
itemView9 = (PanelItemView) findViewById(R.id.item9);
setImgArray();
}
public void setImgArray() {
// 0金币 1huawei手机 2提现券 3金币 4红包 5提现券 6金币 7phone
itemView1.setBackground(getResources().getDrawable(R.mipmap.ic_nine_coin));
itemView2.setBackground(getResources().getDrawable(R.mipmap.ic_nine_huawei));
itemView3.setBackground(getResources().getDrawable(R.mipmap.ic_nine_di));
itemView6.setBackground(getResources().getDrawable(R.mipmap.ic_nine_coin));
itemView9.setBackground(getResources().getDrawable(R.mipmap.ic_nine_100));
itemView8.setBackground(getResources().getDrawable(R.mipmap.ic_nine_di));
itemView7.setBackground(getResources().getDrawable(R.mipmap.ic_nine_coin));
itemView4.setBackground(getResources().getDrawable(R.mipmap.ic_nine_14));
itemViewArr[0] = itemView4;
itemViewArr[1] = itemView1;
itemViewArr[2] = itemView2;
itemViewArr[3] = itemView3;
itemViewArr[4] = itemView6;
itemViewArr[5] = itemView9;
itemViewArr[6] = itemView8;
itemViewArr[7] = itemView7;
}
private void stopMarquee() {
isMarqueeRunning = false;
isGameRunning = false;
isTryToStop = false;
}
private void startMarquee() {
isMarqueeRunning = true;
new Thread(new Runnable() {
@Override
public void run() {
while (isMarqueeRunning) {
try {
Thread.sleep(250);
} catch (InterruptedException e) {
e.printStackTrace();
}
post(new Runnable() {
@Override
public void run() {
if (bg_1 != null && bg_2 != null) {
if (VISIBLE == bg_1.getVisibility()) {
bg_1.setVisibility(GONE);
bg_2.setVisibility(VISIBLE);
} else {
bg_1.setVisibility(VISIBLE);
bg_2.setVisibility(GONE);
}
}
}
});
}
}
}).start();
}
private long getInterruptTime() {
currentTotal++;
if (isTryToStop) {
currentSpeed += 10;
if (currentSpeed > DEFAULT_SPEED) {
currentSpeed = DEFAULT_SPEED;
}
} else {
if (currentTotal / itemViewArr.length > 0) {
currentSpeed -= 10;
}
if (currentSpeed < MIN_SPEED) {
currentSpeed = MIN_SPEED;
}
}
return currentSpeed;
}
public boolean isGameRunning() {
return isGameRunning;
}
public void startGame() {
isGameRunning = true;
isTryToStop = false;
currentSpeed = DEFAULT_SPEED;
new Thread(new Runnable() {
@Override
public void run() {
while (isGameRunning) {
try {
Thread.sleep(getInterruptTime());
} catch (InterruptedException e) {
e.printStackTrace();
}
post(new Runnable() {
@Override
public void run() {
int preIndex = currentIndex;
currentIndex++;
if (currentIndex >= itemViewArr.length) {
currentIndex = 0;
}
itemViewArr[preIndex].setFocus(false);
itemViewArr[currentIndex].setFocus(true);
if (isTryToStop && currentSpeed == DEFAULT_SPEED && stayIndex == currentIndex) {
isGameRunning = false;
}
}
});
}
}
}).start();
}
public void tryToStop(int position) {
stayIndex = position;
isTryToStop = true;
}
}
package com.xinfu.helivideo.ui.widgets.luckymonkeypanel;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import com.xinfu.helivideo.R;
/**
* Created by jeanboy on 2017/4/20.
*/
public class PanelItemView extends FrameLayout implements ItemView{
private View overlay;
public PanelItemView(Context context) {
this(context, null);
}
public PanelItemView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public PanelItemView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
inflate(context, R.layout.view_panel_item, this);
overlay = findViewById(R.id.overlay);
}
@Override
public void setFocus(boolean isFocused) {
if (overlay != null) {
overlay.setVisibility(isFocused ? INVISIBLE : VISIBLE);
}
}
}
......@@ -20,6 +20,7 @@ import com.xinfu.helivideo.ad.AdStatusListener
import com.xinfu.helivideo.ad.NoPreAdManager
import com.xinfu.helivideo.common.Constant
import com.xinfu.helivideo.manager.LocalVedioManager
import com.xinfu.helivideo.manager.UserManager
import com.xinfu.helivideo.mvp.model.IndexList
import com.xinfu.helivideo.mvp.model.VedioBean
import com.xinfu.helivideo.mvp.presenters.VideoPresenter
......@@ -127,6 +128,14 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
leaveBtn = findViewById(R.id.leave)
vipBtn = findViewById(R.id.vip)
if (UserManager.getInstance().newFlag) {
// 匹配
vipBtn!!.visibility = View.VISIBLE
} else {
// 未匹配
vipBtn!!.visibility = View.GONE
}
blockView?.visibility = View.GONE
drama = outerDrama
......
......@@ -12,9 +12,11 @@ import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.chad.library.adapter.base.BaseMultiItemQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xinfu.helivideo.R
import com.xinfu.helivideo.manager.UserManager
import com.xinfu.helivideo.mvp.model.VedioBean
import com.xinfu.helivideo.mvp.model.VideoMultiItemEntity
import com.xinfu.helivideo.video.tx.TXVideoBaseView
import kotlinx.android.synthetic.main.fragment_main_my.*
class TxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity, BaseViewHolder>() {
......@@ -36,9 +38,18 @@ class TxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity, BaseViewH
private fun initLockHolder(holder: BaseViewHolder) {
Glide.with(context).load(vedioBean?.coverImage)
.into(holder.getView(R.id.iv_bg))
holder.getView<View>(R.id.vip).setOnClickListener {
mOnCustomChildClickListener?.onCustomChildClick(it, holder.adapterPosition)
val vipBtn = holder.getView<View>(R.id.vip)
if (UserManager.getInstance().newFlag) {
// 匹配
vipBtn.visibility=View.VISIBLE
vipBtn.setOnClickListener {
mOnCustomChildClickListener?.onCustomChildClick(it, holder.adapterPosition)
}
} else {
// 未匹配
vipBtn.visibility=View.GONE
}
holder.getView<TextView>(R.id.unlock).text = "看广告解锁" + vedioBean?.adGiveVedioNum + "集"
holder.getView<View>(R.id.unlock).setOnClickListener {
mOnCustomChildClickListener?.onCustomChildClick(it, holder.adapterPosition)
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#1affffff" />
<corners android:radius="50dp" />
<stroke
android:width="1dp"
android:color="#26ffffff" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/btn_pressed" android:state_pressed="true"/>
<item android:drawable="@drawable/btn_normal" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#e03632" />
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ff6e1c" />
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#66b066" />
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#f9664a" />
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#319de5" />
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#e9a825" />
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#97d94a" />
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#1dc4cd" />
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#64000000" />
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#3a1f3b" />
<corners android:radius="10dp" />
<stroke
android:width="2dp"
android:color="#2e1106" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/iv_nine_back"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginTop="10dp"
android:padding="15dp"
android:src="@mipmap/ic_arrow_back" />
<TextView
android:id="@+id/tv_nine_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp"
android:layout_marginBottom="12dp"
android:text="剩余抽奖次数:-"
android:textColor="@color/white"
android:textSize="16sp" />
<RelativeLayout
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_gravity="center_horizontal">
<com.xinfu.helivideo.ui.widgets.luckymonkeypanel.LuckyMonkeyPanelView
android:id="@+id/lucky_panel"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<Button
android:id="@+id/btn_action"
android:layout_width="82dp"
android:layout_height="82dp"
android:layout_centerInParent="true"
android:background="@mipmap/ic_nine_go"
android:textColor="#4d1c01"
android:textSize="34sp" />
</RelativeLayout>
</LinearLayout>
......@@ -22,13 +22,52 @@
android:id="@+id/tv_dialog_vip_next"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="70dp"
android:background="@mipmap/bg_vip_dialog_btn"
android:gravity="center"
android:text="立即开通"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="70dp"
android:textColor="#6B3D1A"
android:textSize="20sp"></TextView>
<FrameLayout
android:id="@+id/fl_dialog_vip_money_root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone">
<TextView
android:id="@+id/tv_dialog_vip_money_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="45dp"
android:layout_marginTop="200dp"
android:text="¥123"
android:textColor="@color/red"
android:textSize="22sp"></TextView>
<TextView
android:id="@+id/tv_dialog_vip_money_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginTop="200dp"
android:layout_marginRight="45dp"
android:text="¥123"
android:textColor="@color/red"
android:textSize="22sp"></TextView>
<TextView
android:id="@+id/tv_dialog_vip_money_center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="260dp"
android:text="¥123"
android:textColor="@color/red"
android:textSize="22sp"></TextView>
</FrameLayout>
</RelativeLayout>
</RelativeLayout>
......@@ -169,6 +169,7 @@
<Button
android:id="@+id/vip"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/bg_detail_bottom"
......
......@@ -41,6 +41,7 @@
android:textColor="@color/white" />
<Button
android:visibility="gone"
android:id="@+id/vip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="300dp"
android:layout_height="300dp"
android:background="@drawable/bg_lucky_monkey_panel"
android:orientation="vertical">
<ImageView
android:id="@+id/bg_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/bubble0" />
<ImageView
android:id="@+id/bg_2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/bubble1"
android:visibility="gone" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="25dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.xinfu.helivideo.ui.widgets.luckymonkeypanel.PanelItemView
android:id="@+id/item1"
android:layout_width="76dp"
android:layout_height="76dp"
android:background="@drawable/bg_lucky_monkey_item1" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
<com.xinfu.helivideo.ui.widgets.luckymonkeypanel.PanelItemView
android:id="@+id/item2"
android:layout_width="76dp"
android:layout_height="76dp"
android:background="@drawable/bg_lucky_monkey_item2" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
<com.xinfu.helivideo.ui.widgets.luckymonkeypanel.PanelItemView
android:id="@+id/item3"
android:layout_width="76dp"
android:layout_height="76dp"
android:background="@drawable/bg_lucky_monkey_item3" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.xinfu.helivideo.ui.widgets.luckymonkeypanel.PanelItemView
android:id="@+id/item4"
android:layout_width="76dp"
android:layout_height="76dp"
android:background="@drawable/bg_lucky_monkey_item4" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
<View
android:layout_width="76dp"
android:layout_height="76dp" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
<com.xinfu.helivideo.ui.widgets.luckymonkeypanel.PanelItemView
android:id="@+id/item6"
android:layout_width="76dp"
android:layout_height="76dp"
android:background="@drawable/bg_lucky_monkey_item6" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.xinfu.helivideo.ui.widgets.luckymonkeypanel.PanelItemView
android:id="@+id/item7"
android:layout_width="76dp"
android:layout_height="76dp"
android:background="@drawable/bg_lucky_monkey_item7" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
<com.xinfu.helivideo.ui.widgets.luckymonkeypanel.PanelItemView
android:id="@+id/item8"
android:layout_width="76dp"
android:layout_height="76dp"
android:background="@drawable/bg_lucky_monkey_item8" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
<com.xinfu.helivideo.ui.widgets.luckymonkeypanel.PanelItemView
android:id="@+id/item9"
android:layout_width="76dp"
android:layout_height="76dp"
android:background="@drawable/bg_lucky_monkey_item9" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/item_bg"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/icon_questionmark" />
<View
android:id="@+id/overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_lucky_monkey_item_overlay" />
</RelativeLayout>
</FrameLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment