Commit 3edf7515 authored by jyx's avatar jyx

更新我的页面样式

parent 916b59c3
......@@ -10,6 +10,16 @@ public class IndexList implements Serializable {
private List<VedioEpisodeBean> list;
private ArrayList<String> tip;
private UserBean.UserMsgBean userMsg;
public UserBean.UserMsgBean getUserMsg() {
return userMsg;
}
public void setUserMsg(UserBean.UserMsgBean userMsg) {
this.userMsg = userMsg;
}
public ArrayList<String> getTip() {
return tip;
}
......
package com.duben.dayplaylet.mvp.model
import com.duben.dayplaylet.mvp.model.UserBean.UserMsgBean
data class MusicBean(
val completeCount: Int, //完成的次数(这里的次数不包括翻倍)
val nextIsAd: Boolean, //接下来是不是要看广告了
val openCash: Boolean, //还能不能提现,不能提现就不展示提现入口了
val turnNeedCount: Int //提现需要的次数
val turnNeedCount: Int, //提现需要的次数
val userMsg: UserMsgBean? = null
)
\ No newline at end of file
package com.duben.dayplaylet.mvp.presenters
import com.duben.dayplaylet.mvp.views.DrawCashView
class DrawCashPresenter : BasePresenter<DrawCashView>() {
}
\ No newline at end of file
package com.duben.dayplaylet.mvp.views
interface DrawCashView : BaseView {
}
\ No newline at end of file
......@@ -32,9 +32,7 @@ class MainActivity : BaseActivity(), View.OnClickListener {
private var myFragment: Fragment? = null
private var currentFragment: Fragment? = null
override fun getContentViewLayoutID(): Int {
return R.layout.activity_main
}
override fun getContentViewLayoutID() = R.layout.activity_main
override fun initViewsAndEvents() {
DPHolderManager.initDpSdk(MintsApplication.getContext());
......
......@@ -279,7 +279,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
this.userInfo = user.userMsg
UserManager.getInstance().saveUserInfo(user)
tv_cash.text = "${FormatUtil.getCashFormaet(user.userMsg.rewardCoin)}元"
tv_cash.text = "${FormatUtil.getCashFormaet(user.userMsg.coin)}元"
tv_gold.text = "${user.userMsg.diamonds}个"
// 新人红包只执行一次
......@@ -510,12 +510,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
*/
private fun addAnimation(view: View, targetView: View, pic: Int) {
val goods = ImageView(requireContext())
goods.setImageDrawable(
resources.getDrawable(
pic,
null
)
)
goods.setImageDrawable(resources.getDrawable(pic, null))
val params = ConstraintLayout.LayoutParams(BubbleUtils.dp2px(30), BubbleUtils.dp2px(30))
rl.addView(goods, params)
val parentLocation = IntArray(2)
......
......@@ -41,6 +41,7 @@ import com.duben.dayplaylet.ui.activitys.SongAwardActivity
import com.duben.dayplaylet.ui.fragment.base.LazyLoadBaseFragment
import com.duben.dayplaylet.ui.widgets.countdowntimer.CountDownTimerSupport
import com.duben.dayplaylet.ui.widgets.countdowntimer.OnCountDownTimerListener
import com.duben.dayplaylet.utils.FormatUtil
import com.duben.dayplaylet.utils.LogUtil
import com.duben.dayplaylet.utils.RxBus
import com.duben.dayplaylet.utils.RxBus.MsgEvent
......@@ -72,6 +73,9 @@ class MusicFragment : LazyLoadBaseFragment(), MusicView {
private var mTimer: CountDownTimerSupport? = null
private var rope: YoYoString? = null
private var mCash = 0
private var mGold = 0
private var mPos = 0
override fun getContentViewLayoutID() = R.layout.fragment_music
......@@ -514,6 +518,12 @@ class MusicFragment : LazyLoadBaseFragment(), MusicView {
mMusicBean = data
mMusicBean?.let {
mCash = it.userMsg?.coin ?: 0
mGold = it.userMsg?.diamonds ?: 0
tv_cash.text = "${FormatUtil.getCashFormaet(mCash)}元"
tv_gold.text = "${mGold}个"
if (it.openCash) {
rl_open_cash.visibility = View.VISIBLE
tv_open_cash_progress.text =
......@@ -556,6 +566,12 @@ class MusicFragment : LazyLoadBaseFragment(), MusicView {
private fun showRewardAnim(cashReward: Int, goldReward: Int) {
if (cashReward <= 0 && goldReward <= 0) return
mCash += cashReward
mGold += goldReward
tv_cash.text = "${FormatUtil.getCashFormaet(mCash)}元"
tv_gold.text = "${mGold}个"
cl_reward.visibility = View.VISIBLE
iv_cash_reward.visibility = View.VISIBLE
tv_cash_reward.visibility = View.VISIBLE
......@@ -618,7 +634,6 @@ class MusicFragment : LazyLoadBaseFragment(), MusicView {
SongAwardActivity.ACTIVITY_REQUEST_CODE,
bundle
)
// showRewardAnim(coin, di)
}
Constant.CARRIERTYPE_SONG_ALL -> {
showRewardAnim(coin, di)
......
......@@ -5,7 +5,6 @@ import android.os.Handler
import android.os.Looper
import android.text.TextUtils
import android.view.View
import com.duben.dayplaylet.MintsApplication
import com.duben.dayplaylet.R
import com.duben.dayplaylet.ad.AdManager
import com.duben.dayplaylet.ad.AdStatusListener
......@@ -25,6 +24,7 @@ import com.duben.dayplaylet.ui.adapter.TasksAdapter
import com.duben.dayplaylet.ui.fragment.base.LazyLoadBaseFragment
import com.duben.dayplaylet.ui.fragment.draw.DrawCashDialog
import com.duben.dayplaylet.utils.ConsumerToastUtil
import com.duben.dayplaylet.utils.FormatUtil
import com.duben.dayplaylet.utils.SpanUtils
import com.duben.library.utils.nodoubleclick.AntiShake
import kotlinx.android.synthetic.main.fragment_main_my.*
......@@ -135,22 +135,34 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
override fun getUserSuc(data: UserBean) {
tv_my_id.text = "用户ID:${data.userMsg.idcode}"
tv_my_money.text = SpanUtils()
.append(FormatUtil.getCashFormaet(UserManager.getInstance().redpkg))
.setFontSize(40, true)
.append(" ≈ ${UserManager.getInstance().redpkg}个")
.setFontSize(14, true)
.create()
}
override fun getHallListSuc(data: TaskInfoBean) {
tasksAdapter?.taskData = data.list
recy_tasks.adapter?.notifyDataSetChanged()
tv_task_count.text = SpanUtils()
.append("今日剩余")
.setForegroundColor(mContext.resources.getColor(R.color.title_bg))
.append((data.diMsg.max - data.diMsg.complete).toString())
.setForegroundColor(mContext.resources.getColor(R.color.red))
.append("次")
.setForegroundColor(mContext.resources.getColor(R.color.title_bg))
if (rb_my_cash.isChecked) {
tv_my_money.text = SpanUtils()
.append(FormatUtil.getCashFormaet(UserManager.getInstance().redpkg))
.setFontSize(40, true)
.append(" ≈ ${UserManager.getInstance().redpkg}个")
.setFontSize(14, true)
.create()
pb_task.max = data.diMsg.max
pb_task.progress = data.diMsg.complete
} else {
tv_my_money.text = SpanUtils()
.append("" + UserManager.getInstance().yuanbao)
.setFontSize(40, true)
.append(" ≈ ${FormatUtil.getCashFormaet(UserManager.getInstance().yuanbao)}元")
.setFontSize(14, true)
.create()
}
}
private fun initListener() {
......@@ -165,20 +177,20 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
tv_my_gold.visibility = View.INVISIBLE
tv_my_title.text = "红包余额(元)"
tv_my_money.text = SpanUtils()
.setFontSize(30, true)
.append(" ")
.append(FormatUtil.getCashFormaet(UserManager.getInstance().redpkg))
.setFontSize(40, true)
.append(" ≈ ${UserManager.getInstance().redpkg}个")
.setFontSize(14, true)
.append(" ≈ ")
.create()
} else {
tv_my_cash.visibility = View.INVISIBLE
tv_my_gold.visibility = View.VISIBLE
tv_my_title.text = "金元宝余额(个)"
tv_my_money.text = SpanUtils()
.setFontSize(30, true)
.append(" ")
.append("" + UserManager.getInstance().yuanbao)
.setFontSize(40, true)
.append(" ≈ ${FormatUtil.getCashFormaet(UserManager.getInstance().yuanbao)}元")
.setFontSize(14, true)
.append(" ≈ ")
.create()
}
}
......
package com.duben.dayplaylet.ui.fragment.draw
import android.os.Bundle
import android.text.Spannable
import android.text.style.ImageSpan
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.duben.dayplaylet.R
import com.duben.dayplaylet.ui.fragment.base.BaseFragment
import com.duben.dayplaylet.mvp.presenters.DrawCashPresenter
import com.duben.dayplaylet.mvp.views.DrawCashView
import com.duben.dayplaylet.ui.fragment.base.LazyLoadBaseFragment
import com.duben.dayplaylet.utils.SpanUtils
import com.duben.dayplaylet.utils.SpanUtils.ALIGN_BASELINE
import kotlinx.android.synthetic.main.fragment_draw.*
/**
* 提现
*/
class DrawCashFragment : LazyLoadBaseFragment() {
class DrawCashFragment : LazyLoadBaseFragment(), DrawCashView {
companion object {
......@@ -34,6 +31,8 @@ class DrawCashFragment : LazyLoadBaseFragment() {
}
}
private val drawCashPresenter by lazy { DrawCashPresenter() }
private var drawType = DRAW_TYPE_CASH
private var mDrawCashData = arrayListOf<String>()
......@@ -42,6 +41,8 @@ class DrawCashFragment : LazyLoadBaseFragment() {
override fun getContentViewLayoutID() = R.layout.fragment_draw
override fun initViewsAndEvents() {
drawCashPresenter.attachView(this)
arguments?.let {
drawType = it.getInt(DRAW_TYPE, DRAW_TYPE_CASH)
}
......@@ -59,17 +60,17 @@ class DrawCashFragment : LazyLoadBaseFragment() {
tv_title.text = "红包余额(元)"
tv_cash.text = SpanUtils()
.append("90.00")
.setFontSize(30, true)
.setFontSize(28, true)
.append("≈ 900000个")
.setFontSize(16, true)
.setFontSize(20, true)
.create()
} else {
tv_title.text = "金元宝余额(个)"
tv_cash.text = SpanUtils()
.append("90.00")
.setFontSize(30, true)
.setFontSize(28, true)
.append("≈ 0.00元")
.setFontSize(16, true)
.setFontSize(20, true)
.create()
}
}
......
......@@ -24,8 +24,7 @@ class VideoRewardDialog(
context: Context,
currentCash: Float,
listener: DialogListener
) :
Dialog(context, R.style.dialog) {
) : Dialog(context, R.style.dialog) {
private val lp: WindowManager.LayoutParams
......@@ -63,7 +62,7 @@ class VideoRewardDialog(
tvInfo.text = SpanUtils()
.append("还差")
.append("${currentCash}元")
.append("${(100f - currentCash)}元")
.setForegroundColor(ContextCompat.getColor(context, R.color.red))
.append("即可提现")
.append("100元")
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/color_F9F9F9" />
<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">
<solid android:color="#f9f9f9" />
<corners android:radius="9dp" />
<solid android:color="@color/white" />
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
......@@ -2,7 +2,7 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Non focused states -->
<item android:color="@color/main_mints" android:state_selected="true" />
<item android:color="@color/color_FA6013" android:state_selected="true" />
<item android:color="@color/black" android:state_selected="false" />
</selector>
\ No newline at end of file
......@@ -3,7 +3,7 @@
<item android:id="@android:id/background">
<shape>
<corners android:radius="30dp" />
<solid android:color="#FFE9E9" />
<solid android:color="@color/color_A24240" />
</shape>
</item>
<item android:id="@android:id/secondaryProgress">
......
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/ic_withdraw_wx_selected" android:state_checked="true" />
<item android:drawable="@mipmap/ic_withdraw_wx_unselected" android:state_checked="false" />
</selector>
\ 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="@mipmap/ic_withdraw_zfb_selected" android:state_checked="true" />
<item android:drawable="@mipmap/ic_withdraw_zfb_unselected" android:state_checked="false" />
</selector>
\ No newline at end of file
......@@ -8,6 +8,6 @@
<solid android:color="@color/white" />
<!-- 设置按钮的四个角为弧形 -->
<!-- android:radius 弧形的半径 -->
<corners android:radius="5dip" />
<corners android:radius="8dip" />
</shape>
\ No newline at end of file
......@@ -9,6 +9,6 @@
<solid android:color="@color/white" />
<!-- 设置按钮的四个角为弧形 -->
<!-- android:radius 弧形的半径 -->
<corners android:radius="5dip" />
<corners android:radius="8dip" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners
android:bottomLeftRadius="30dp"
android:topLeftRadius="30dp" />
<solid android:color="@color/color_30FFFFFFF" />
</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="@color/color_FDE7CF" />
<!-- 设置按钮的四个角为弧形 -->
<!-- android:radius 弧形的半径 -->
<corners android:radius="20dip" />
</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">
<!-- android:radius 弧形的半径 -->
<corners android:radius="30dip" />
<gradient
android:endColor="#FE6704"
android:startColor="#FFC123" />
</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="@mipmap/ic_my_enable" android:state_selected="true" />
<item android:drawable="@mipmap/ic_my_none" />
<item android:drawable="@mipmap/ic_main_enable" android:state_selected="true" />
<item android:drawable="@mipmap/ic_main_none" />
</selector>
\ 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="@mipmap/ic_my_enable" android:state_selected="true" />
<item android:drawable="@mipmap/ic_my_none" />
<item android:drawable="@mipmap/ic_music_enable" android:state_selected="true" />
<item android:drawable="@mipmap/ic_music_none" />
</selector>
\ 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="@mipmap/ic_my_enable" android:state_selected="true" />
<item android:drawable="@mipmap/ic_my_none" />
<item android:drawable="@mipmap/ic_withdraw_enable" android:state_selected="true" />
<item android:drawable="@mipmap/ic_withdraw_none" />
</selector>
\ 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="@mipmap/ic_my_enable" android:state_selected="true" />
<item android:drawable="@mipmap/ic_my_none" />
<item android:drawable="@mipmap/ic_redpkg_enable" android:state_selected="true" />
<item android:drawable="@mipmap/ic_redpkg_none" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/block_view"
android:layout_width="match_parent"
android:layout_height="match_parent">
......@@ -10,123 +9,45 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@id/ll"
android:layout_marginEnd="30dp"
android:background="@mipmap/ic_close_circle" />
<RelativeLayout
android:id="@+id/ll"
android:layout_width="280dp"
android:layout_height="344dp"
android:layout_width="340dp"
android:layout_height="340dp"
android:layout_below="@id/ib_close"
android:layout_centerHorizontal="true"
android:background="@mipmap/bg_circle_red">
<ImageView
android:id="@+id/iv_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp"
android:layout_marginTop="60dp"
android:src="@mipmap/ic_launcher_main" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/iv_logo"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20dp">
<TextView
android:id="@+id/tv_info1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="10"
android:textColor="@color/color_FFFC9F"
android:textSize="70sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/tv_info2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="18dp"
android:text="元"
android:textColor="@color/color_FFFC9F"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/tv_info1" />
<TextView
android:id="@+id/tv_info3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18sp"
android:text="最高"
android:textColor="@color/btn_enabled"
android:textSize="16sp"
app:layout_constraintStart_toEndOf="@id/tv_info1"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/unlock"
android:layout_centerHorizontal="true"
android:layout_marginBottom="10dp"
android:background="@drawable/shape_half_trans"
android:paddingStart="16dp"
android:paddingTop="2dp"
android:paddingEnd="16dp"
android:paddingBottom="2dp"
android:text="领取追剧奖励"
android:textColor="@color/color_FFFC9F" />
<Button
android:id="@+id/unlock"
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_above="@id/tv_bottom"
<ImageView
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="6dp"
android:background="@mipmap/btn_open_red" />
android:layout_marginBottom="58dp"
android:src="@mipmap/ic_envelope_video" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/lav"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_alignEnd="@id/unlock"
android:layout_alignBottom="@id/unlock"
android:layout_marginEnd="-20dp"
android:layout_marginBottom="-20dp" />
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignBottom="@id/unlock"
android:layout_centerHorizontal="true"
android:layout_marginBottom="6dp"
android:src="@mipmap/ic_envelope_video" />
<TextView
android:id="@+id/tv_bottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="15dp"
android:text="看的越多,赚的越多"
android:textColor="@color/color_FFFC9F" />
android:layout_marginStart="160dp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="290dp"
android:layout_height="80dp"
android:layout_width="260dp"
android:layout_height="70dp"
android:layout_below="@id/ll"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
......@@ -137,17 +58,17 @@
android:id="@+id/tv_progress_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginTop="2dp"
android:textColor="@color/black"
android:textSize="16sp" />
android:textSize="14sp" />
<ProgressBar
android:id="@+id/pb"
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="20dp"
android:layout_height="16dp"
android:layout_alignParentBottom="true"
android:layout_marginEnd="36dp"
android:layout_marginEnd="46dp"
android:layout_marginBottom="2dp"
android:max="100"
android:progress="50"
......@@ -163,7 +84,7 @@
android:gravity="center"
android:text="10/100"
android:textColor="@color/white"
android:textSize="16sp" />
android:textSize="12sp" />
<ImageView
android:layout_width="51dp"
......
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#77090909">
......@@ -110,4 +112,76 @@
</FrameLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_reward"
android:layout_width="match_parent"
android:layout_height="260dp"
android:layout_gravity="center"
android:layout_marginStart="40dp"
android:layout_marginEnd="40dp"
android:background="@drawable/shape_half_trans"
android:visibility="gone">
<TextView
android:id="@+id/tv_reward"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:drawablePadding="15dp"
android:text="恭喜获得"
android:textColor="@color/white"
android:textSize="22sp"
app:drawableEndCompat="@mipmap/vs_icon_anim_star"
app:drawableStartCompat="@mipmap/vs_icon_anim_star"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/iv_cash_reward"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="20dp"
android:src="@mipmap/ic_redpkg"
app:layout_constraintEnd_toStartOf="@id/iv_gold_reward"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_reward" />
<ImageView
android:id="@+id/iv_gold_reward"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_marginStart="20dp"
android:layout_marginTop="40dp"
android:src="@mipmap/ic_yuanbao"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/iv_cash_reward"
app:layout_constraintTop_toBottomOf="@id/tv_reward" />
<TextView
android:id="@+id/tv_cash_reward"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="+5"
android:textColor="@color/red"
android:textSize="30sp"
app:layout_constraintEnd_toEndOf="@id/iv_cash_reward"
app:layout_constraintStart_toStartOf="@id/iv_cash_reward"
app:layout_constraintTop_toBottomOf="@id/iv_cash_reward" />
<TextView
android:id="@+id/tv_gold_reward"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="+5"
android:textColor="@color/red"
android:textSize="30sp"
app:layout_constraintEnd_toEndOf="@id/iv_gold_reward"
app:layout_constraintStart_toStartOf="@id/iv_gold_reward"
app:layout_constraintTop_toBottomOf="@id/iv_gold_reward" />
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>
\ No newline at end of file
......@@ -4,28 +4,43 @@
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
android:layout_marginStart="12dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="12dp"
android:background="@drawable/shape_withdraw_half"
android:padding="6dp">
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_10"
android:layout_marginTop="10dp"
android:text="红包余额(元)" />
<TextView
android:id="@+id/tv_cash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_below="@id/tv_title"
android:layout_marginStart="@dimen/dp_10"
android:layout_marginTop="6dp"
android:text="90.00 ≈ 900000个"
android:textColor="@color/black"
android:textSize="20sp" />
</LinearLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/dp_10"
android:src="@mipmap/ic_withdraw_pop" />
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/ry_draw"
......@@ -43,9 +58,11 @@
<RadioGroup
android:id="@+id/rg_draw"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_height="46dp"
android:layout_marginTop="10dp"
android:orientation="horizontal"
android:padding="10dp">
android:paddingStart="15dp"
android:paddingEnd="15dp">
<RadioButton
android:id="@+id/rb_wechat"
......@@ -53,31 +70,19 @@
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/dp_10"
android:layout_weight="1"
android:background="@drawable/shape_draw_adapter_none"
android:background="@drawable/selector_withdraw_wx"
android:button="@null"
android:checked="true"
android:drawableStart="@mipmap/withdraw_wx"
android:drawableEnd="@drawable/selector_withdraw"
android:gravity="start|center_vertical"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text=" 微信" />
android:checked="true" />
<RadioButton
android:id="@+id/rb_alipay"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/dp_10"
android:layout_marginStart="@dimen/dp_10"
android:layout_weight="1"
android:background="@drawable/shape_draw_adapter_none"
android:background="@drawable/selector_withdraw_zfb"
android:button="@null"
android:checked="false"
android:drawableStart="@mipmap/withdraw_zfb"
android:drawableEnd="@drawable/selector_withdraw"
android:gravity="start|center_vertical"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text=" 支付宝" />
android:checked="false" />
</RadioGroup>
......@@ -85,9 +90,16 @@
android:id="@+id/btn_draw"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_10"
android:layout_marginStart="15dp"
android:layout_marginTop="@dimen/dp_10"
android:layout_marginEnd="@dimen/dp_10"
android:text="去提现" />
android:layout_marginEnd="15dp"
android:background="@drawable/shape_withdraw_half"
android:text="去提现"
android:textColor="@color/white"
android:textSize="@dimen/font_size_16" />
<View
android:layout_width="wrap_content"
android:layout_height="6dp" />
</LinearLayout>
\ No newline at end of file
......@@ -34,7 +34,9 @@
android:layout_height="14dp"
android:layout_alignBottom="@id/iv_open_cash"
android:layout_centerHorizontal="true"
android:padding="1dp"
android:layout_marginBottom="22dp"
android:background="@drawable/shape_write"
android:progressDrawable="@drawable/progressbar_versus_changevedio_bg" />
<TextView
......
......@@ -10,10 +10,11 @@
android:id="@+id/tv_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/ic_vip_lable"
android:background="@mipmap/ic_withdraw_label"
android:gravity="center"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:text="新人福利"
android:textColor="@color/white"
android:textSize="10sp" />
......@@ -23,6 +24,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="0.3元"
android:textColor="@color/black"
android:textSize="16sp"
android:textStyle="bold" />
......
......@@ -5,16 +5,13 @@
android:id="@+id/ll_task_root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:background="@drawable/bg_task_list"
android:background="@drawable/bg_task_item"
android:orientation="horizontal"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingTop="16dp"
android:paddingBottom="16dp"
>
android:paddingRight="10dp"
android:paddingBottom="16dp">
<LinearLayout
android:layout_width="0dp"
......
......@@ -33,8 +33,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="30dp"
android:gravity="center"
android:maxWidth="60dp"
android:minWidth="40dp"
android:maxWidth="66dp"
android:minWidth="50dp"
android:textColor="@color/white"
android:textSize="14sp" />
......@@ -43,7 +43,7 @@
android:layout_width="50dp"
android:layout_height="26dp"
android:layout_marginEnd="6dp"
android:background="@drawable/shape_green"
android:background="@drawable/shape_withdraw_header"
android:text="@string/draw_cash"
android:textColor="@color/white"
android:textSize="15sp" />
......@@ -79,8 +79,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="30dp"
android:gravity="center"
android:maxWidth="60dp"
android:minWidth="40dp"
android:maxWidth="66dp"
android:minWidth="50dp"
android:text="-"
android:textColor="@color/white"
android:textSize="14sp" />
......@@ -90,7 +90,7 @@
android:layout_width="50dp"
android:layout_height="26dp"
android:layout_marginEnd="6dp"
android:background="@drawable/shape_green"
android:background="@drawable/shape_withdraw_header"
android:text="@string/draw_cash"
android:textColor="@color/white"
android:textSize="15sp" />
......
......@@ -45,7 +45,7 @@
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:paddingBottom="5dp"
android:textColor="@color/main_mints"
android:textColor="@color/color_3F2F8F"
android:textStyle="bold"
tools:text="心太软" />
......@@ -88,7 +88,7 @@
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:paddingBottom="5dp"
android:textColor="@color/main_mints"
android:textColor="@color/color_3F2F8F"
android:textStyle="bold"
tools:text="伤心太平洋" />
......
video/app/src/main/res/mipmap-xhdpi/bg_circle_red.png

98.3 KB | W: | H:

video/app/src/main/res/mipmap-xhdpi/bg_circle_red.png

416 KB | W: | H:

video/app/src/main/res/mipmap-xhdpi/bg_circle_red.png
video/app/src/main/res/mipmap-xhdpi/bg_circle_red.png
video/app/src/main/res/mipmap-xhdpi/bg_circle_red.png
video/app/src/main/res/mipmap-xhdpi/bg_circle_red.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -6,11 +6,12 @@
<color name="black">#000000</color>
<color name="gray">#808080</color>
<color name="green">#09BB07</color>
<color name="red">#FC3629</color>
<color name="red">#f00</color>
<color name="graya">#AAAAAA</color>
<color name="full_transparent">#00000000</color>
<color name="half_transparent">#80000000</color>
<color name="color_20000000">#10000000</color>
<color name="color_30FFFFFFF">#4DFFFFFF</color>
<color name="color_30_trans">#4D000000</color>
<color name="title_bg">#2B3238</color>
<color name="btn_enabled">#F1F2F8</color>
......@@ -24,7 +25,13 @@
<color name="color_F61F03">#FD563B</color>
<color name="color_3F2F8F">#3F2F8F</color>
<color name="color_F9F9F9">#F9F9F9</color>
<color name="color_FDE7CF">#FDE7CF</color>
<color name="color_fea54c">#fea54c</color>
<color name="color_F1533A">#F1533A</color>
<color name="color_D78E0C">#D78E0C</color>
<color name="color_FA6013">#FA6013</color>
<color name="color_FFFC9F">#FFFC9F</color>
<color name="color_8D8F90">#7F8182</color>
......
......@@ -16,7 +16,7 @@
<string name="update_load">正在下载</string>
<string name="update_app">APP更新</string>
<string name="bottom_tab_main">福利</string>
<string name="bottom_tab_main">刷剧</string>
<string name="bottom_tab_music">猜歌</string>
<string name="bottom_tab_redpkg">红包</string>
<string name="bottom_tab_my">提现</string>
......
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