Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
X
xxsq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
xxsq
Commits
23386ae3
Commit
23386ae3
authored
May 27, 2022
by
王雪伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
5050b9cb
93821478
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
449 additions
and
21 deletions
+449
-21
JgqQyEntity.kt
cms/src/main/java/com/zxhl/cms/net/model/qy/JgqQyEntity.kt
+1
-0
RounterApi.kt
cms/src/main/java/com/zxhl/cms/router/RounterApi.kt
+4
-1
JumpUtils.java
cms/src/main/java/com/zxhl/cms/utils/JumpUtils.java
+9
-0
AndroidManifest.xml
moduleMain/src/main/AndroidManifest.xml
+10
-0
CardVoucherActivity.kt
.../java/com/zxbw/modulemain/activity/CardVoucherActivity.kt
+11
-3
WithDrawalActivity.kt
...n/java/com/zxbw/modulemain/activity/WithDrawalActivity.kt
+23
-0
CardAdapter.kt
.../src/main/java/com/zxbw/modulemain/adapter/CardAdapter.kt
+15
-5
CardVoucherContract.kt
.../java/com/zxbw/modulemain/contract/CardVoucherContract.kt
+3
-1
UserCenterFragment.kt
...n/java/com/zxbw/modulemain/fragment/UserCenterFragment.kt
+2
-2
CardVoucherPresenter.kt
...ava/com/zxbw/modulemain/presenter/CardVoucherPresenter.kt
+15
-0
button_tixiananniu.png
...leMain/src/main/res/drawable-xhdpi/button_tixiananniu.png
+0
-0
shape_333333_r13.xml
moduleMain/src/main/res/drawable/shape_333333_r13.xml
+11
-0
activity_layout_withdrawal.xml
...leMain/src/main/res/layout/activity_layout_withdrawal.xml
+298
-0
item_layout_card.xml
moduleMain/src/main/res/layout/item_layout_card.xml
+47
-9
No files found.
cms/src/main/java/com/zxhl/cms/net/model/qy/JgqQyEntity.kt
View file @
23386ae3
...
@@ -9,4 +9,5 @@ class JgqQyEntity {
...
@@ -9,4 +9,5 @@ class JgqQyEntity {
var
brand
:
String
?
=
""
var
brand
:
String
?
=
""
var
sort
:
String
?
=
""
var
sort
:
String
?
=
""
var
icon
:
String
?
=
""
var
icon
:
String
?
=
""
var
maxDiscount
:
String
?
=
""
}
}
\ No newline at end of file
cms/src/main/java/com/zxhl/cms/router/RounterApi.kt
View file @
23386ae3
...
@@ -206,7 +206,7 @@ interface RounterApi {
...
@@ -206,7 +206,7 @@ interface RounterApi {
@RounterUri
(
Constant
.
scheme
+
"://zero_buy"
)
@RounterUri
(
Constant
.
scheme
+
"://zero_buy"
)
fun
getIntentZeroBuyList
():
Intent
fun
getIntentZeroBuyList
():
Intent
@RounterUri
(
Constant
.
scheme
+
"://tb_goods_detail"
)
@RounterUri
(
Constant
.
scheme
+
"://tb_goods_detail"
)
fun
getIntentTbGoodsDetail
():
Intent
fun
getIntentTbGoodsDetail
():
Intent
@RounterUri
(
Constant
.
scheme
+
"://after_login"
)
@RounterUri
(
Constant
.
scheme
+
"://after_login"
)
...
@@ -255,4 +255,7 @@ interface RounterApi {
...
@@ -255,4 +255,7 @@ interface RounterApi {
@RounterUri
(
Constant
.
scheme
+
"://flashsale"
)
@RounterUri
(
Constant
.
scheme
+
"://flashsale"
)
fun
getIntentFlashSale
():
Intent
fun
getIntentFlashSale
():
Intent
@RounterUri
(
Constant
.
scheme
+
"://withdrawal"
)
fun
getIntentWithdrawal
():
Intent
}
}
\ No newline at end of file
cms/src/main/java/com/zxhl/cms/utils/JumpUtils.java
View file @
23386ae3
...
@@ -378,4 +378,13 @@ public class JumpUtils {
...
@@ -378,4 +378,13 @@ public class JumpUtils {
Utils
.
showToast
(
AppContext
.
get
(),
"该版本暂不支持,请更新版本!"
);
Utils
.
showToast
(
AppContext
.
get
(),
"该版本暂不支持,请更新版本!"
);
}
}
}
}
public
static
void
WithdrawalJump
()
{
try
{
Intent
intent
=
RounterBus
.
getRounter
(
RounterApi
.
class
).
getIntentWithdrawal
();
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
AppContext
.
get
().
startActivity
(
intent
);
}
catch
(
Exception
e
)
{
Utils
.
showToast
(
AppContext
.
get
(),
"该版本暂不支持,请更新版本!"
);
}
}
}
}
moduleMain/src/main/AndroidManifest.xml
View file @
23386ae3
...
@@ -68,7 +68,17 @@
...
@@ -68,7 +68,17 @@
android:scheme=
"xxsq"
/>
android:scheme=
"xxsq"
/>
</intent-filter>
</intent-filter>
</activity>
</activity>
<activity
android:name=
".activity.WithDrawalActivity"
>
<intent-filter>
<action
android:name=
"android.intent.action.VIEW"
/>
<category
android:name=
"android.intent.category.DEFAULT"
/>
<data
android:host=
"withdrawal"
android:scheme=
"xxsq"
/>
</intent-filter>
</activity>
<activity
android:name=
".activity.RightsDetailActivity"
>
<activity
android:name=
".activity.RightsDetailActivity"
>
<intent-filter>
<intent-filter>
<action
android:name=
"android.intent.action.VIEW"
/>
<action
android:name=
"android.intent.action.VIEW"
/>
...
...
moduleMain/src/main/java/com/zxbw/modulemain/activity/CardVoucherActivity.kt
View file @
23386ae3
...
@@ -8,11 +8,12 @@ import com.zxbw.modulemain.contract.CardVoucherContract
...
@@ -8,11 +8,12 @@ import com.zxbw.modulemain.contract.CardVoucherContract
import
com.zxbw.modulemain.presenter.CardVoucherPresenter
import
com.zxbw.modulemain.presenter.CardVoucherPresenter
import
com.zxhl.cms.AppContext
import
com.zxhl.cms.AppContext
import
com.zxhl.cms.common.base.BaseActivity
import
com.zxhl.cms.common.base.BaseActivity
import
com.zxhl.cms.net.model.qy.JgqQyEntity
import
com.zxhl.cms.utils.JumpUtils
import
com.zxhl.cms.utils.JumpUtils
import
com.zxhl.cms.utils.OnRecycleItemClickListener
import
com.zxhl.cms.utils.OnRecycleItemClickListener
import
kotlinx.android.synthetic.main.activity_layout_card_voucher.*
import
kotlinx.android.synthetic.main.activity_layout_card_voucher.*
class
CardVoucherActivity
:
BaseActivity
(),
CardVoucherContract
.
View
,
OnRecycleItemClickListener
<
An
y
>{
class
CardVoucherActivity
:
BaseActivity
(),
CardVoucherContract
.
View
,
OnRecycleItemClickListener
<
JgqQyEntit
y
>{
private
var
mPresenter
:
CardVoucherPresenter
?=
null
private
var
mPresenter
:
CardVoucherPresenter
?=
null
private
var
mAdapter
:
CardAdapter
?=
null
private
var
mAdapter
:
CardAdapter
?=
null
override
fun
onClick
(
v
:
View
?)
{
override
fun
onClick
(
v
:
View
?)
{
...
@@ -37,13 +38,20 @@ class CardVoucherActivity:BaseActivity(),CardVoucherContract.View ,OnRecycleItem
...
@@ -37,13 +38,20 @@ class CardVoucherActivity:BaseActivity(),CardVoucherContract.View ,OnRecycleItem
id_refresh_layout
?.
setOnRefreshListener
{
id_refresh_layout
?.
setOnRefreshListener
{
mPresenter
?.
getCardList
()
mPresenter
?.
getCardList
()
}
}
mPresenter
?.
getCardList
()
}
}
override
fun
setData
()
{
override
fun
setData
(
result
:
List
<
JgqQyEntity
>?)
{
id_refresh_layout
?.
isRefreshing
=
false
mAdapter
?.
clear
()
mAdapter
?.
appendToList
(
result
)
mAdapter
?.
notifyDataSetChanged
()
}
}
override
fun
onItemClick
(
view
:
View
?,
position
:
Int
,
data
:
An
y
?)
{
override
fun
onItemClick
(
view
:
View
?,
position
:
Int
,
data
:
JgqQyEntit
y
?)
{
showToast
(
""
+
position
)
showToast
(
""
+
position
)
JumpUtils
.
CardDetailJump
()
JumpUtils
.
CardDetailJump
()
}
}
...
...
moduleMain/src/main/java/com/zxbw/modulemain/activity/WithDrawalActivity.kt
0 → 100644
View file @
23386ae3
package
com.zxbw.modulemain.activity
import
android.view.View
import
com.zxbw.modulemain.R
import
com.zxhl.cms.AppContext
import
com.zxhl.cms.common.base.BaseActivity
class
WithDrawalActivity
:
BaseActivity
()
{
override
fun
onClick
(
v
:
View
?)
{
}
override
fun
before
()
{
super
.
before
()
setStatusBarBackground
(
AppContext
.
get
().
resources
.
getColor
(
R
.
color
.
transparent
))
}
override
fun
layoutID
():
Int
{
return
R
.
layout
.
activity_layout_withdrawal
}
override
fun
init
()
{
}
}
\ No newline at end of file
moduleMain/src/main/java/com/zxbw/modulemain/adapter/CardAdapter.kt
View file @
23386ae3
package
com.zxbw.modulemain.adapter
package
com.zxbw.modulemain.adapter
import
android.app.Activity
import
android.app.Activity
import
android.graphics.Paint
import
android.view.LayoutInflater
import
android.view.LayoutInflater
import
android.view.View
import
android.view.View
import
android.view.ViewGroup
import
android.view.ViewGroup
...
@@ -10,30 +11,35 @@ import androidx.recyclerview.widget.RecyclerView
...
@@ -10,30 +11,35 @@ import androidx.recyclerview.widget.RecyclerView
import
com.zxbw.modulemain.R
import
com.zxbw.modulemain.R
import
com.zxhl.cms.AppContext
import
com.zxhl.cms.AppContext
import
com.zxhl.cms.common.base.BaseRecyclerAdapter
import
com.zxhl.cms.common.base.BaseRecyclerAdapter
import
com.zxhl.cms.net.model.qy.JgqQyEntity
import
com.zxhl.cms.utils.OnRecycleItemClickListener
import
com.zxhl.cms.utils.OnRecycleItemClickListener
import
com.zxhl.cms.widget.RecycleImageView
import
com.zxhl.cms.widget.RecycleImageView
class
CardAdapter
:
BaseRecyclerAdapter
<
An
y
,
CardAdapter
.
ViewHolder
>
{
class
CardAdapter
:
BaseRecyclerAdapter
<
JgqQyEntit
y
,
CardAdapter
.
ViewHolder
>
{
private
var
mContext
:
Activity
?
=
null
private
var
mContext
:
Activity
?
=
null
private
val
listener
:
OnRecycleItemClickListener
<
An
y
>
private
val
listener
:
OnRecycleItemClickListener
<
JgqQyEntit
y
>
constructor
(
constructor
(
content
:
Activity
?,
content
:
Activity
?,
listener
:
OnRecycleItemClickListener
<
An
y
>
listener
:
OnRecycleItemClickListener
<
JgqQyEntit
y
>
)
:
super
()
{
)
:
super
()
{
mContext
=
content
mContext
=
content
this
.
listener
=
listener
this
.
listener
=
listener
}
}
override
fun
onBindViewHolder
(
holder
:
ViewHolder
,
position
:
Int
)
{
override
fun
onBindViewHolder
(
holder
:
ViewHolder
,
position
:
Int
)
{
var
bean
=
mList
[
position
]
holder
.
id_tv_cards_name
?.
text
=
"${bean.brand}"
holder
.
id_goods_icon
?.
setLoadImageUrl
(
bean
.
icon
,
false
)
holder
.
id_goods_yuan_jia
?.
text
=
""
holder
.
id_tv_guanfang_price
?.
getPaint
()
?.
setFlags
(
Paint
.
STRIKE_THRU_TEXT_FLAG
)
//中划线
holder
.
id_ll_item
?.
setOnClickListener
{
holder
.
id_ll_item
?.
setOnClickListener
{
listener
.
onItemClick
(
it
,
position
,
null
)
listener
.
onItemClick
(
it
,
position
,
null
)
}
}
}
}
override
fun
getItemCount
():
Int
{
override
fun
getItemCount
():
Int
{
return
23
return
mList
.
size
}
}
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
):
ViewHolder
{
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
):
ViewHolder
{
...
@@ -46,7 +52,9 @@ class CardAdapter : BaseRecyclerAdapter<Any, CardAdapter.ViewHolder> {
...
@@ -46,7 +52,9 @@ class CardAdapter : BaseRecyclerAdapter<Any, CardAdapter.ViewHolder> {
class
ViewHolder
:
RecyclerView
.
ViewHolder
{
class
ViewHolder
:
RecyclerView
.
ViewHolder
{
var
id_ll_item
:
LinearLayout
?
var
id_ll_item
:
LinearLayout
?
var
id_img_cards
:
RecycleImageView
?
var
id_img_cards
:
RecycleImageView
?
var
id_goods_icon
:
RecycleImageView
?
var
id_tv_cards_name
:
TextView
?
var
id_tv_cards_name
:
TextView
?
var
id_goods_yuan_jia
:
TextView
?
var
id_tv_card_discount
:
TextView
?
var
id_tv_card_discount
:
TextView
?
var
id_tv_card_price
:
TextView
?
var
id_tv_card_price
:
TextView
?
var
id_tv_guanfang_price
:
TextView
?
var
id_tv_guanfang_price
:
TextView
?
...
@@ -58,7 +66,9 @@ class CardAdapter : BaseRecyclerAdapter<Any, CardAdapter.ViewHolder> {
...
@@ -58,7 +66,9 @@ class CardAdapter : BaseRecyclerAdapter<Any, CardAdapter.ViewHolder> {
id_ll_item
=
id_ll_item
=
itemView
.
findViewById
<
LinearLayout
>(
R
.
id
.
id_ll_item
)
itemView
.
findViewById
<
LinearLayout
>(
R
.
id
.
id_ll_item
)
id_img_cards
=
itemView
.
findViewById
<
RecycleImageView
>(
R
.
id
.
id_img_cards
)
id_img_cards
=
itemView
.
findViewById
<
RecycleImageView
>(
R
.
id
.
id_img_cards
)
id_goods_icon
=
itemView
.
findViewById
<
RecycleImageView
>(
R
.
id
.
id_goods_icon
)
id_tv_cards_name
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_cards_name
)
id_tv_cards_name
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_cards_name
)
id_goods_yuan_jia
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
id_goods_yuan_jia
)
id_tv_card_discount
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_card_discount
)
id_tv_card_discount
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_card_discount
)
id_tv_card_price
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_card_price
)
id_tv_card_price
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_card_price
)
id_tv_guanfang_price
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_guanfang_price
)
id_tv_guanfang_price
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_guanfang_price
)
...
...
moduleMain/src/main/java/com/zxbw/modulemain/contract/CardVoucherContract.kt
View file @
23386ae3
package
com.zxbw.modulemain.contract
package
com.zxbw.modulemain.contract
import
com.zxhl.cms.net.model.qy.JgqQyEntity
class
CardVoucherContract
{
class
CardVoucherContract
{
interface
View
{
interface
View
{
fun
setData
()
fun
setData
(
result
:
List
<
JgqQyEntity
>?
)
}
}
interface
Presenter
{
interface
Presenter
{
...
...
moduleMain/src/main/java/com/zxbw/modulemain/fragment/UserCenterFragment.kt
View file @
23386ae3
...
@@ -32,7 +32,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
...
@@ -32,7 +32,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
JumpUtils
.
webJump
(
"关于我们"
,
NetConfig
.
H5
.
WEB_URL_ABOUT_US
)
JumpUtils
.
webJump
(
"关于我们"
,
NetConfig
.
H5
.
WEB_URL_ABOUT_US
)
}
}
id_ll_login_out
?.
setOnClickListener
{
id_ll_login_out
?.
setOnClickListener
{
showToast
(
"1"
)
}
}
id_ll_xieyi_zhengze
?.
setOnClickListener
{
id_ll_xieyi_zhengze
?.
setOnClickListener
{
JumpUtils
.
webJump
(
"隐私政策"
,
NetConfig
.
H5
.
WEB_URL_PRIVACY
)
JumpUtils
.
webJump
(
"隐私政策"
,
NetConfig
.
H5
.
WEB_URL_PRIVACY
)
...
@@ -44,7 +44,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
...
@@ -44,7 +44,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
JumpUtils
.
FlashSaleJump
()
JumpUtils
.
FlashSaleJump
()
}
}
id_ll_shangwu_hezuo
?.
setOnClickListener
{
id_ll_shangwu_hezuo
?.
setOnClickListener
{
JumpUtils
.
WithdrawalJump
()
}
}
}
}
...
...
moduleMain/src/main/java/com/zxbw/modulemain/presenter/CardVoucherPresenter.kt
View file @
23386ae3
package
com.zxbw.modulemain.presenter
package
com.zxbw.modulemain.presenter
import
com.zxbw.modulemain.contract.CardVoucherContract
import
com.zxbw.modulemain.contract.CardVoucherContract
import
com.zxhl.cms.net.ApiClient
import
com.zxhl.cms.net.RxSchedulers
import
com.zxhl.cms.net.callback.BaseObserver
import
com.zxhl.cms.net.model.qy.JgqQyEntity
class
CardVoucherPresenter
:
CardVoucherContract
.
Presenter
{
class
CardVoucherPresenter
:
CardVoucherContract
.
Presenter
{
private
val
mView
:
CardVoucherContract
.
View
private
val
mView
:
CardVoucherContract
.
View
...
@@ -10,6 +14,17 @@ class CardVoucherPresenter : CardVoucherContract.Presenter {
...
@@ -10,6 +14,17 @@ class CardVoucherPresenter : CardVoucherContract.Presenter {
}
}
override
fun
getCardList
()
{
override
fun
getCardList
()
{
ApiClient
.
homeApi
.
getQyJgqCardList
().
compose
(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
List
<
JgqQyEntity
>>()
{
override
fun
onSuccess
(
result
:
List
<
JgqQyEntity
>?)
{
if
(!
result
.
isNullOrEmpty
()){
mView
.
setData
(
result
)
}
}
override
fun
onFailure
(
e
:
Throwable
?,
code
:
String
?,
errorMsg
:
String
?)
{
}
})
}
}
}
}
\ No newline at end of file
moduleMain/src/main/res/drawable-xhdpi/button_tixiananniu.png
0 → 100644
View file @
23386ae3
26.7 KB
moduleMain/src/main/res/drawable/shape_333333_r13.xml
0 → 100644
View file @
23386ae3
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#ff333333"
/>
<corners
android:bottomLeftRadius=
"14dp"
android:bottomRightRadius=
"14dp"
android:topLeftRadius=
"14dp"
android:topRightRadius=
"14dp"
/>
</shape>
\ No newline at end of file
moduleMain/src/main/res/layout/activity_layout_withdrawal.xml
0 → 100644
View file @
23386ae3
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#F3F4F5"
android:orientation=
"vertical"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"68dp"
android:background=
"@color/white"
>
<ImageView
android:id=
"@+id/id_img_back"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:padding=
"16dp"
android:src=
"@drawable/icon_fanhui"
/>
<TextView
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_333333"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
</RelativeLayout>
<androidx.core.widget.NestedScrollView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:layout_marginBottom=
"10dp"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:paddingTop=
"12dp"
android:paddingBottom=
"12dp"
>
<TextView
android:layout_width=
"60dp"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:text=
"可提现至"
android:textColor=
"@color/color_333333"
android:textSize=
"14sp"
android:textStyle=
"bold"
/>
<EditText
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"20dp"
android:layout_marginRight=
"16dp"
android:layout_weight=
"1"
android:background=
"@null"
android:hint=
"请输入支付宝账号"
android:textColor=
"@color/color_333333"
android:textColorHint=
"@color/color_999999"
android:textSize=
"12sp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:layout_marginBottom=
"10dp"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:paddingTop=
"12dp"
android:paddingBottom=
"12dp"
>
<TextView
android:layout_width=
"60dp"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:text=
"姓名"
android:textColor=
"@color/color_333333"
android:textSize=
"14sp"
android:textStyle=
"bold"
/>
<EditText
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"20dp"
android:layout_marginRight=
"16dp"
android:layout_weight=
"1"
android:background=
"@null"
android:hint=
"请输入真实姓名"
android:textColor=
"@color/color_333333"
android:textColorHint=
"@color/color_999999"
android:textSize=
"12sp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:paddingTop=
"12dp"
android:paddingBottom=
"12dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:layout_weight=
"1"
android:text=
"提现金额"
android:textColor=
"@color/color_333333"
android:textSize=
"14sp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"16dp"
android:text=
"提现金额不能低于 ¥ 5"
android:textColor=
"#C46B00"
android:textSize=
"12sp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
android:gravity=
"center_vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:text=
"¥"
android:textColor=
"@color/color_333333"
android:textSize=
"28sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:text=
"0"
android:textColor=
"@color/color_333333"
android:textSize=
"28sp"
android:textStyle=
"bold"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"15dp"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:layout_weight=
"1"
android:text=
"可提现余额 ¥ 0.00"
android:textColor=
"@color/color_999999"
android:textSize=
"12sp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"16dp"
android:text=
"全部提现"
android:textColor=
"#C46B00"
android:textSize=
"14sp"
android:textStyle=
"bold"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:paddingTop=
"12dp"
android:paddingBottom=
"12dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:layout_marginRight=
"34dp"
android:text=
"验证码"
android:textColor=
"@color/color_333333"
android:textSize=
"14sp"
/>
<EditText
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:background=
"@null"
android:hint=
"请输入验证码"
android:textColor=
"@color/color_333333"
android:textColorHint=
"@color/color_999999"
android:textSize=
"12sp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:layout_marginRight=
"16dp"
android:background=
"@drawable/shape_333333_r13"
android:paddingLeft=
"14dp"
android:paddingTop=
"5dp"
android:paddingRight=
"14dp"
android:paddingBottom=
"5dp"
android:text=
"获取验证码"
android:textColor=
"#F8E8CC"
android:textSize=
"12sp"
/>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"36dp"
android:layout_marginBottom=
"20dp"
android:background=
"@drawable/button_tixiananniu"
android:gravity=
"center"
android:text=
"提现"
android:textColor=
"#FDDFA5"
android:textSize=
"14sp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:text=
"提现规则:"
android:textColor=
"@color/color_333333"
android:textSize=
"14sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:layout_marginTop=
"10dp"
android:layout_marginRight=
"16dp"
android:text=
"提现需要收取1%的手续费,单比服务费小于1元的,按照1元收取。"
android:textColor=
"@color/color_666666"
android:textSize=
"12sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:layout_marginTop=
"10dp"
android:layout_marginRight=
"16dp"
android:text=
"例如:若您需要提现200元,您需要支付1%的手续费,即2元的手续费。"
android:textColor=
"@color/color_666666"
android:textSize=
"12sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:layout_marginTop=
"20dp"
android:layout_marginRight=
"16dp"
android:text=
"注意事项:"
android:textColor=
"@color/color_333333"
android:textSize=
"14sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:layout_marginTop=
"10dp"
android:layout_marginRight=
"16dp"
android:text=
"1、提现需要收取1%的手续费,单比服务费小于1元的,按照1元收取。\n2、不同银行的提现需要收取1%的手续费,单比服务费小于1元的按照1元收取。"
android:textColor=
"@color/color_666666"
android:textSize=
"12sp"
android:textStyle=
"bold"
/>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>
moduleMain/src/main/res/layout/item_layout_card.xml
View file @
23386ae3
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/id_ll_item"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:layout_marginLeft=
"16dp"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
android:layout_marginRight=
"16dp"
android:layout_marginRight=
"16dp"
android:background=
"@drawable/shape_ffffff_r10"
android:background=
"@drawable/shape_ffffff_r10"
android:id=
"@+id/id_ll_item"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<
com.zxhl.cms.widget.RecycleImageView
<
RelativeLayout
android:id=
"@+id/id_
img_cards
"
android:id=
"@+id/id_
rl_bg
"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"10dp"
android:padding=
"10dp"
>
android:background=
"@drawable/img_daijinquan"
/>
<com.zxhl.cms.widget.RecycleImageView
android:id=
"@+id/id_img_cards"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/img_daijinquan"
/>
<com.zxhl.cms.widget.RecycleImageView
android:id=
"@+id/id_goods_icon"
android:layout_width=
"12dp"
android:layout_height=
"12dp"
android:layout_margin=
"8dp"
android:src=
"@drawable/icon_huangse"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignBottom=
"@+id/id_img_cards"
android:layout_marginLeft=
"50dp"
android:layout_marginBottom=
"8dp"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/id_goods_yuan_jia"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"0"
android:textColor=
"@color/white"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"元"
android:textColor=
"@color/white"
android:textSize=
"10sp"
android:textStyle=
"bold"
/>
</LinearLayout>
</RelativeLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -26,8 +64,8 @@
...
@@ -26,8 +64,8 @@
android:id=
"@+id/id_tv_cards_name"
android:id=
"@+id/id_tv_cards_name"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"猫眼电影5元代金券"
android:layout_marginTop=
"9dp"
android:layout_marginTop=
"9dp"
android:text=
"猫眼电影5元代金券"
android:textColor=
"@color/color_333333"
android:textColor=
"@color/color_333333"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
...
@@ -35,9 +73,9 @@
...
@@ -35,9 +73,9 @@
android:id=
"@+id/id_tv_card_discount"
android:id=
"@+id/id_tv_card_discount"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_edd49d_r4"
android:layout_marginBottom=
"8dp"
android:layout_marginTop=
"4dp"
android:layout_marginTop=
"4dp"
android:layout_marginBottom=
"8dp"
android:background=
"@drawable/shape_edd49d_r4"
android:paddingLeft=
"6dp"
android:paddingLeft=
"6dp"
android:paddingTop=
"2dp"
android:paddingTop=
"2dp"
android:paddingRight=
"6dp"
android:paddingRight=
"6dp"
...
@@ -73,8 +111,8 @@
...
@@ -73,8 +111,8 @@
android:id=
"@+id/id_tv_guanfang_price"
android:id=
"@+id/id_tv_guanfang_price"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"官方价 ¥5元"
android:layout_marginLeft=
"10dp"
android:layout_marginLeft=
"10dp"
android:text=
"官方价 ¥5元"
android:textColor=
"@color/color_999999"
android:textColor=
"@color/color_999999"
android:textSize=
"10sp"
/>
android:textSize=
"10sp"
/>
</LinearLayout>
</LinearLayout>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment