Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
7cb2a3c6
Commit
7cb2a3c6
authored
Jul 20, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
钱包
parent
f94f0ce6
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
1258 additions
and
9 deletions
+1258
-9
colors.xml
RvWrapper/src/main/res/values/colors.xml
+2
-0
AndroidManifest.xml
plugin_wallet/src/main/AndroidManifest.xml
+2
-1
CashWithdrawalDetailsActivity.java
...m/xxrv/wallet/activity/CashWithdrawalDetailsActivity.java
+38
-0
WalletActivity.java
...rc/main/java/com/xxrv/wallet/activity/WalletActivity.java
+1
-0
WithdrawActivity.java
.../main/java/com/xxrv/wallet/activity/WithdrawActivity.java
+91
-3
PayPassDialog.java
...t/src/main/java/com/xxrv/wallet/dialog/PayPassDialog.java
+151
-0
VerifyAccountHintDialog.java
.../java/com/xxrv/wallet/dialog/VerifyAccountHintDialog.java
+25
-0
PayPassView.java
...allet/src/main/java/com/xxrv/wallet/view/PayPassView.java
+279
-0
dialog_payview_in.xml
plugin_wallet/src/main/res/anim/dialog_payview_in.xml
+11
-0
dialog_payview_out.xml
plugin_wallet/src/main/res/anim/dialog_payview_out.xml
+11
-0
ic_pay_close.png
plugin_wallet/src/main/res/drawable-xxhdpi/ic_pay_close.png
+0
-0
ic_pay_del0.png
plugin_wallet/src/main/res/drawable-xxhdpi/ic_pay_del0.png
+0
-0
ic_pay_del1.png
plugin_wallet/src/main/res/drawable-xxhdpi/ic_pay_del1.png
+0
-0
payview_btn_selector.xml
plugin_wallet/src/main/res/drawable/payview_btn_selector.xml
+17
-0
payview_stroke_gray_shape.xml
...allet/src/main/res/drawable/payview_stroke_gray_shape.xml
+7
-0
activity_cash_withdrawal_details.xml
.../src/main/res/layout/activity_cash_withdrawal_details.xml
+162
-0
activity_withdraw.xml
plugin_wallet/src/main/res/layout/activity_withdraw.xml
+81
-5
rv_dialog_verify_account_hint.xml
...let/src/main/res/layout/rv_dialog_verify_account_hint.xml
+124
-0
view_paypass_dialog.xml
plugin_wallet/src/main/res/layout/view_paypass_dialog.xml
+14
-0
view_paypass_gridview_item.xml
...wallet/src/main/res/layout/view_paypass_gridview_item.xml
+20
-0
view_paypass_layout.xml
plugin_wallet/src/main/res/layout/view_paypass_layout.xml
+191
-0
colors.xml
plugin_wallet/src/main/res/values/colors.xml
+12
-0
styles.xml
plugin_wallet/src/main/res/values/styles.xml
+19
-0
No files found.
RvWrapper/src/main/res/values/colors.xml
View file @
7cb2a3c6
...
@@ -41,6 +41,8 @@
...
@@ -41,6 +41,8 @@
<color
name=
"gray_30000000"
>
#30000000
</color>
<color
name=
"gray_30000000"
>
#30000000
</color>
<color
name=
"gray_FFFCF8"
>
#FFFCF8
</color>
<color
name=
"gray_FFFCF8"
>
#FFFCF8
</color>
<color
name=
"gray_F8F3C9"
>
#F8F3C9
</color>
<color
name=
"gray_F8F3C9"
>
#F8F3C9
</color>
<color
name=
"gray_FDB51C"
>
#FDB51C
</color>
<color
name=
"gray_47E270"
>
#47E270
</color>
<!--end-->
<!--end-->
...
...
plugin_wallet/src/main/AndroidManifest.xml
View file @
7cb2a3c6
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
package=
"com.xxrv.wallet"
>
package=
"com.xxrv.wallet"
>
<application>
<application>
<activity
android:name=
".activity.WithdrawActivity"
></activity>
<activity
android:name=
".activity.CashWithdrawalDetailsActivity"
></activity>
<activity
android:name=
".activity.WithdrawActivity"
/>
<activity
android:name=
".activity.WalletActivity"
/>
<activity
android:name=
".activity.WalletActivity"
/>
</application>
</application>
...
...
plugin_wallet/src/main/java/com/xxrv/wallet/activity/CashWithdrawalDetailsActivity.java
0 → 100644
View file @
7cb2a3c6
package
com
.
xxrv
.
wallet
.
activity
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.support.v7.app.AppCompatActivity
;
import
android.os.Bundle
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.xxrv.wallet.R
;
import
com.xxrv.wallet.presenter.WalletPresenter
;
/**
* 提现详情
*/
public
class
CashWithdrawalDetailsActivity
extends
BaseStatusActivity
<
WalletPresenter
>
{
public
static
Intent
getIntent
(
Context
context
)
{
return
new
Intent
(
context
,
CashWithdrawalDetailsActivity
.
class
);
}
@Override
protected
int
setLayout
()
{
return
R
.
layout
.
activity_cash_withdrawal_details
;
}
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
"提现详情"
);
}
@Override
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
}
}
plugin_wallet/src/main/java/com/xxrv/wallet/activity/WalletActivity.java
View file @
7cb2a3c6
...
@@ -55,6 +55,7 @@ public class WalletActivity extends BaseStatusActivity<WalletPresenter> {
...
@@ -55,6 +55,7 @@ public class WalletActivity extends BaseStatusActivity<WalletPresenter> {
finish
();
finish
();
}
else
if
(
id
==
R
.
id
.
tv_item_withdraw
)
{
}
else
if
(
id
==
R
.
id
.
tv_item_withdraw
)
{
//提现
//提现
startActivity
(
WithdrawActivity
.
getIntent
(
mActivity
));
}
else
if
(
id
==
R
.
id
.
rl_item_consumer_details
)
{
}
else
if
(
id
==
R
.
id
.
rl_item_consumer_details
)
{
//消费明细
//消费明细
...
...
plugin_wallet/src/main/java/com/xxrv/wallet/activity/WithdrawActivity.java
View file @
7cb2a3c6
package
com
.
xxrv
.
wallet
.
activity
;
package
com
.
xxrv
.
wallet
.
activity
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.support.v7.app.AppCompatActivity
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.text.TextUtils
;
import
android.view.View
;
import
android.widget.EditText
;
import
com.frame.rv.config.RvFrameConfig
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.xxrv.wallet.R
;
import
com.xxrv.wallet.R
;
import
com.xxrv.wallet.R2
;
import
com.xxrv.wallet.dialog.PayPassDialog
;
import
com.xxrv.wallet.dialog.VerifyAccountHintDialog
;
import
com.xxrv.wallet.presenter.WalletPresenter
;
import
com.xxrv.wallet.presenter.WalletPresenter
;
import
com.xxrv.wallet.view.PayPassView
;
import
com.yuyife.okgo.OkGoUtil
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
import
butterknife.BindView
;
import
butterknife.OnClick
;
/**
/**
* 提现
* 提现
*/
*/
public
class
WithdrawActivity
extends
BaseStatusActivity
<
WalletPresenter
>
{
public
class
WithdrawActivity
extends
BaseStatusActivity
<
WalletPresenter
>
{
@BindView
(
R2
.
id
.
et_account_number
)
EditText
etAccountNumber
;
@BindView
(
R2
.
id
.
et_withdrawal_amount
)
EditText
etWithdrawalAmount
;
public
static
Intent
getIntent
(
Context
context
)
{
return
new
Intent
(
context
,
WithdrawActivity
.
class
);
}
@Override
@Override
protected
int
setLayout
()
{
protected
int
setLayout
()
{
...
@@ -23,11 +47,75 @@ public class WithdrawActivity extends BaseStatusActivity<WalletPresenter> {
...
@@ -23,11 +47,75 @@ public class WithdrawActivity extends BaseStatusActivity<WalletPresenter> {
@Override
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
"提现"
);
}
}
@Override
@Override
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
}
}
@OnClick
({
R2
.
id
.
tv_item_withdraw
,
R2
.
id
.
tv_item_withdrawal_rules
})
public
void
onViewClicked
(
View
view
)
{
int
id
=
view
.
getId
();
if
(
id
==
R
.
id
.
tv_item_withdraw
){
//提现
showHint
();
}
else
if
(
id
==
R
.
id
.
tv_item_withdrawal_rules
){
//提现规则
}
}
/**
* 提示弹框
*/
private
void
showHint
()
{
new
VerifyAccountHintDialog
(
mActivity
)
{
@Override
public
void
helper
(
ViewHolder
helper
)
{
super
.
helper
(
helper
);
helper
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
int
id
=
v
.
getId
();
if
(
id
==
R
.
id
.
tv_item_ok
)
{
payDialog
();
dismiss
();
}
else
if
(
id
==
R
.
id
.
tv_item_cancel
)
{
dismiss
();
}
}
},
R
.
id
.
tv_item_ok
,
R
.
id
.
tv_item_cancel
);
}
}.
show
();
}
/**
* 支付密码
*/
private
void
payDialog
()
{
final
PayPassDialog
payPassDialog
=
new
PayPassDialog
(
this
);
payPassDialog
.
setOutColse
(
false
);
payPassDialog
.
getPayViewPass
().
setPayClickListener
(
new
PayPassView
.
OnPayClickListener
()
{
@Override
public
void
onPassFinish
(
String
passContent
)
{
//输入完成
showToast
(
passContent
);
startActivity
(
CashWithdrawalDetailsActivity
.
getIntent
(
mActivity
));
payPassDialog
.
dismiss
();
}
@Override
public
void
onPayClose
()
{
payPassDialog
.
dismiss
();
}
@Override
public
void
onPayForget
()
{
//忘记密码
payPassDialog
.
dismiss
();
}
});
}
}
}
plugin_wallet/src/main/java/com/xxrv/wallet/dialog/PayPassDialog.java
0 → 100644
View file @
7cb2a3c6
package
com
.
xxrv
.
wallet
.
dialog
;
import
android.app.AlertDialog
;
import
android.content.Context
;
import
android.view.Gravity
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.Window
;
import
android.widget.LinearLayout
;
import
com.xxrv.wallet.R
;
import
com.xxrv.wallet.view.PayPassView
;
/**
* 使用弹框作为容器
*/
public
class
PayPassDialog
{
private
AlertDialog
mDialog
;
//弹框
private
Window
window
;
//窗口
private
Context
mContext
;
//上下文
private
int
mThemeResId
;
//主题
private
View
mDialogLayout
;
//布局
/**
* 默认样式
* @param context
*/
public
PayPassDialog
(
Context
context
)
{
this
.
mContext
=
context
;
this
.
mThemeResId
=
R
.
style
.
dialog_pay_theme
;
this
.
mDialogLayout
=
LayoutInflater
.
from
(
mContext
).
inflate
(
R
.
layout
.
view_paypass_dialog
,
null
);
mDialog
=
new
AlertDialog
.
Builder
(
mContext
,
mThemeResId
).
create
();
mDialog
.
setCancelable
(
true
);
mDialog
.
show
();
mDialog
.
getWindow
().
setDimAmount
(
0.4f
);
//设置透明度0.4
window
=
mDialog
.
getWindow
();
window
.
setLayout
(
LinearLayout
.
LayoutParams
.
MATCH_PARENT
,
LinearLayout
.
LayoutParams
.
WRAP_CONTENT
);
window
.
setContentView
(
mDialogLayout
);
//设置弹框布局
mDialog
.
setCanceledOnTouchOutside
(
false
);
window
.
setWindowAnimations
(
R
.
style
.
dialogOpenAnimation
);
//添加动画
window
.
setGravity
(
Gravity
.
BOTTOM
);
//底部
}
/**
* 得到PayPassView控件
* @return
*/
public
PayPassView
getPayViewPass
()
{
return
mDialogLayout
.
findViewById
(
R
.
id
.
pay_View
);
}
/**
* 自定义
* @param context
* @param themeResId 主题样式
*/
public
PayPassDialog
(
Context
context
,
int
themeResId
)
{
this
.
mContext
=
context
;
this
.
mThemeResId
=
themeResId
;
this
.
mDialogLayout
=
LayoutInflater
.
from
(
mContext
).
inflate
(
R
.
layout
.
view_paypass_dialog
,
null
);
}
/**
* 初始化Dialog
*/
public
PayPassDialog
setAlertDialog
(){
mDialog
=
new
AlertDialog
.
Builder
(
mContext
,
mThemeResId
).
create
();
mDialog
.
setCancelable
(
true
);
//按返回键退出
mDialog
.
show
();
return
this
;
}
public
PayPassDialog
setAlertDialog
(
boolean
isBack
){
mDialog
=
new
AlertDialog
.
Builder
(
mContext
,
mThemeResId
).
create
();
mDialog
.
setCancelable
(
isBack
);
//按返回键退出
mDialog
.
show
();
return
this
;
}
/**
* 设置弹框大小 透明度
*/
public
PayPassDialog
setWindowSize
(
int
width
,
int
height
,
float
amount
){
mDialog
.
getWindow
().
setDimAmount
(
amount
);
//设置透明度
window
=
mDialog
.
getWindow
();
window
.
setLayout
(
width
,
height
);
window
.
setContentView
(
mDialogLayout
);
//设置弹框布局
return
this
;
}
/**
* 设置弹框宽高 透明度
* custom=2 自适应高度
* custom=其他 指定高度
*/
public
PayPassDialog
setWindowSize
(
int
width
,
int
height
,
int
custom
,
float
amount
){
if
(
custom
==
2
){
mDialog
.
getWindow
().
setDimAmount
(
amount
);
//设置透明度
window
=
mDialog
.
getWindow
();
window
.
setLayout
(
width
,
LinearLayout
.
LayoutParams
.
WRAP_CONTENT
);
window
.
setContentView
(
mDialogLayout
);
//设置弹框布局
return
this
;
}
else
{
mDialog
.
getWindow
().
setDimAmount
(
amount
);
//设置透明度
window
=
mDialog
.
getWindow
();
window
.
setLayout
(
width
,
height
);
window
.
setContentView
(
mDialogLayout
);
//设置弹框布局
return
this
;
}
}
/**
* 点击外部消失
*/
public
PayPassDialog
setOutColse
(
boolean
isOut
){
if
(
isOut
){
mDialog
.
setCanceledOnTouchOutside
(
true
);
}
else
{
mDialog
.
setCanceledOnTouchOutside
(
false
);
}
return
this
;
}
/**
* 方式 与位置
*/
public
PayPassDialog
setGravity
(
int
animation
,
int
gravity
){
window
.
setWindowAnimations
(
animation
);
//添加动画
window
.
setGravity
(
gravity
);
//底部
return
this
;
}
/**
* 关闭
*/
public
void
dismiss
()
{
if
(
mDialog
!=
null
&&
mDialog
.
isShowing
()){
mDialog
.
dismiss
();
mDialog
=
null
;
//清空对象
window
=
null
;
}
}
}
plugin_wallet/src/main/java/com/xxrv/wallet/dialog/VerifyAccountHintDialog.java
0 → 100644
View file @
7cb2a3c6
package
com
.
xxrv
.
wallet
.
dialog
;
import
android.content.Context
;
import
android.support.annotation.NonNull
;
import
android.view.Gravity
;
import
android.view.ViewGroup
;
import
com.ruiwenliu.wrapper.dialog.BaseDialog
;
import
com.xxrv.wallet.R
;
/**
* 温馨提示
*/
public
class
VerifyAccountHintDialog
extends
BaseDialog
{
public
VerifyAccountHintDialog
(
@NonNull
Context
context
)
{
super
(
context
);
setDialogParams
(
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
,
Gravity
.
CENTER
);
}
@Override
public
int
getViewLayout
()
{
return
R
.
layout
.
rv_dialog_verify_account_hint
;
}
}
plugin_wallet/src/main/java/com/xxrv/wallet/view/PayPassView.java
0 → 100644
View file @
7cb2a3c6
package
com
.
xxrv
.
wallet
.
view
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.graphics.Bitmap
;
import
android.graphics.drawable.Drawable
;
import
android.support.annotation.Nullable
;
import
android.util.AttributeSet
;
import
android.view.LayoutInflater
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.BaseAdapter
;
import
android.widget.GridView
;
import
android.widget.ImageView
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
com.xxrv.wallet.R
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* 自定义支付密码组件
*/
public
class
PayPassView
extends
RelativeLayout
{
private
Activity
mContext
;
//上下文
private
GridView
mGridView
;
//支付键盘
private
String
strPass
=
""
;
//保存密码
private
TextView
[]
mTvPass
;
//密码数字控件
private
ImageView
mImageViewClose
;
//关闭
private
TextView
mTvForget
;
//忘记密码
private
TextView
mTvHint
;
//提示 (提示:密码错误,重新输入)
private
List
<
Integer
>
listNumber
;
//1,2,3---0
private
View
mPassLayout
;
//布局
/**
* 按钮对外接口
*/
public
static
interface
OnPayClickListener
{
void
onPassFinish
(
String
passContent
);
void
onPayClose
();
void
onPayForget
();
}
private
OnPayClickListener
mPayClickListener
;
public
void
setPayClickListener
(
OnPayClickListener
listener
)
{
mPayClickListener
=
listener
;
}
//在代码new使用
public
PayPassView
(
Context
context
)
{
super
(
context
);
}
//在布局文件中使用的时候调用,多个样式文件
public
PayPassView
(
Context
context
,
@Nullable
AttributeSet
attrs
,
int
defStyleAttr
)
{
super
(
context
,
attrs
,
defStyleAttr
);
}
//在布局文件中使用的时候调用
public
PayPassView
(
Context
context
,
@Nullable
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
this
.
mContext
=
(
Activity
)
context
;
initView
();
//初始化
this
.
addView
(
mPassLayout
);
//将子布局添加到父容器,才显示控件
}
/**
* 初始化
*/
private
void
initView
()
{
mPassLayout
=
LayoutInflater
.
from
(
mContext
).
inflate
(
R
.
layout
.
view_paypass_layout
,
null
);
mImageViewClose
=
(
ImageView
)
mPassLayout
.
findViewById
(
R
.
id
.
iv_close
);
//关闭
mTvForget
=
(
TextView
)
mPassLayout
.
findViewById
(
R
.
id
.
tv_forget
);
//忘记密码
mTvHint
=
(
TextView
)
mPassLayout
.
findViewById
(
R
.
id
.
tv_passText
);
//提示文字
mTvPass
=
new
TextView
[
6
];
//密码控件
mTvPass
[
0
]
=
(
TextView
)
mPassLayout
.
findViewById
(
R
.
id
.
tv_pass1
);
mTvPass
[
1
]
=
(
TextView
)
mPassLayout
.
findViewById
(
R
.
id
.
tv_pass2
);
mTvPass
[
2
]
=
(
TextView
)
mPassLayout
.
findViewById
(
R
.
id
.
tv_pass3
);
mTvPass
[
3
]
=
(
TextView
)
mPassLayout
.
findViewById
(
R
.
id
.
tv_pass4
);
mTvPass
[
4
]
=
(
TextView
)
mPassLayout
.
findViewById
(
R
.
id
.
tv_pass5
);
mTvPass
[
5
]
=
(
TextView
)
mPassLayout
.
findViewById
(
R
.
id
.
tv_pass6
);
mGridView
=
(
GridView
)
mPassLayout
.
findViewById
(
R
.
id
.
gv_pass
);
mImageViewClose
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
cleanAllTv
();
mPayClickListener
.
onPayClose
();
}
});
mTvForget
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
mPayClickListener
.
onPayForget
();
}
});
//初始化数据
listNumber
=
new
ArrayList
<>();
for
(
int
i
=
1
;
i
<
10
;
i
++)
{
listNumber
.
add
(
i
);
}
listNumber
.
add
(
10
);
listNumber
.
add
(
0
);
listNumber
.
add
(
R
.
drawable
.
ic_pay_del0
);
mGridView
.
setAdapter
(
adapter
);
}
/**
* GridView的适配器
*/
BaseAdapter
adapter
=
new
BaseAdapter
()
{
@Override
public
int
getCount
()
{
return
listNumber
.
size
();
}
@Override
public
Object
getItem
(
int
position
)
{
return
listNumber
.
get
(
position
);
}
@Override
public
long
getItemId
(
int
position
)
{
return
position
;
}
@Override
public
View
getView
(
final
int
position
,
View
convertView
,
ViewGroup
parent
)
{
final
ViewHolder
holder
;
if
(
convertView
==
null
)
{
convertView
=
View
.
inflate
(
mContext
,
R
.
layout
.
view_paypass_gridview_item
,
null
);
holder
=
new
ViewHolder
();
holder
.
btnNumber
=
(
TextView
)
convertView
.
findViewById
(
R
.
id
.
btNumber
);
convertView
.
setTag
(
holder
);
}
else
{
holder
=
(
ViewHolder
)
convertView
.
getTag
();
}
//-------------设置数据----------------
holder
.
btnNumber
.
setText
(
listNumber
.
get
(
position
)+
""
);
if
(
position
==
9
)
{
holder
.
btnNumber
.
setText
(
""
);
holder
.
btnNumber
.
setBackgroundColor
(
mContext
.
getResources
().
getColor
(
R
.
color
.
graye3
));
}
if
(
position
==
11
)
{
holder
.
btnNumber
.
setText
(
""
);
holder
.
btnNumber
.
setBackgroundResource
(
listNumber
.
get
(
position
));
}
//监听事件----------------------------
if
(
position
==
11
)
{
holder
.
btnNumber
.
setOnTouchListener
(
new
OnTouchListener
()
{
@Override
public
boolean
onTouch
(
View
v
,
MotionEvent
event
)
{
if
(
position
==
11
)
{
switch
(
event
.
getAction
())
{
case
MotionEvent
.
ACTION_DOWN
:
holder
.
btnNumber
.
setBackgroundResource
(
R
.
drawable
.
ic_pay_del1
);
break
;
case
MotionEvent
.
ACTION_MOVE
:
holder
.
btnNumber
.
setBackgroundResource
(
R
.
drawable
.
ic_pay_del1
);
break
;
case
MotionEvent
.
ACTION_UP
:
holder
.
btnNumber
.
setBackgroundResource
(
R
.
drawable
.
ic_pay_del0
);
break
;
}
}
return
false
;
}
});
}
holder
.
btnNumber
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
if
(
position
<
11
&&
position
!=
9
)
{
//0-9按钮
if
(
strPass
.
length
()==
6
){
return
;
}
else
{
strPass
=
strPass
+
listNumber
.
get
(
position
);
//得到当前数字并累加
mTvPass
[
strPass
.
length
()-
1
].
setText
(
"*"
);
//设置界面*
//输入完成
if
(
strPass
.
length
()==
6
){
mPayClickListener
.
onPassFinish
(
strPass
);
//请求服务器验证密码
}
}
}
else
if
(
position
==
11
)
{
//删除
if
(
strPass
.
length
()>
0
){
mTvPass
[
strPass
.
length
()-
1
].
setText
(
""
);
//去掉界面*
strPass
=
strPass
.
substring
(
0
,
strPass
.
length
()-
1
);
//删除一位
}
}
if
(
position
==
9
){
//空按钮
}
}
});
return
convertView
;
}
};
static
class
ViewHolder
{
public
TextView
btnNumber
;
}
/**
* 关闭图片
* 资源方式
*/
public
void
setCloseImgView
(
int
resId
)
{
mImageViewClose
.
setImageResource
(
resId
);
}
/**
* 关闭图片
* Bitmap方式
*/
public
void
setCloseImgView
(
Bitmap
bitmap
)
{
mImageViewClose
.
setImageBitmap
(
bitmap
);
}
/**
* 关闭图片
* drawable方式
*/
public
void
setCloseImgView
(
Drawable
drawable
)
{
mImageViewClose
.
setImageDrawable
(
drawable
);
}
/**
* 设置忘记密码文字
*/
public
void
setForgetText
(
String
text
)
{
mTvForget
.
setText
(
text
);
}
/**
* 设置忘记密码文字大小
*/
public
void
setForgetSize
(
float
textSize
)
{
mTvForget
.
setTextSize
(
textSize
);
}
/**
* 设置忘记密码文字颜色
*/
public
void
setForgetColor
(
int
textColor
)
{
mTvForget
.
setTextColor
(
textColor
);
}
/**
* 设置提醒的文字
*/
public
void
setHintText
(
String
text
)
{
mTvHint
.
setText
(
text
);
}
/**
* 设置提醒的文字大小
*/
public
void
setTvHintSize
(
float
textSize
)
{
mTvHint
.
setTextSize
(
textSize
);
}
/**
* 设置提醒的文字颜色
*/
public
void
setTvHintColor
(
int
textColor
)
{
mTvHint
.
setTextColor
(
textColor
);
}
/**
* 清楚所有密码TextView
*/
public
void
cleanAllTv
()
{
strPass
=
""
;
for
(
int
i
=
0
;
i
<
6
;
i
++){
mTvPass
[
i
].
setText
(
""
);
}
}
}
plugin_wallet/src/main/res/anim/dialog_payview_in.xml
0 → 100644
View file @
7cb2a3c6
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<translate
android:duration=
"300"
android:fromXDelta=
"0"
android:fromYDelta=
"1000"
android:toXDelta=
"0"
android:toYDelta=
"0"
/>
</set>
\ No newline at end of file
plugin_wallet/src/main/res/anim/dialog_payview_out.xml
0 → 100644
View file @
7cb2a3c6
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<translate
android:duration=
"300"
android:fromXDelta=
"0"
android:fromYDelta=
"0"
android:toXDelta=
"0"
android:toYDelta=
"1000"
/>
</set>
\ No newline at end of file
plugin_wallet/src/main/res/drawable-xxhdpi/ic_pay_close.png
0 → 100644
View file @
7cb2a3c6
600 Bytes
plugin_wallet/src/main/res/drawable-xxhdpi/ic_pay_del0.png
0 → 100644
View file @
7cb2a3c6
1.28 KB
plugin_wallet/src/main/res/drawable-xxhdpi/ic_pay_del1.png
0 → 100644
View file @
7cb2a3c6
15.4 KB
plugin_wallet/src/main/res/drawable/payview_btn_selector.xml
0 → 100644
View file @
7cb2a3c6
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:state_pressed=
"false"
>
<shape
>
<solid
android:color=
"@color/white"
/>
<!-- 填充的颜色:这里设置 -->
</shape>
</item>
<item
android:state_pressed=
"true"
>
<shape
>
<solid
android:color=
"@color/gray_e5"
/>
<!-- 填充的颜色:这里设置 -->
</shape>
</item>
</selector>
\ No newline at end of file
plugin_wallet/src/main/res/drawable/payview_stroke_gray_shape.xml
0 → 100644
View file @
7cb2a3c6
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<stroke
android:width=
"1dp"
android:color=
"@color/grayc4"
/>
<!-- 边框颜色,边框大小-->
<solid
android:color=
"@color/white"
/>
<!-- 填充的颜色:这里设置背景 -->
<corners
android:radius=
"5dip"
/>
<!-- android:radius 弧形的半径 -->
</shape>
\ No newline at end of file
plugin_wallet/src/main/res/layout/activity_cash_withdrawal_details.xml
0 → 100644
View file @
7cb2a3c6
<?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:background=
"@color/colorLine"
android:orientation=
"vertical"
tools:context=
".activity.CashWithdrawalDetailsActivity"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/colorWrite"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_15"
android:text=
"进度"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_70"
android:layout_marginTop=
"@dimen/size_40"
android:layout_marginLeft=
"@dimen/size_20"
android:orientation=
"horizontal"
>
<LinearLayout
android:orientation=
"vertical"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<View
android:layout_width=
"@dimen/size_1"
android:layout_height=
"match_parent"
android:background=
"@color/gray_47E270"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:orientation=
"vertical"
android:layout_marginLeft=
"@dimen/size_25"
android:layout_height=
"match_parent"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/text_14"
android:textColor=
"@color/colorMain"
android:text=
"提现申请已发出"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:textSize=
"@dimen/text_10"
android:textColor=
"@color/text_Gray"
android:text=
"2019-05-10 10:10:58 已申请"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_70"
android:layout_marginLeft=
"@dimen/size_20"
android:orientation=
"horizontal"
>
<LinearLayout
android:orientation=
"vertical"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<View
android:layout_width=
"@dimen/size_1"
android:layout_height=
"match_parent"
android:background=
"@color/gray_47E270"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:orientation=
"vertical"
android:layout_marginLeft=
"@dimen/size_25"
android:layout_height=
"match_parent"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/text_14"
android:textColor=
"@color/colorMain"
android:text=
"预计在周四周五到账"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:textSize=
"@dimen/text_10"
android:textColor=
"@color/text_Gray"
android:text=
"还未到账"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_60"
android:layout_marginLeft=
"@dimen/size_20"
android:orientation=
"horizontal"
>
<LinearLayout
android:orientation=
"vertical"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:orientation=
"vertical"
android:layout_marginLeft=
"@dimen/size_25"
android:layout_height=
"match_parent"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/text_14"
android:textColor=
"@color/colorMain"
android:text=
"提现成功"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:textSize=
"@dimen/text_10"
android:textColor=
"@color/text_Gray"
android:text=
"还未到账"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
plugin_wallet/src/main/res/layout/activity_withdraw.xml
View file @
7cb2a3c6
...
@@ -24,26 +24,99 @@
...
@@ -24,26 +24,99 @@
android:textSize=
"@dimen/text_16"
/>
android:textSize=
"@dimen/text_16"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_60"
android:layout_marginLeft=
"@dimen/size_60"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:orientation=
"vertical"
android:orientation=
"vertical"
>
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
>
<EditText
<EditText
android:id=
"@+id/et_
phone
"
android:id=
"@+id/et_
account_number
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:background=
"@null"
android:background=
"@null"
android:gravity=
"left|center_vertical"
android:gravity=
"left|center_vertical"
android:hint=
"请输入到账支付宝账号"
android:hint=
"请输入到账支付宝账号"
android:digits=
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
android:text=
""
android:text=
""
android:textColor=
"@color/colorMain"
android:textColorHint=
"@color/colorGray"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
<include
layout=
"@layout/common_line"
/>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_20"
android:text=
"提现金额"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_16"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_30"
android:layout_marginRight=
"@dimen/size_15"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_40"
android:text=
"¥"
android:textColor=
"@color/colorMain"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_23"
/>
<EditText
android:id=
"@+id/et_withdrawal_amount"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"@dimen/size_15"
android:background=
"@null"
android:inputType=
"numberDecimal"
android:gravity=
"left|center_vertical"
android:hint=
"提现金额至少10元,单笔限额5万"
android:text=
""
android:textColor=
"@color/colorMain"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
</LinearLayout>
<View
android:background=
"@color/colorLine"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:layout_height=
"@dimen/size_half"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_15"
android:text=
"当前账户余额50元"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
<TextView
android:id=
"@+id/tv_item_withdraw"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:background=
"@drawable/shape_rv_bg_shallow_dark_yellow_circle"
android:gravity=
"center"
android:layout_marginTop=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_20"
android:layout_marginRight=
"@dimen/size_20"
android:text=
"提现"
android:textSize=
"@dimen/text_16"
android:textColor=
"@color/colorWrite"
/>
</LinearLayout>
</LinearLayout>
...
@@ -55,11 +128,14 @@
...
@@ -55,11 +128,14 @@
android:gravity=
"center"
>
android:gravity=
"center"
>
<TextView
<TextView
android:id=
"@+id/tv_item_withdrawal_rules"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingLeft=
"@dimen/size_30"
android:paddingLeft=
"@dimen/size_30"
android:paddingRight=
"@dimen/size_30"
android:paddingRight=
"@dimen/size_30"
android:text=
"提现规则"
android:text=
"提现规则"
android:drawablePadding=
"@dimen/size_5"
android:drawableRight=
"@drawable/common_icon_rig_gray"
android:textColor=
"@color/text_Gray"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/text_14"
/>
android:textSize=
"@dimen/text_14"
/>
...
...
plugin_wallet/src/main/res/layout/rv_dialog_verify_account_hint.xml
0 → 100644
View file @
7cb2a3c6
<?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=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_40"
android:layout_marginRight=
"@dimen/size_40"
android:background=
"@color/colorWrite"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_60"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"核实账户"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_18"
android:textStyle=
"bold"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"转账金额:"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_16"
/>
<TextView
android:id=
"@+id/tv_pay_amount"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"50元"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_10"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"转账支付宝账号:"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_16"
/>
<TextView
android:id=
"@+id/tv_account_number"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"end"
android:text=
"xxxxx"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/size_15"
android:textSize=
"@dimen/text_16"
android:textColor=
"@color/textGray"
android:text=
"提交后,将无法撤回,请认真核对提现信息。"
/>
<include
layout=
"@layout/common_line"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_60"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_item_ok"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:background=
"@color/gray_FDB51C"
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/text_16"
android:textStyle=
"bold"
android:gravity=
"center"
android:text=
"确认"
/>
<View
android:layout_width=
"@dimen/size_half"
android:layout_height=
"match_parent"
android:layout_marginTop=
"@dimen/size_10"
android:layout_marginBottom=
"@dimen/size_10"
android:background=
"@color/colorLine"
/>
<TextView
android:id=
"@+id/tv_item_cancel"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:textStyle=
"bold"
android:textSize=
"@dimen/text_16"
android:textColor=
"@color/colorMain"
android:gravity=
"center"
android:text=
"我在看看"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
plugin_wallet/src/main/res/layout/view_paypass_dialog.xml
0 → 100644
View file @
7cb2a3c6
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:ywl=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<com.xxrv.wallet.view.PayPassView
android:id=
"@+id/pay_View"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
</LinearLayout>
plugin_wallet/src/main/res/layout/view_paypass_gridview_item.xml
0 → 100644
View file @
7cb2a3c6
<?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"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:weightSum=
"3"
>
<Button
android:id=
"@+id/btNumber"
android:layout_width=
"120dp"
android:layout_height=
"55dp"
android:textSize=
"@dimen/text_16"
android:textColor=
"@color/black"
android:background=
"@drawable/payview_btn_selector"
/>
</LinearLayout>
</LinearLayout>
plugin_wallet/src/main/res/layout/view_paypass_layout.xml
0 → 100644
View file @
7cb2a3c6
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:background=
"@color/grayf9"
android:orientation=
"vertical"
>
<!--==============top=================-->
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"45dp"
>
<ImageView
android:id=
"@+id/iv_close"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"10dp"
android:scaleType=
"centerInside"
android:src=
"@drawable/ic_pay_close"
/>
<TextView
android:id=
"@+id/tv_passText"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:text=
"请输入支付密码"
android:textColor=
"@color/black"
android:textSize=
"@dimen/text_16"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_alignParentBottom=
"true"
android:background=
"@color/gray_gb"
/>
</RelativeLayout>
<!--==============pass=================-->
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_gravity=
"center"
android:layout_marginLeft=
"15dp"
android:layout_marginTop=
"30dp"
android:layout_marginRight=
"15dp"
android:background=
"@drawable/payview_stroke_gray_shape"
android:gravity=
"center"
android:orientation=
"horizontal"
android:weightSum=
"6"
>
<!--======1======-->
<TextView
android:id=
"@+id/tv_pass1"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:layout_marginBottom=
"5dp"
android:layout_weight=
"1"
android:gravity=
"center"
android:inputType=
"numberPassword"
android:textColor=
"@color/black"
android:textSize=
"@dimen/text_30"
/>
<View
android:layout_width=
"1dp"
android:layout_height=
"match_parent"
android:background=
"@color/grayc4"
/>
<!--=====2=====-->
<TextView
android:id=
"@+id/tv_pass2"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:layout_marginBottom=
"5dp"
android:layout_weight=
"1"
android:gravity=
"center"
android:inputType=
"numberPassword"
android:textColor=
"@color/black"
android:textSize=
"@dimen/text_30"
/>
<View
android:layout_width=
"1dp"
android:layout_height=
"match_parent"
android:background=
"@color/grayc4"
/>
<!--=====3=====-->
<TextView
android:id=
"@+id/tv_pass3"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:layout_marginBottom=
"5dp"
android:layout_weight=
"1"
android:gravity=
"center"
android:inputType=
"numberPassword"
android:textColor=
"@color/black"
android:textSize=
"@dimen/text_30"
/>
<View
android:layout_width=
"1dp"
android:layout_height=
"match_parent"
android:background=
"@color/grayc4"
/>
<!--=====4=======-->
<TextView
android:id=
"@+id/tv_pass4"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:layout_marginBottom=
"5dp"
android:layout_weight=
"1"
android:gravity=
"center"
android:inputType=
"numberPassword"
android:textColor=
"@color/black"
android:textSize=
"@dimen/text_30"
/>
<View
android:layout_width=
"1dp"
android:layout_height=
"match_parent"
android:background=
"@color/grayc4"
/>
<!--=======5==========-->
<TextView
android:id=
"@+id/tv_pass5"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:layout_marginBottom=
"5dp"
android:layout_weight=
"1"
android:gravity=
"center"
android:inputType=
"numberPassword"
android:textColor=
"@color/black"
android:textSize=
"@dimen/text_30"
/>
<View
android:layout_width=
"1dp"
android:layout_height=
"match_parent"
android:background=
"@color/grayc4"
/>
<!--=========6=======-->
<TextView
android:id=
"@+id/tv_pass6"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:layout_marginBottom=
"5dp"
android:layout_weight=
"1"
android:gravity=
"center"
android:inputType=
"numberPassword"
android:textColor=
"@color/black"
android:textSize=
"@dimen/text_30"
/>
</LinearLayout>
<!--==============forget=================-->
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/size_20"
android:layout_marginTop=
"@dimen/size_20"
>
<TextView
android:id=
"@+id/tv_forget"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:text=
"忘记密码?"
android:textColor=
"@color/alipay"
android:textSize=
"@dimen/sp_14"
/>
</RelativeLayout>
<!--==============输入键盘=================-->
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"15dp"
android:background=
"@color/graye3"
>
<GridView
android:id=
"@+id/gv_pass"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"1dp"
android:horizontalSpacing=
"1dp"
android:listSelector=
"@color/graye3"
android:numColumns=
"3"
android:verticalSpacing=
"1dp"
/>
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
plugin_wallet/src/main/res/values/colors.xml
0 → 100644
View file @
7cb2a3c6
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color
name=
"grayf9"
>
#f9f9f9
</color>
<color
name=
"gray_gb"
>
#dddddd
</color>
<color
name=
"grayc4"
>
#c4c4c4
</color>
<color
name=
"graye3"
>
#e3e7ee
</color>
<color
name=
"alipay"
>
#00a5ff
</color>
<color
name=
"gray_e5"
>
#e5e5e5
</color>
<color
name=
"black"
>
#000000
</color>
<color
name=
"white"
>
#FFFFFF
</color>
</resources>
plugin_wallet/src/main/res/values/styles.xml
0 → 100644
View file @
7cb2a3c6
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--主题样式-->
<style
name=
"dialog_pay_theme"
parent=
"@android:style/Theme.Dialog"
>
<!--边框-->
<item
name=
"android:windowFrame"
>
@null
</item>
<item
name=
"android:windowNoTitle"
>
true
</item>
<item
name=
"android:windowBackground"
>
@android:color/transparent
</item>
<item
name=
"android:backgroundDimAmount"
>
0.4
</item>
<!--弹框背景灰度-->
</style>
<!--动画方式-->
<style
name=
"dialogOpenAnimation"
parent=
"android:Animation"
>
<item
name=
"android:windowEnterAnimation"
>
@anim/dialog_payview_in
</item>
<item
name=
"android:windowExitAnimation"
>
@anim/dialog_payview_out
</item>
</style>
</resources>
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