Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
王海
TangKuPos
Commits
e999ade9
Commit
e999ade9
authored
Jan 23, 2018
by
姜敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改Radiobutton间距
parent
79a8a496
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
118 additions
and
76 deletions
+118
-76
.idea/modules.xml
.idea/modules.xml
+2
-1
app/src/main/java/com/xingdata/zzdpos/ui/settle/SettleActivity.java
...in/java/com/xingdata/zzdpos/ui/settle/SettleActivity.java
+5
-7
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoEditFragment.java
.../xingdata/zzdpos/ui/vip/fragment/VipInfoEditFragment.java
+7
-1
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
.../com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
+2
-2
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipRechargeListFragment.java
...gdata/zzdpos/ui/vip/fragment/VipRechargeListFragment.java
+2
-6
app/src/main/res/layout/fragment_recharge_rule_edit.xml
app/src/main/res/layout/fragment_recharge_rule_edit.xml
+2
-2
app/src/main/res/layout/fragment_vip_info.xml
app/src/main/res/layout/fragment_vip_info.xml
+12
-16
app/src/main/res/layout/fragment_vip_info_edit.xml
app/src/main/res/layout/fragment_vip_info_edit.xml
+58
-33
app/src/main/res/layout/fragment_vip_level_edit.xml
app/src/main/res/layout/fragment_vip_level_edit.xml
+2
-2
app/src/main/res/layout/fragment_vip_recharge_list.xml
app/src/main/res/layout/fragment_vip_recharge_list.xml
+1
-1
app/src/main/res/mipmap-xhdpi/hd_default01.png
app/src/main/res/mipmap-xhdpi/hd_default01.png
+0
-0
app/src/main/res/mipmap-xhdpi/hd_default02.png
app/src/main/res/mipmap-xhdpi/hd_default02.png
+0
-0
app/src/main/res/values/dimens.xml
app/src/main/res/values/dimens.xml
+1
-1
app/src/main/res/values/styles.xml
app/src/main/res/values/styles.xml
+24
-4
No files found.
.idea/modules.xml
View file @
e999ade9
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/TangKuPos.iml"
filepath=
"$PROJECT_DIR$/TangKuPos.iml"
/>
<module
fileurl=
"file://C:\Users\JM_DEV\AndroidStudioProjects\TangKuPos2\TangKuPos.iml"
filepath=
"C:\Users\JM_DEV\AndroidStudioProjects\TangKuPos2\TangKuPos.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/TangKuPos2.iml"
filepath=
"$PROJECT_DIR$/TangKuPos2.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/app/app.iml"
filepath=
"$PROJECT_DIR$/app/app.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/app/app.iml"
filepath=
"$PROJECT_DIR$/app/app.iml"
/>
</modules>
</modules>
</component>
</component>
...
...
app/src/main/java/com/xingdata/zzdpos/ui/settle/SettleActivity.java
View file @
e999ade9
...
@@ -136,18 +136,16 @@ public class SettleActivity extends BaseActivity<SettlePresenter, ActivitySettle
...
@@ -136,18 +136,16 @@ public class SettleActivity extends BaseActivity<SettlePresenter, ActivitySettle
this
.
start
(
mCashPayFragment
.
setSaleorder
(
saleorder
));
this
.
start
(
mCashPayFragment
.
setSaleorder
(
saleorder
));
break
;
break
;
case
C
.
PAY_CHANNEL
.
TALLY
:
case
C
.
PAY_CHANNEL
.
TALLY
:
mScanFragment
.
setOnScanCompletedListener
(
barcode
->
{
this
.
pop
();
mPresenter
.
payInAli
(
barcode
);
});
this
.
start
(
mScanFragment
);
break
;
case
C
.
PAY_CHANNEL
.
CARD
:
case
C
.
PAY_CHANNEL
.
CARD
:
mPasswordDialog
.
setSaleorder
(
saleorder
).
show
(
this
);
mPasswordDialog
.
setSaleorder
(
saleorder
).
show
(
this
);
break
;
break
;
case
C
.
PAY_CHANNEL
.
BANK
:
case
C
.
PAY_CHANNEL
.
BANK
:
case
C
.
PAY_CHANNEL
.
ALI
:
case
C
.
PAY_CHANNEL
.
ALI
:
showMsg
(
"暂时无法使用"
);
mScanFragment
.
setOnScanCompletedListener
(
barcode
->
{
this
.
pop
();
mPresenter
.
payInAli
(
barcode
);
});
this
.
start
(
mScanFragment
);
break
;
break
;
case
C
.
PAY_CHANNEL
.
WECHAT
:
case
C
.
PAY_CHANNEL
.
WECHAT
:
mScanFragment
.
setOnScanCompletedListener
(
barcode
->
{
mScanFragment
.
setOnScanCompletedListener
(
barcode
->
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoEditFragment.java
View file @
e999ade9
...
@@ -69,7 +69,10 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
...
@@ -69,7 +69,10 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
"添加会员"
);
mViewBinding
.
infoTitle
.
tvTitle
.
setText
(
"添加会员"
);
mViewBinding
.
vipDiscounts
.
setEnabled
(
true
);
mViewBinding
.
vipDiscounts
.
setEnabled
(
true
);
mViewBinding
.
vipDiscounts
.
setText
(
levels
.
get
(
0
).
getVipLevelName
()
+
" "
+
ConvertUtil
.
discount
(
levels
.
get
(
0
).
getVipDefDiscount
())
+
"折"
);
mViewBinding
.
vipDiscounts
.
setText
(
levels
.
get
(
0
).
getVipLevelName
()
+
" "
+
ConvertUtil
.
discount
(
levels
.
get
(
0
).
getVipDefDiscount
())
+
"折"
);
mViewBinding
.
vipBirthday
.
setText
(
StringUtil
.
format
(
new
Date
(
System
.
currentTimeMillis
())));
((
RadioButton
)
mViewBinding
.
vipSex
.
getChildAt
(
0
)).
setChecked
(
true
);
}
}
mViewBinding
.
setOnClickListener
(
view
->
{
mViewBinding
.
setOnClickListener
(
view
->
{
switch
(
view
.
getId
())
{
switch
(
view
.
getId
())
{
case
R
.
id
.
vip_discounts
:
case
R
.
id
.
vip_discounts
:
...
@@ -89,7 +92,10 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
...
@@ -89,7 +92,10 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
ToastUtils
.
showShort
(
"会员手机号不能为空"
);
ToastUtils
.
showShort
(
"会员手机号不能为空"
);
return
;
return
;
}
}
if
(
mViewBinding
.
vipPhone
.
getText
().
length
()
!=
11
)
{
ToastUtils
.
showShort
(
"手机号长度必须为11位"
);
return
;
}
if
(
mVip
==
null
)
{
if
(
mVip
==
null
)
{
mVip
=
new
Vip
();
mVip
=
new
Vip
();
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipInfoFragment.java
View file @
e999ade9
...
@@ -41,9 +41,9 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
...
@@ -41,9 +41,9 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
dialog
.
show
((
BaseActivity
)
getActivity
());
dialog
.
show
((
BaseActivity
)
getActivity
());
});
});
if
(
mVip
!=
null
)
{
if
(
mVip
!=
null
)
{
mViewBinding
.
Totalpamt
.
setText
(
String
.
valueOf
(
mVip
.
getVipTotalpamt
()));
mViewBinding
.
Totalpamt
.
setText
(
ConvertUtil
.
fenToYuanNoZero
(
mVip
.
getVipTotalpamt
()));
mViewBinding
.
BoundCbal
.
setText
(
String
.
valueOf
(
mVip
.
getBoundCbal
()));
mViewBinding
.
BoundCbal
.
setText
(
String
.
valueOf
(
mVip
.
getBoundCbal
()));
mViewBinding
.
AcctCbal
.
setText
(
String
.
valueOf
(
mVip
.
getAcctCbal
()));
mViewBinding
.
AcctCbal
.
setText
(
ConvertUtil
.
fenToYuanNoZero
(
mVip
.
getAcctCbal
()));
if
(
String
.
valueOf
(
mVip
.
getVipTag
()).
equals
(
"1"
)){
if
(
String
.
valueOf
(
mVip
.
getVipTag
()).
equals
(
"1"
)){
mViewBinding
.
vipLevel
.
setText
(
"超级会员"
);
mViewBinding
.
vipLevel
.
setText
(
"超级会员"
);
}
else
{
}
else
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/vip/fragment/VipRechargeListFragment.java
View file @
e999ade9
...
@@ -38,11 +38,6 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
...
@@ -38,11 +38,6 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
private
List
<
VipRechargeOrder
>
orders
=
new
ArrayList
<>();
private
List
<
VipRechargeOrder
>
orders
=
new
ArrayList
<>();
private
int
pageNumber
=
0
;
private
int
pageNumber
=
0
;
private
List
<
Level
>
levels
;
private
List
<
Level
>
levels
;
private
LinearLayout
.
LayoutParams
layoutParams
=
null
;
private
HashMap
<
String
,
Mscard
>
mscardHashMap
=
new
HashMap
<>();
private
ArrayList
<
Mscard
>
mscards
=
new
ArrayList
<>();
private
ArrayList
<
String
>
strLevels
=
new
ArrayList
<>();
private
EditText
serchEditText
;
@Override
@Override
...
@@ -59,7 +54,8 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
...
@@ -59,7 +54,8 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
mViewBinding
.
rechargeRecyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
getActivity
()));
mViewBinding
.
rechargeRecyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
getActivity
()));
mViewBinding
.
rechargeRecyclerView
.
setAdapter
(
vipRechargeAdapter
);
mViewBinding
.
rechargeRecyclerView
.
setAdapter
(
vipRechargeAdapter
);
mViewBinding
.
rechargeRefresh
.
setOnRefreshListener
(
this
::
onRefresh
);
mViewBinding
.
rechargeRefresh
.
setOnRefreshListener
(
this
::
onRefresh
);
mViewBinding
.
rechargeAMT
.
setText
(
ConvertUtil
.
fenToYuan2
(
mVip
.
getVipTotalpamt
()));
mViewBinding
.
rechargeAmt
.
setText
(
ConvertUtil
.
fenToYuan2
(
mVip
.
getAcctCbal
()));
mViewBinding
.
balanceAMT
.
setText
(
ConvertUtil
.
fenToYuan2
(
mVip
.
getAcctCbal
()));
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
mVip
.
getVipMobile
()));
mViewBinding
.
vipMobile
.
setText
(
String
.
valueOf
(
mVip
.
getVipMobile
()));
mViewBinding
.
vipName
.
setText
(
String
.
valueOf
(
mVip
.
getVipName
()));
mViewBinding
.
vipName
.
setText
(
String
.
valueOf
(
mVip
.
getVipName
()));
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
infoTitle
.
popMenu
.
setVisibility
(
View
.
GONE
);
...
...
app/src/main/res/layout/fragment_recharge_rule_edit.xml
View file @
e999ade9
...
@@ -283,15 +283,15 @@
...
@@ -283,15 +283,15 @@
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<Button
<Button
android:id=
"@+id/onSure"
android:id=
"@+id/onSure"
style=
"@style/button_positive_noradius"
style=
"@style/button_positive_noradius"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_marginBottom=
"15dp"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"确认"
/>
android:text=
"确认"
/>
</RelativeLayout>
</RelativeLayout>
...
...
app/src/main/res/layout/fragment_vip_info.xml
View file @
e999ade9
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
72dp
"
android:layout_marginTop=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_margin"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
...
@@ -36,9 +36,9 @@
...
@@ -36,9 +36,9 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
android:layout_marginBottom=
"10dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
...
@@ -180,14 +180,14 @@
...
@@ -180,14 +180,14 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_
small
style"
style=
"@style/default_blacktext_margin_
16_sp_
style"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:layout_height=
"wrap_content"
android:text=
"级别"
/>
android:text=
"级别"
/>
<TextView
<TextView
android:id=
"@+id/vipLevel"
android:id=
"@+id/vipLevel"
style=
"@style/default_blacktext_margin_smallstyle"
style=
"@style/default_blacktext_nopadding_smallstyle"
android:textSize=
"@dimen/all_text_size"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
...
@@ -206,17 +206,16 @@
...
@@ -206,17 +206,16 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_
small
style"
style=
"@style/default_blacktext_margin_
16_sp_
style"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:text=
"性别"
/>
android:text=
"性别"
/>
<TextView
<TextView
android:id=
"@+id/vipSex"
android:id=
"@+id/vipSex"
style=
"@style/default_blacktext_
margin
_smallstyle"
style=
"@style/default_blacktext_
nopadding
_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/all_text_size"
/>
/>
</LinearLayout>
</LinearLayout>
...
@@ -235,14 +234,13 @@
...
@@ -235,14 +234,13 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_
small
style"
style=
"@style/default_blacktext_margin_
16_sp_
style"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:layout_height=
"wrap_content"
android:text=
"生日"
/>
android:text=
"生日"
/>
<TextView
<TextView
android:id=
"@+id/vip_birthday"
android:id=
"@+id/vip_birthday"
style=
"@style/default_blacktext_
margin
_smallstyle"
style=
"@style/default_blacktext_
nopadding
_smallstyle"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
</LinearLayout>
</LinearLayout>
...
@@ -261,9 +259,8 @@
...
@@ -261,9 +259,8 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_
small
style"
style=
"@style/default_blacktext_margin_
16_sp_
style"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:layout_height=
"wrap_content"
android:text=
"地区"
/>
android:text=
"地区"
/>
</LinearLayout>
</LinearLayout>
...
@@ -280,9 +277,8 @@
...
@@ -280,9 +277,8 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_
small
style"
style=
"@style/default_blacktext_margin_
16_sp_
style"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"详细地址"
/>
android:text=
"详细地址"
/>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_vip_info_edit.xml
View file @
e999ade9
...
@@ -35,18 +35,23 @@
...
@@ -35,18 +35,23 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<ImageView
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"70dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:background=
"@mipmap/point"
/>
<TextView
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"70dp"
android:text=
"姓名"
/>
android:text=
"姓名"
/>
<EditText
<EditText
android:id=
"@+id/vip_name"
android:id=
"@+id/vip_name"
style=
"@style/
dialog_edit
"
style=
"@style/
all_edittext_14sp_style
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
...
@@ -64,36 +69,41 @@
...
@@ -64,36 +69,41 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<ImageView
style=
"@style/default_blacktext_margin_smallstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"70dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:background=
"@mipmap/point"
/>
<TextView
style=
"@style/default_blacktext_nopadding_smallstyle"
android:layout_width=
"70dp"
android:maxLength=
"11"
android:maxLength=
"11"
android:text=
"手机号"
/>
android:text=
"手机号"
/>
<EditText
<EditText
android:id=
"@+id/vip_phone"
android:id=
"@+id/vip_phone"
android:digits=
"0123456789"
style=
"@style/all_edittext_14sp_style"
android:inputType=
"phone"
style=
"@style/dialog_edit"
android:maxLength=
"11"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@null"
android:background=
"@null"
android:hint=
"请输入手机号"
/>
android:digits=
"0123456789"
android:hint=
"请输入手机号"
android:inputType=
"phone"
android:maxLength=
"11"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/all_margin"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:background=
"@mipmap/
camera
"
/>
android:background=
"@mipmap/
hd_default02
"
/>
</LinearLayout>
</LinearLayout>
<View
<View
...
@@ -108,33 +118,41 @@
...
@@ -108,33 +118,41 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/all_margin_left"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginTop=
"@dimen/all_margin_left"
android:background=
"@mipmap/point"
/>
<TextView
<TextView
style=
"@style/default_blacktext_
margin
_smallstyle"
style=
"@style/default_blacktext_
nopadding
_smallstyle"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:layout_height=
"wrap_content"
android:text=
"性别"
/>
android:text=
"性别"
/>
<RadioGroup
<RadioGroup
android:gravity=
"center_vertical"
android:id=
"@+id/vip_sex"
android:id=
"@+id/vip_sex"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"12sp"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"100dp"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<RadioButton
<RadioButton
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"50dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/selector_checkbox_bg"
android:background=
"@drawable/selector_checkbox_bg"
android:button=
"@null"
android:button=
"@null"
android:tag=
"1"
android:tag=
"1"
android:layout_marginRight=
"@dimen/all_margin_left"
android:text=
"男"
/>
android:text=
"男"
/>
<RadioButton
<RadioButton
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"50dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/selector_checkbox_bg"
android:background=
"@drawable/selector_checkbox_bg"
android:button=
"@null"
android:button=
"@null"
...
@@ -152,23 +170,28 @@
...
@@ -152,23 +170,28 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:
layout_
gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:background=
"@mipmap/point"
/>
<TextView
<TextView
style=
"@style/default_blacktext_
margin
_smallstyle"
style=
"@style/default_blacktext_
nopadding
_smallstyle"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:layout_height=
"wrap_content"
android:text=
"级别"
/>
android:text=
"级别"
/>
<TextView
<TextView
android:gravity=
"center
"
style=
"@style/default_blacktext_nopadding_smallstyle
"
android:id=
"@+id/vip_discounts"
android:id=
"@+id/vip_discounts"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"@dimen/sp_12"
android:layout_marginLeft=
"@dimen/sp_12"
android:layout_marginRight=
"@dimen/all_margin_left"
android:gravity=
"center_vertical"
android:layout_marginRight=
"100dp"
android:drawableRight=
"@mipmap/ic_expand"
android:drawableRight=
"@mipmap/ic_expand"
android:onClick=
"@{onClickListener}"
/>
android:onClick=
"@{onClickListener}"
/>
</LinearLayout>
</LinearLayout>
...
@@ -186,17 +209,18 @@
...
@@ -186,17 +209,18 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
style=
"@style/default_blacktext_margin_
small
style"
style=
"@style/default_blacktext_margin_
16_sp_
style"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:layout_
height=
"wrap_content
"
android:layout_
marginLeft=
"13dp
"
android:text=
"生日"
/>
android:text=
"生日"
/>
<TextView
<TextView
android:id=
"@+id/vip_birthday"
android:id=
"@+id/vip_birthday"
style=
"@style/default_blacktext_smallstyle"
style=
"@style/default_blacktext_
nopadding_
smallstyle"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:hint=
"请选择"
android:hint=
"请选择"
android:layout_marginLeft=
"21dp"
android:textSize=
"@dimen/all_body_size"
android:onClick=
"@{onClickListener}"
/>
android:onClick=
"@{onClickListener}"
/>
</LinearLayout>
</LinearLayout>
...
@@ -204,18 +228,19 @@
...
@@ -204,18 +228,19 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
android:background=
"@color/line_bg"
/>
android:background=
"@color/line_bg"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<Button
<Button
android:id=
"@+id/onSure"
android:id=
"@+id/onSure"
android:layout_alignParentBottom=
"true"
style=
"@style/button_positive_noradius"
style=
"@style/button_positive_noradius"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_marginBottom=
"15dp"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"确认"
/>
android:text=
"确认"
/>
...
...
app/src/main/res/layout/fragment_vip_level_edit.xml
View file @
e999ade9
...
@@ -202,6 +202,8 @@
...
@@ -202,6 +202,8 @@
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
...
@@ -209,9 +211,7 @@
...
@@ -209,9 +211,7 @@
android:id=
"@+id/onSure"
android:id=
"@+id/onSure"
style=
"@style/button_positive_noradius"
style=
"@style/button_positive_noradius"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_marginBottom=
"15dp"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"确认"
/>
android:text=
"确认"
/>
...
...
app/src/main/res/layout/fragment_vip_recharge_list.xml
View file @
e999ade9
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
android:text=
"可用余额"
/>
android:text=
"可用余额"
/>
<TextView
<TextView
android:id=
"@+id/
recharg
e_AMT"
android:id=
"@+id/
balanc
e_AMT"
style=
"@style/default_blacktext_bigstyle"
style=
"@style/default_blacktext_bigstyle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
app/src/main/res/mipmap-xhdpi/hd_default01.png
0 → 100644
View file @
e999ade9
5.88 KB
app/src/main/res/mipmap-xhdpi/hd_default02.png
0 → 100644
View file @
e999ade9
5.39 KB
app/src/main/res/values/dimens.xml
View file @
e999ade9
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<dimen
name=
"all_text_size_big"
>
22sp
</dimen>
<dimen
name=
"all_text_size_big"
>
22sp
</dimen>
<dimen
name=
"all_text_size_big_big"
>
30sp
</dimen>
<dimen
name=
"all_text_size_big_big"
>
30sp
</dimen>
<dimen
name=
"all_text_size_super_big"
>
25sp
</dimen>
<dimen
name=
"all_text_size_super_big"
>
25sp
</dimen>
<dimen
name=
"all_margin_left"
>
1
7
dp
</dimen>
<dimen
name=
"all_margin_left"
>
1
6
dp
</dimen>
<dimen
name=
"title_height"
>
50dp
</dimen>
<dimen
name=
"title_height"
>
50dp
</dimen>
<dimen
name=
"all_textview_width"
>
120dp
</dimen>
<dimen
name=
"all_textview_width"
>
120dp
</dimen>
<dimen
name=
"all_dialog_button"
>
40dp
</dimen>
<dimen
name=
"all_dialog_button"
>
40dp
</dimen>
...
...
app/src/main/res/values/styles.xml
View file @
e999ade9
...
@@ -56,12 +56,12 @@
...
@@ -56,12 +56,12 @@
<style
name=
"default_blacktext_nopadding_smallstyle"
>
<style
name=
"default_blacktext_nopadding_smallstyle"
>
<item
name=
"android:layout_width"
>
wrap_content
</item>
<item
name=
"android:layout_width"
>
wrap_content
</item>
<item
name=
"android:layout_height"
>
match_parent
</item>
<item
name=
"android:layout_height"
>
48dp
</item>
<item
name=
"android:gravity"
>
center_vertical
</item>
<item
name=
"android:gravity"
>
center_vertical
</item>
<item
name=
"android:singleLine"
>
true
</item>
<item
name=
"android:singleLine"
>
true
</item>
<item
name=
"android:padding"
>
@dimen/dp_4
</item>
<item
name=
"android:padding"
>
@dimen/dp_4
</item>
<item
name=
"android:textColor"
>
@color/black
</item>
<item
name=
"android:textColor"
>
@color/black
</item>
<item
name=
"android:textSize"
>
@dimen/
detail_textview
_size
</item>
<item
name=
"android:textSize"
>
@dimen/
all_text
_size
</item>
</style>
</style>
<style
name=
"default_blacktext_margin_smallstyle"
>
<style
name=
"default_blacktext_margin_smallstyle"
>
...
@@ -76,6 +76,18 @@
...
@@ -76,6 +76,18 @@
<item
name=
"android:textColor"
>
@color/black
</item>
<item
name=
"android:textColor"
>
@color/black
</item>
<item
name=
"android:textSize"
>
@dimen/detail_textview_size
</item>
<item
name=
"android:textSize"
>
@dimen/detail_textview_size
</item>
</style>
</style>
<style
name=
"default_blacktext_margin_16_sp_style"
>
<item
name=
"android:layout_width"
>
wrap_content
</item>
<item
name=
"android:layout_height"
>
48dp
</item>
<item
name=
"android:gravity"
>
center_vertical
</item>
<item
name=
"android:singleLine"
>
true
</item>
<item
name=
"android:layout_marginLeft"
>
17dp
</item>
<item
name=
"android:padding"
>
@dimen/sp_12
</item>
<item
name=
"android:paddingBottom"
>
@dimen/sp_12
</item>
<item
name=
"android:paddingTop"
>
@dimen/sp_12
</item>
<item
name=
"android:textColor"
>
@color/black
</item>
<item
name=
"android:textSize"
>
@dimen/all_text_size
</item>
</style>
<style
name=
"default_bluetext_popbutton"
>
<style
name=
"default_bluetext_popbutton"
>
<item
name=
"android:layout_width"
>
wrap_content
</item>
<item
name=
"android:layout_width"
>
wrap_content
</item>
...
@@ -293,8 +305,8 @@
...
@@ -293,8 +305,8 @@
</style>
</style>
<style
name=
"button_positive_noradius"
>
<style
name=
"button_positive_noradius"
>
<item
name=
"android:background"
>
@drawable/selector_gradient_red_button_background_noradius
<item
name=
"android:background"
>
@drawable/selector_gradient_red_button_background_noradius
</item>
</item>
<
item
name=
"android:layout_height"
>
@dimen/button3_height
<
/item>
<item
name=
"android:textColor"
>
@color/white
</item>
<item
name=
"android:textColor"
>
@color/white
</item>
<item
name=
"android:gravity"
>
center
</item>
<item
name=
"android:gravity"
>
center
</item>
<item
name=
"android:focusable"
>
false
</item>
<item
name=
"android:focusable"
>
false
</item>
...
@@ -395,6 +407,14 @@
...
@@ -395,6 +407,14 @@
<item
name=
"android:layout_width"
>
0dp
</item>
<item
name=
"android:layout_width"
>
0dp
</item>
<item
name=
"android:textSize"
>
@dimen/small_text_size
</item>
<item
name=
"android:textSize"
>
@dimen/small_text_size
</item>
</style>
</style>
<style
name=
"all_edittext_14sp_style"
>
<item
name=
"android:padding"
>
@dimen/dialog_padding
</item>
<item
name=
"android:singleLine"
>
false
</item>
<item
name=
"android:saveEnabled"
>
false
</item>
<item
name=
"android:background"
>
@drawable/selector_white_background_stroke
</item>
<item
name=
"android:layout_width"
>
0dp
</item>
<item
name=
"android:textSize"
>
@dimen/all_body_size
</item>
</style>
<style
name=
"textView_body"
>
<style
name=
"textView_body"
>
<item
name=
"android:padding"
>
@dimen/all_padding
</item>
<item
name=
"android:padding"
>
@dimen/all_padding
</item>
...
...
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