Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_highgold
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
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
android
android_highgold
Commits
b1ff1174
Commit
b1ff1174
authored
May 19, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.7发版
parent
e01ee605
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
60 additions
and
49 deletions
+60
-49
build.gradle
highgold/app/build.gradle
+8
-29
lycoin-release-v1.4.3.aar
highgold/app/libs/lycoin-release-v1.4.3.aar
+0
-0
DrawcashPresenter.java
.../com/mints/highgold/mvp/presenters/DrawcashPresenter.java
+8
-3
GoldTryPresenter.java
...a/com/mints/highgold/mvp/presenters/GoldTryPresenter.java
+1
-1
DrawcashActivity.java
...ava/com/mints/highgold/ui/activitys/DrawcashActivity.java
+33
-7
GoldRecordAdapter.java
...java/com/mints/highgold/ui/adapter/GoldRecordAdapter.java
+4
-4
activity_drawcash.xml
highgold/app/src/main/res/layout/activity_drawcash.xml
+6
-5
No files found.
highgold/app/build.gradle
View file @
b1ff1174
...
@@ -190,14 +190,6 @@ dependencies {
...
@@ -190,14 +190,6 @@ dependencies {
implementation
'com.sunfusheng:MarqueeView:1.4.1'
implementation
'com.sunfusheng:MarqueeView:1.4.1'
// 透明指示层
// 透明指示层
implementation
'me.toptas.fancyshowcase:fancyshowcaseview:1.1.5'
implementation
'me.toptas.fancyshowcase:fancyshowcaseview:1.1.5'
// 极光推送
implementation
'cn.jiguang.sdk:jpush:3.0.9'
implementation
'cn.jiguang.sdk:jcore:1.1.7'
// 支付宝 SDK AAR 包所需的配置
// implementation(name: 'alipaySdk-15.6.8-20191021122514', ext: 'aar')
implementation
(
name:
'alipaySdk-15.7.4-20200228192319-noUtdid'
,
ext:
'aar'
)
// 广点通广告 腾讯
implementation
(
name:
'GDTSDK.unionNormal.4.191.1061'
,
ext:
'aar'
)
// jsbridge
// jsbridge
implementation
'com.github.lzyzsd:jsbridge:1.0.4'
implementation
'com.github.lzyzsd:jsbridge:1.0.4'
// 阴影库-ShadowLayout
// 阴影库-ShadowLayout
...
@@ -218,13 +210,18 @@ dependencies {
...
@@ -218,13 +210,18 @@ dependencies {
implementation
files
(
'libs/sun.misc.BASE64Decoder.jar'
)
implementation
files
(
'libs/sun.misc.BASE64Decoder.jar'
)
// 三方接入
// 三方接入
// 立言积分广告
// implementation(name: 'lycoin-release-v1.4.3', ext: 'aar')
// 穿山甲广告
// 穿山甲广告
implementation
(
name:
'open_ad_sdk'
,
ext:
'aar'
)
implementation
(
name:
'open_ad_sdk'
,
ext:
'aar'
)
implementation
'pl.droidsonroids.gif:android-gif-drawable:1.2.6'
implementation
'pl.droidsonroids.gif:android-gif-drawable:1.2.6'
// 极光推送
implementation
'cn.jiguang.sdk:jpush:3.0.9'
implementation
'cn.jiguang.sdk:jcore:1.1.7'
// 支付宝 SDK AAR 包所需的配置
implementation
(
name:
'alipaySdk-15.7.4-20200228192319-noUtdid'
,
ext:
'aar'
)
// 广点通广告 腾讯
implementation
(
name:
'GDTSDK.unionNormal.4.191.1061'
,
ext:
'aar'
)
// shareSdk
// shareSdk
implementation
project
(
':shareSdkLib'
)
implementation
project
(
':shareSdkLib'
)
// umeng
// umeng
...
@@ -236,46 +233,34 @@ dependencies {
...
@@ -236,46 +233,34 @@ dependencies {
implementation
files
(
'libs/smantifraud.aar'
)
implementation
files
(
'libs/smantifraud.aar'
)
// 高德地图
// 高德地图
implementation
files
(
'libs/AMap_Location_V4.6.0_20190423.jar'
)
implementation
files
(
'libs/AMap_Location_V4.6.0_20190423.jar'
)
// 移动安全联盟
// 移动安全联盟
implementation
(
name:
'msa_mdid_1.0.13'
,
ext:
'aar'
)
implementation
(
name:
'msa_mdid_1.0.13'
,
ext:
'aar'
)
// 猎豹游戏
// 猎豹游戏
implementation
(
name:
'cmgame-sdk-tt2103-1.1.8'
,
ext:
'aar'
)
implementation
(
name:
'cmgame-sdk-tt2103-1.1.8'
,
ext:
'aar'
)
// 增加X5,可以提高在android5.0和5.1下的游戏体验,webview比默认的做了很多优化
// 增加X5,可以提高在android5.0和5.1下的游戏体验,webview比默认的做了很多优化
implementation
(
name:
'x5fit-1.1.8'
,
ext:
'aar'
)
implementation
(
name:
'x5fit-1.1.8'
,
ext:
'aar'
)
implementation
files
(
"libs/qq_x5.jar"
)
// x5版本:20190429_175122
implementation
files
(
"libs/qq_x5.jar"
)
// x5版本:20190429_175122
// 鱼丸盒子
// 鱼丸盒子
implementation
(
name:
'xzzq_ywsdk_1.0.6'
,
ext:
'aar'
)
implementation
(
name:
'xzzq_ywsdk_1.0.6'
,
ext:
'aar'
)
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.41"
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.41"
implementation
'com.liulishuo.filedownloader:library:1.6.8'
implementation
'com.liulishuo.filedownloader:library:1.6.8'
implementation
"org.greenrobot:eventbus:3.1.0-RC"
implementation
"org.greenrobot:eventbus:3.1.0-RC"
// 愉悦推
// 愉悦推
// implementation(name: 'mduisdk_2.3.1.10', ext: 'aar')
// implementation(name: 'mduisdk_2.3.1.10', ext: 'aar')
// 愉悦推 微信小程序sdk
// 愉悦推 微信小程序sdk
// implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
// implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
// 百度视频
// 百度视频
// implementation(name: 'lib-bdvsdk-release', ext: 'aar')
// implementation(name: 'lib-bdvsdk-release', ext: 'aar')
// implementation 'com.android.support:support-v4:27.1.1'
// implementation 'com.android.support:support-v4:27.1.1'
// implementation 'com.githang:status-bar-compat:0.7'
// implementation 'com.githang:status-bar-compat:0.7'
// implementation 'com.github.castorflex.verticalviewpager:library:19.0.1'
// implementation 'com.github.castorflex.verticalviewpager:library:19.0.1'
// implementation 'com.baidu.mobstat:mtj-sdk-circle:latest.integration'
// implementation 'com.baidu.mobstat:mtj-sdk-circle:latest.integration'
// 一览视频
// 一览视频
implementation
"com.yilan.sdk:ui:1.9.0.2"
//修改为具体的sdk版本
implementation
"com.yilan.sdk:ui:1.9.0.2"
//修改为具体的sdk版本
implementation
"com.yilan.sdk:ad:1.9.0.2"
//修改为具体的sdk版本,支持广点通、百度广告
implementation
"com.yilan.sdk:ad:1.9.0.2"
//修改为具体的sdk版本,支持广点通、百度广告
implementation
(
'com.aliyun.ams:alicloud-android-httpdns:1.2.3@aar'
)
{
implementation
(
'com.aliyun.ams:alicloud-android-httpdns:1.2.3@aar'
)
{
transitive
true
transitive
true
}
}
// implementation('com.aliyun.ams:alicloud-android-httpdns:1.2.3', {
// exclude group: 'com.ta.utdid2'
// exclude group: 'com.ut.device'
// })
//支持ijkplayer进行播放,建议添加
//支持ijkplayer进行播放,建议添加
implementation
'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
...
@@ -283,7 +268,6 @@ dependencies {
...
@@ -283,7 +268,6 @@ dependencies {
implementation
'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
implementation
'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
// Mintegral 广告
// Mintegral 广告
implementation
'com.mintegral.msdk:videojs:10.2.41'
implementation
'com.mintegral.msdk:videojs:10.2.41'
implementation
'com.mintegral.msdk:mtgjscommon:10.2.41'
implementation
'com.mintegral.msdk:mtgjscommon:10.2.41'
...
@@ -299,17 +283,12 @@ dependencies {
...
@@ -299,17 +283,12 @@ dependencies {
implementation
'com.mintegral.msdk:nativeex:10.2.41'
implementation
'com.mintegral.msdk:nativeex:10.2.41'
implementation
'com.mintegral.msdk:interstitialvideo:10.2.41'
implementation
'com.mintegral.msdk:interstitialvideo:10.2.41'
implementation
'com.mintegral.msdk:interactiveads:10.2.41'
implementation
'com.mintegral.msdk:interactiveads:10.2.41'
// 开发者后台创建App勾选APK为YES则加上mtgdownloads依赖
implementation
'com.mintegral.msdk:mtgdownloads:10.2.41'
implementation
'com.mintegral.msdk:mtgdownloads:10.2.41'
// 推啊广告
// 推啊广告
implementation
(
'com.tuia:sdk:2.0.1.0'
)
{
implementation
(
'com.tuia:sdk:2.0.1.0'
)
{
transitive
=
true
transitive
=
true
exclude
group:
'com.google.code.gson'
exclude
group:
'com.google.code.gson'
}
}
// 珊瑚广告
// 珊瑚广告
// implementation(name:'adapt-1.3.3', ext:'aar')
// implementation(name:'adapt-1.3.3', ext:'aar')
// implementation(name:'commonbase-1.0.2', ext:'aar')
// implementation(name:'commonbase-1.0.2', ext:'aar')
...
...
highgold/app/libs/lycoin-release-v1.4.3.aar
deleted
100644 → 0
View file @
e01ee605
File deleted
highgold/app/src/main/java/com/mints/highgold/mvp/presenters/DrawcashPresenter.java
View file @
b1ff1174
...
@@ -122,9 +122,13 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> {
...
@@ -122,9 +122,13 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> {
/**
/**
* 金币/积分兑换
* 金币/积分兑换
*/
*/
public
void
addCashoutReq
(
double
cash
,
String
paymentType
)
{
public
void
addCashoutReq
(
double
cash
,
String
paymentType
,
int
curBtnNum
)
{
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
if
(
curBtnNum
>
3
)
{
// 钻石
vo
.
put
(
"useType"
,
"useDiamonds"
);
}
vo
.
put
(
"cash"
,
cash
);
vo
.
put
(
"cash"
,
cash
);
if
(
TextUtils
.
equals
(
paymentType
,
"weixin"
))
{
if
(
TextUtils
.
equals
(
paymentType
,
"weixin"
))
{
vo
.
put
(
"payChannel"
,
"WEIXIN"
);
vo
.
put
(
"payChannel"
,
"WEIXIN"
);
...
@@ -176,8 +180,9 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> {
...
@@ -176,8 +180,9 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> {
*
*
* @param context
* @param context
* @param curCash
* @param curCash
* @param curBtnNum
*/
*/
public
void
saveTerminalInfo
(
Context
context
,
double
curCash
,
String
paymentType
)
{
public
void
saveTerminalInfo
(
Context
context
,
double
curCash
,
String
paymentType
,
int
curBtnNum
)
{
view
.
showLoading
(
"加载中..."
);
view
.
showLoading
(
"加载中..."
);
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
...
@@ -261,7 +266,7 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> {
...
@@ -261,7 +266,7 @@ public class DrawcashPresenter extends BasePresenter<DrawcashView> {
String
message
=
baseResponse
.
getMessage
();
String
message
=
baseResponse
.
getMessage
();
switch
(
code
)
{
switch
(
code
)
{
case
200
:
//成功
case
200
:
//成功
addCashoutReq
(
curCash
,
paymentType
);
addCashoutReq
(
curCash
,
paymentType
,
curBtnNum
);
break
;
break
;
default
:
default
:
view
.
showToast
(
message
);
view
.
showToast
(
message
);
...
...
highgold/app/src/main/java/com/mints/highgold/mvp/presenters/GoldTryPresenter.java
View file @
b1ff1174
...
@@ -58,7 +58,7 @@ public class GoldTryPresenter extends BasePresenter<GoldTryView> {
...
@@ -58,7 +58,7 @@ public class GoldTryPresenter extends BasePresenter<GoldTryView> {
* 收入记录
* 收入记录
*/
*/
public
void
getCoinRecords
()
{
public
void
getCoinRecords
()
{
view
.
showLoading
(
"加载中..."
);
//
view.showLoading("加载中...");
AppHttpManager
.
getInstance
(
loanApplication
)
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
getCoinRecords
(),
.
call
(
loanService
.
getCoinRecords
(),
...
...
highgold/app/src/main/java/com/mints/highgold/ui/activitys/DrawcashActivity.java
View file @
b1ff1174
...
@@ -120,6 +120,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
...
@@ -120,6 +120,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
private
boolean
cashOut1yuan
=
false
;
//true-提现过0.1元
private
boolean
cashOut1yuan
=
false
;
//true-提现过0.1元
private
boolean
cashOut2yuan
=
false
;
//true-提现过100元
private
boolean
cashOut2yuan
=
false
;
//true-提现过100元
private
boolean
cashOut4yuan
=
false
;
//true-提现过1元
private
boolean
cashOut4yuan
=
false
;
//true-提现过1元
private
boolean
cashOut5yuan
=
false
;
//true-提现过5元
private
String
paymentType
=
"weixin"
;
private
String
paymentType
=
"weixin"
;
private
WXInfo
wxInfo
=
null
;
private
WXInfo
wxInfo
=
null
;
...
@@ -251,6 +252,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
...
@@ -251,6 +252,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
DrawcashBean
.
CashOutMoneyArrBean
moneyArrBean3
=
cashOutDiamondsArr
.
get
(
2
);
DrawcashBean
.
CashOutMoneyArrBean
moneyArrBean3
=
cashOutDiamondsArr
.
get
(
2
);
cashOut4yuan
=
moneyArrBean1
.
isCanUseOnce
();
cashOut4yuan
=
moneyArrBean1
.
isCanUseOnce
();
cashOut5yuan
=
moneyArrBean2
.
isCanUseOnce
();
drawcash4
=
moneyArrBean1
.
getMoney
();
drawcash4
=
moneyArrBean1
.
getMoney
();
drawcash5
=
moneyArrBean2
.
getMoney
();
drawcash5
=
moneyArrBean2
.
getMoney
();
...
@@ -300,6 +302,10 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
...
@@ -300,6 +302,10 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
btnDrawcashFour
.
setEnabled
(
false
);
btnDrawcashFour
.
setEnabled
(
false
);
}
}
if
(!
cashOut5yuan
)
{
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
btnDrawcashFive
.
setEnabled
(
false
);
}
// 微信为默认支付方式
// 微信为默认支付方式
if
(
TextUtils
.
equals
(
paymentType
,
"weixin"
))
{
if
(
TextUtils
.
equals
(
paymentType
,
"weixin"
))
{
...
@@ -577,7 +583,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
...
@@ -577,7 +583,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
}
}
}
}
drawcashPresenter
.
saveTerminalInfo
(
getContext
(),
curCash
,
paymentType
);
drawcashPresenter
.
saveTerminalInfo
(
getContext
(),
curCash
,
paymentType
,
curBtnNum
);
}
else
{
}
else
{
showMissingPermissionDialog
(
"设备,地理位置"
);
showMissingPermissionDialog
(
"设备,地理位置"
);
}
}
...
@@ -632,7 +638,11 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
...
@@ -632,7 +638,11 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
}
else
{
}
else
{
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
}
}
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
if
(
cashOut5yuan
)
{
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_none
));
}
else
{
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
}
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashHint
.
setText
(
"所需金币:"
+
(
int
)
(
drawcash1
*
10000
));
btnDrawcashHint
.
setText
(
"所需金币:"
+
(
int
)
(
drawcash1
*
10000
));
...
@@ -654,7 +664,11 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
...
@@ -654,7 +664,11 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
}
else
{
}
else
{
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
}
}
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
if
(
cashOut5yuan
)
{
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_none
));
}
else
{
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
}
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashHint
.
setText
(
"所需金币:"
+
(
drawcash2
*
10000
));
btnDrawcashHint
.
setText
(
"所需金币:"
+
(
drawcash2
*
10000
));
...
@@ -680,7 +694,11 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
...
@@ -680,7 +694,11 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
}
else
{
}
else
{
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
}
}
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
if
(
cashOut5yuan
)
{
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_none
));
}
else
{
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
}
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashHint
.
setText
(
"所需金币:"
+
(
drawcash3
*
10000
));
btnDrawcashHint
.
setText
(
"所需金币:"
+
(
drawcash3
*
10000
));
setDrawLayout
(
cash
);
setDrawLayout
(
cash
);
...
@@ -701,7 +719,11 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
...
@@ -701,7 +719,11 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
}
}
btnDrawcashThree
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashThree
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_enable
));
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_enable
));
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
if
(
cashOut5yuan
)
{
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_none
));
}
else
{
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
}
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashHint
.
setText
(
"所需钻石:"
+
(
drawcash4
*
10000
));
btnDrawcashHint
.
setText
(
"所需钻石:"
+
(
drawcash4
*
10000
));
setDrawLayout
(
cash
);
setDrawLayout
(
cash
);
...
@@ -725,7 +747,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
...
@@ -725,7 +747,7 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
}
else
{
}
else
{
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
}
}
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_enable
));
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_
new_
enable
));
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
btnDrawcashHint
.
setText
(
"所需钻石:"
+
(
drawcash5
*
10000
));
btnDrawcashHint
.
setText
(
"所需钻石:"
+
(
drawcash5
*
10000
));
setDrawLayout
(
cash
);
setDrawLayout
(
cash
);
...
@@ -750,7 +772,11 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
...
@@ -750,7 +772,11 @@ public class DrawcashActivity extends BaseActivity implements DrawcashView, OnLo
}
else
{
}
else
{
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
btnDrawcashFour
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
}
}
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_none
));
if
(
cashOut5yuan
)
{
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_none
));
}
else
{
btnDrawcashFive
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_new_dont
));
}
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_enable
));
btnDrawcashSix
.
setBackground
(
getResources
().
getDrawable
(
R
.
mipmap
.
ic_drawcash_enable
));
btnDrawcashHint
.
setText
(
"所需钻石:"
+
(
drawcash6
*
10000
));
btnDrawcashHint
.
setText
(
"所需钻石:"
+
(
drawcash6
*
10000
));
setDrawLayout
(
cash
);
setDrawLayout
(
cash
);
...
...
highgold/app/src/main/java/com/mints/highgold/ui/adapter/GoldRecordAdapter.java
View file @
b1ff1174
...
@@ -87,10 +87,10 @@ public class GoldRecordAdapter extends BaseAdapter {
...
@@ -87,10 +87,10 @@ public class GoldRecordAdapter extends BaseAdapter {
case
0
:
//增加
case
0
:
//增加
if
(
data
.
getRewardType
()==
0
){
if
(
data
.
getRewardType
()==
0
){
// 0-金币
// 0-金币
viewHolder
.
tv_goldrecord_cash
.
setText
(
"金币"
);
viewHolder
.
tv_goldrecord_cash
_type
.
setText
(
"金币"
);
viewHolder
.
tv_goldrecord_cash
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
main_mints
));
viewHolder
.
tv_goldrecord_cash
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
main_mints
));
}
else
{
}
else
{
viewHolder
.
tv_goldrecord_cash
.
setText
(
"钻石"
);
viewHolder
.
tv_goldrecord_cash
_type
.
setText
(
"钻石"
);
viewHolder
.
tv_goldrecord_cash
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
versus_task_play_text
));
viewHolder
.
tv_goldrecord_cash
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
versus_task_play_text
));
}
}
viewHolder
.
tv_goldrecord_cash
.
setText
(
"+"
+
data
.
getUnitCoin
());
viewHolder
.
tv_goldrecord_cash
.
setText
(
"+"
+
data
.
getUnitCoin
());
...
@@ -99,9 +99,9 @@ public class GoldRecordAdapter extends BaseAdapter {
...
@@ -99,9 +99,9 @@ public class GoldRecordAdapter extends BaseAdapter {
default
:
//减少
default
:
//减少
if
(
data
.
getRewardType
()==
0
){
if
(
data
.
getRewardType
()==
0
){
// 0-金币
// 0-金币
viewHolder
.
tv_goldrecord_cash
.
setText
(
"金币"
);
viewHolder
.
tv_goldrecord_cash
_type
.
setText
(
"金币"
);
}
else
{
}
else
{
viewHolder
.
tv_goldrecord_cash
.
setText
(
"钻石"
);
viewHolder
.
tv_goldrecord_cash
_type
.
setText
(
"钻石"
);
}
}
viewHolder
.
tv_goldrecord_cash
.
setText
(
"-"
+
data
.
getUnitCoin
());
viewHolder
.
tv_goldrecord_cash
.
setText
(
"-"
+
data
.
getUnitCoin
());
...
...
highgold/app/src/main/res/layout/activity_drawcash.xml
View file @
b1ff1174
...
@@ -267,13 +267,14 @@
...
@@ -267,13 +267,14 @@
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:visibility=
"gone"
android:id=
"@+id/ll_drawcash_diamond"
android:id=
"@+id/ll_drawcash_diamond"
android:paddingTop=
"50pt"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#
9
0000000"
android:background=
"#
5
0000000"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
>
android:visibility=
"gone"
>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -289,10 +290,10 @@
...
@@ -289,10 +290,10 @@
android:id=
"@+id/tv_drawcash_diamond_hint"
android:id=
"@+id/tv_drawcash_diamond_hint"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"
16
pt"
android:layout_marginTop=
"
60
pt"
android:text=
"观看任意5个广告视频即可激活(0/5)"
android:text=
"观看任意5个广告视频即可激活(0/5)"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"1
2
sp"
/>
android:textSize=
"1
6
sp"
/>
</LinearLayout>
</LinearLayout>
</FrameLayout>
</FrameLayout>
...
...
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