Commit b7e6a1fc authored by jyx's avatar jyx

修改福袋位置

parent a7321bc1
...@@ -14,19 +14,14 @@ import com.mints.goodmoney.login.LoginApi ...@@ -14,19 +14,14 @@ import com.mints.goodmoney.login.LoginApi
import com.mints.goodmoney.login.OnLoginListener import com.mints.goodmoney.login.OnLoginListener
import com.mints.goodmoney.manager.UserManager import com.mints.goodmoney.manager.UserManager
import com.mints.goodmoney.mvp.model.DrawcashBean import com.mints.goodmoney.mvp.model.DrawcashBean
import com.mints.goodmoney.mvp.model.UserTaskMsgBean
import com.mints.goodmoney.mvp.model.VedioRulesBean
import com.mints.goodmoney.mvp.model.WXInfo import com.mints.goodmoney.mvp.model.WXInfo
import com.mints.goodmoney.mvp.presenters.DrawcashPresenter import com.mints.goodmoney.mvp.presenters.DrawcashPresenter
import com.mints.goodmoney.mvp.views.DrawcashView import com.mints.goodmoney.mvp.views.DrawcashView
import com.mints.goodmoney.ui.activitys.base.BaseActivity import com.mints.goodmoney.ui.activitys.base.BaseActivity
import com.mints.goodmoney.ui.adapter.DrawcashAdapter import com.mints.goodmoney.ui.adapter.DrawcashAdapter
import com.mints.goodmoney.ui.adapter.listener.OnItemClickListener import com.mints.goodmoney.ui.adapter.listener.OnItemClickListener
import com.mints.goodmoney.ui.fragment.MyFragment
import com.mints.goodmoney.ui.widgets.BindWxDialog
import com.mints.goodmoney.ui.widgets.DrawcashVideoDialog import com.mints.goodmoney.ui.widgets.DrawcashVideoDialog
import com.mints.goodmoney.utils.LogUtil import com.mints.goodmoney.utils.LogUtil
import com.mints.goodmoney.utils.SpanUtils
import com.mints.library.utils.CommonUtils import com.mints.library.utils.CommonUtils
import com.mints.library.utils.json.JsonUtil import com.mints.library.utils.json.JsonUtil
import kotlinx.android.synthetic.main.activity_drawcash.* import kotlinx.android.synthetic.main.activity_drawcash.*
...@@ -188,7 +183,7 @@ class DrawcashActivity : BaseActivity(), ...@@ -188,7 +183,7 @@ class DrawcashActivity : BaseActivity(),
// 修改提现弹窗内容 // 修改提现弹窗内容
if (drawcashVideoDialog != null && drawcashVideoDialog!!.isShowing) { if (drawcashVideoDialog != null && drawcashVideoDialog!!.isShowing) {
drawcashVideoDialog?.setContent("观看视频并点击下载后立即提现(${data.vedioComplete}/${data.cashOutMoneyArr[drawcashAdapter.getPosition()].vedio})") drawcashVideoDialog?.setContent("下载并打开体验后可立即提现(${data.vedioComplete}/${data.cashOutMoneyArr[drawcashAdapter.getPosition()].vedio})")
if (data.vedioComplete >= data.cashOutMoneyArr[drawcashAdapter.getPosition()].vedio) { if (data.vedioComplete >= data.cashOutMoneyArr[drawcashAdapter.getPosition()].vedio) {
drawcashVideoDialog?.setBtnText("去提现") drawcashVideoDialog?.setBtnText("去提现")
} else { } else {
......
...@@ -4,7 +4,9 @@ import android.os.Bundle ...@@ -4,7 +4,9 @@ import android.os.Bundle
import android.os.Handler import android.os.Handler
import android.os.Looper import android.os.Looper
import android.text.TextUtils import android.text.TextUtils
import android.view.Gravity
import android.view.View import android.view.View
import android.widget.FrameLayout
import android.widget.LinearLayout import android.widget.LinearLayout
import androidx.fragment.app.FragmentTransaction import androidx.fragment.app.FragmentTransaction
import com.daimajia.androidanimations.library.Techniques import com.daimajia.androidanimations.library.Techniques
...@@ -228,6 +230,12 @@ class HorizonChannelFragment : BaseFragment(), HorizChannelView, View.OnClickLis ...@@ -228,6 +230,12 @@ class HorizonChannelFragment : BaseFragment(), HorizChannelView, View.OnClickLis
val params = LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT) val params = LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT)
params.setMargins(0, 0, 0, BubbleUtils.dp2px(30)) params.setMargins(0, 0, 0, BubbleUtils.dp2px(30))
cdvvYilanTime.layoutParams = params cdvvYilanTime.layoutParams = params
val paramsRedBox = FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT)
paramsRedBox.setMargins(0, BubbleUtils.dp2px(120), 0, 0)
paramsRedBox.gravity = Gravity.END
rl_fragment_main_redbox.layoutParams = paramsRedBox
cdvvYilanTime.setOnClickListener(this) cdvvYilanTime.setOnClickListener(this)
rl_fragment_main_redbox.setOnClickListener(this) rl_fragment_main_redbox.setOnClickListener(this)
rl_fragment_main_redbox.isClickable = false rl_fragment_main_redbox.isClickable = false
......
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