Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
896814b5
Commit
896814b5
authored
Nov 23, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改早起打卡,代码优化
parent
495d7baf
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
173 additions
and
117 deletions
+173
-117
build.gradle
GoodMoney/app/build.gradle
+2
-2
CsjVedioAdManager.java
.../java/com/mints/goodmoney/ad/video/CsjVedioAdManager.java
+6
-4
FriendHallMsgBean.java
...java/com/mints/goodmoney/mvp/model/FriendHallMsgBean.java
+3
-3
AwardActivity.kt
...in/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
+6
-1
MorningClockActivity.kt
.../com/mints/goodmoney/ui/activitys/MorningClockActivity.kt
+9
-5
MorningClockAdapter.kt
...ava/com/mints/goodmoney/ui/adapter/MorningClockAdapter.kt
+1
-2
FriendsFragment.kt
...n/java/com/mints/goodmoney/ui/fragment/FriendsFragment.kt
+2
-5
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+19
-17
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+14
-24
MyViewPager.java
...main/java/com/mints/goodmoney/ui/widgets/MyViewPager.java
+1
-1
activity_morning_clock.xml
GoodMoney/app/src/main/res/layout/activity_morning_clock.xml
+51
-18
fragment_main_friends.xml
GoodMoney/app/src/main/res/layout/fragment_main_friends.xml
+9
-6
item_rv_morning_clock.xml
GoodMoney/app/src/main/res/layout/item_rv_morning_clock.xml
+47
-28
bg_item_morning_clock_bottom.png
...rc/main/res/mipmap-xhdpi/bg_item_morning_clock_bottom.png
+0
-0
bg_item_morning_clock_status.png
...rc/main/res/mipmap-xhdpi/bg_item_morning_clock_status.png
+0
-0
bg_item_morning_clock_top.png
...p/src/main/res/mipmap-xhdpi/bg_item_morning_clock_top.png
+0
-0
bg_morning_clock.png
GoodMoney/app/src/main/res/mipmap-xhdpi/bg_morning_clock.png
+0
-0
ic_font_morning_clock.png
...y/app/src/main/res/mipmap-xhdpi/ic_font_morning_clock.png
+0
-0
colors.xml
GoodMoney/app/src/main/res/values/colors.xml
+3
-1
No files found.
GoodMoney/app/build.gradle
View file @
896814b5
...
...
@@ -202,11 +202,11 @@ dependencies {
// TalkingDada
implementation
files
(
'libs/SaaS_AppAnalytics_Android_SDK_V4.0.36.jar'
)
// 一览视频
implementation
(
"com.yilan.sdk:ui:
2.8.0.12
"
)
{
implementation
(
"com.yilan.sdk:ui:
3.0.0.3
"
)
{
exclude
group:
'com.yilan.sdk'
,
module:
'toutiao'
exclude
group:
'com.yilan.sdk'
,
module:
'gdt'
}
implementation
(
"com.yilan.sdk:ad:
2.8.0.12
"
){
implementation
(
"com.yilan.sdk:ad:
3.0.0.3
"
){
exclude
group:
'com.yilan.sdk'
,
module:
'toutiao'
exclude
group:
'com.yilan.sdk'
,
module:
'gdt'
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/CsjVedioAdManager.java
View file @
896814b5
...
...
@@ -19,6 +19,8 @@ import com.mints.goodmoney.utils.MD5;
import
com.mints.goodmoney.utils.SPUtil
;
import
com.mints.library.utils.json.JsonUtil
;
import
net.grandcentrix.tray.AppPreferences
;
import
java.util.HashMap
;
/**
...
...
@@ -27,7 +29,7 @@ import java.util.HashMap;
public
class
CsjVedioAdManager
extends
BaseVideoAd
{
private
static
CsjVedioAdManager
_inst
;
private
SPUtil
spUtil
;
private
AppPreferences
ps
;
private
int
curCoin
;
private
String
extraId
;
private
CsjVedioAdPresenter
csjVedioAdPresenter
;
...
...
@@ -57,7 +59,7 @@ public class CsjVedioAdManager extends BaseVideoAd {
private
void
init
(
Activity
activity
)
{
this
.
activity
=
activity
;
spUtil
=
SPUtil
.
getInstance
(
);
ps
=
new
AppPreferences
(
activity
);
userManager
=
UserManager
.
getInstance
();
TTNativeExpressManager
ttNativeExpressManager
=
new
TTNativeExpressManager
();
...
...
@@ -234,8 +236,8 @@ public class CsjVedioAdManager extends BaseVideoAd {
vo
.
put
(
"adtype"
,
Constant
.
ADTYPE_VEDIO
);
vo
.
put
(
"tid"
,
tid
);
vo
.
put
(
"adsource"
,
Constant
.
AD_SOURCE_CSJ
);
if
(
spUtil
!=
null
)
{
vo
.
put
(
"ip"
,
spUtil
.
getString
(
Constant
.
CSJ_VEDIO_APPIP
));
if
(
ps
!=
null
)
{
vo
.
put
(
"ip"
,
ps
.
getString
(
Constant
.
CSJ_VEDIO_APPIP
,
""
));
}
switch
(
carrierType
)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/model/FriendHallMsgBean.java
View file @
896814b5
...
...
@@ -25,7 +25,7 @@ public class FriendHallMsgBean implements Serializable {
private
String
periods
;
private
String
cashMsg
;
private
double
contribution_today
;
private
String
cash
;
private
double
cash
;
private
int
status
;
private
int
friendCount
;
private
int
directFriendsCount
;
...
...
@@ -123,11 +123,11 @@ public class FriendHallMsgBean implements Serializable {
this
.
contribution_today
=
contribution_today
;
}
public
String
getCash
()
{
public
double
getCash
()
{
return
cash
;
}
public
void
setCash
(
String
cash
)
{
public
void
setCash
(
double
cash
)
{
this
.
cash
=
cash
;
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
View file @
896814b5
...
...
@@ -128,6 +128,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
}
Constant
.
CARRIER_SIGNIN_HOMEPAGE_AWARD
->
{
tvAwardContent
.
setText
(
"签到奖励"
+
curCoin
+
"金币"
)
tvAwardNext
.
setText
(
"看视频最高可得3倍金币奖励"
)
}
Constant
.
CARRIER_EATMEAL_SUBSIDY_NOT
->
{
tvAwardContent
.
setText
(
"还未到吃饭时间"
)
...
...
@@ -141,7 +142,11 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
}
tvAwardNext
.
setText
(
"我知道了"
)
}
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
,
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
->
{
tvAwardContent
.
text
=
"奖励金币已发放"
tvAwardNext
.
visibility
=
View
.
GONE
tvAwardHint
.
visibility
=
View
.
GONE
}
Constant
.
CARRIER_CHALLENGE_TURN
,
Constant
.
CARRIER_CHALLENGE_CARD
,
Constant
.
CARRIER_WALK_BUBBLE
,
Constant
.
CARRIER_EATMEAL_SUBSIDY
,
Constant
.
CARRIER_WALK
,
Constant
.
CARRIER_HOMEWATER
->
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/MorningClockActivity.kt
View file @
896814b5
...
...
@@ -14,8 +14,6 @@ import com.mints.goodmoney.mvp.views.MorningClockView
import
com.mints.goodmoney.ui.activitys.base.BaseActivity
import
com.mints.goodmoney.ui.adapter.MorningClockAdapter
import
kotlinx.android.synthetic.main.activity_morning_clock.*
import
kotlinx.android.synthetic.main.activity_water.*
import
kotlinx.android.synthetic.main.header_layout.*
/**
* 描述:早起打卡
...
...
@@ -69,15 +67,21 @@ class MorningClockActivity : BaseActivity()
override
fun
getUpEarlySignMsgSuc
(
data
:
MorningClockBean
)
{
morningClockList
=
data
.
targetList
tvMorningClockClick
.
isEnabled
=
data
.
isCanClick
tvMorningClockClick
.
text
=
data
.
buttonMsg
if
(
data
.
isCanClick
)
{
tvMorningClockClick
.
setBackground
(
resources
.
getDrawable
(
R
.
drawable
.
shape_water_btn
))
tvMorningClockClick
.
isEnabled
=
true
}
else
{
tvMorningClockClick
.
setBackground
(
resources
.
getDrawable
(
R
.
drawable
.
shape_tv_gold_none
))
tvMorningClockClick
.
isEnabled
=
false
}
tvMorningClockClick
.
text
=
data
.
buttonMsg
initRvView
()
}
private
fun
initRvView
()
{
if
(
morningClockList
!=
null
&&
morningClockList
!!
.
size
>
0
)
{
val
gridLayoutManager
=
GridLayoutManager
(
this
,
4
)
val
gridLayoutManager
=
GridLayoutManager
(
this
,
2
)
rvMorningClock
.
layoutManager
=
gridLayoutManager
morningClockAdapter
=
MorningClockAdapter
(
morningClockList
!!
)
rvMorningClock
.
adapter
=
morningClockAdapter
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/adapter/MorningClockAdapter.kt
View file @
896814b5
...
...
@@ -18,7 +18,6 @@ class MorningClockAdapter(val morningClockList: MutableList<MorningClockBean.Mor
lateinit
var
mOnItemClickListener
:
OnItemClickListener
inner
class
ViewHolder
(
view
:
View
)
:
RecyclerView
.
ViewHolder
(
view
)
{
val
rlMorningClockItemRoot
:
LinearLayout
=
view
.
findViewById
(
R
.
id
.
rlMorningClockItemRoot
)
val
tvMorningClockItemDay
:
TextView
=
view
.
findViewById
(
R
.
id
.
tvMorningClockItemDay
)
val
tvMorningClockItemCoin
:
TextView
=
view
.
findViewById
(
R
.
id
.
tvMorningClockItemCoin
)
val
tvMorningClockItemStatus
:
TextView
=
view
.
findViewById
(
R
.
id
.
tvMorningClockItemStatus
)
...
...
@@ -33,7 +32,7 @@ class MorningClockAdapter(val morningClockList: MutableList<MorningClockBean.Mor
override
fun
onBindViewHolder
(
holder
:
ViewHolder
,
position
:
Int
)
{
val
morningClockBean
=
morningClockList
[
position
]
holder
.
tvMorningClockItemDay
.
text
=
morningClockBean
.
needDays
.
toString
()
holder
.
tvMorningClockItemDay
.
text
=
"${morningClockBean.needDays}天\n连续打卡"
holder
.
tvMorningClockItemCoin
.
text
=
"${morningClockBean.coin}金币"
holder
.
tvMorningClockItemStatus
.
text
=
morningClockBean
.
buttonMsg
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/FriendsFragment.kt
View file @
896814b5
...
...
@@ -204,15 +204,12 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener, View.OnC
}
private
fun
generateData
(
data
:
FriendHallMsgBean
)
{
if
(
TextUtils
.
isEmpty
(
data
.
button
))
{
btn_get_bonus
.
text
=
"结算中"
}
friends_sum
.
text
=
""
+
data
.
friendCount
friends_directly_sum
.
text
=
""
+
data
.
directFriendsCount
friends_indirect_sum
.
text
=
""
+
data
.
indirectFriendsCount
btn_get_bonus
.
isEnabled
=
data
.
status
==
0
&&
data
.
cash
.
toInt
()
>
0
btn_get_bonus
.
text
=
data
.
button
btn_get_bonus
.
isEnabled
=
data
.
status
==
0
&&
data
.
cash
>
0
tv_bonus_date
.
text
=
data
.
periods
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
896814b5
...
...
@@ -18,8 +18,6 @@ import com.mints.goodmoney.mvp.model.UserTaskMsgBean
import
com.mints.goodmoney.mvp.presenters.HomePresenter
import
com.mints.goodmoney.mvp.views.HomeView
import
com.mints.goodmoney.ui.activitys.AwardActivity
import
com.mints.goodmoney.ui.activitys.LoginActivity
import
com.mints.goodmoney.ui.activitys.MainActivity
import
com.mints.goodmoney.ui.activitys.WebActivity
import
com.mints.goodmoney.ui.fragment.base.BaseFragment
import
com.mints.goodmoney.ui.widgets.DialogListener
...
...
@@ -33,7 +31,6 @@ import com.yilan.sdk.ui.little.YLLittleVideoFragment
import
com.yilan.sdk.ylad.YLAdListener
import
kotlinx.android.synthetic.main.fragment_main_first.*
import
net.grandcentrix.tray.AppPreferences
import
kotlin.collections.ArrayList
/**
* 描述:首页
...
...
@@ -213,21 +210,26 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
userMsgBean
=
data
// 保存Ip,用于穿山甲回调校验
ps
.
put
(
Constant
.
CSJ_VEDIO_APPIP
,
""
)
// 放到个人中心展示 防止首页红包转动异常
// 新人福利
if
(
data
.
userMsg
.
firstGiveCoin
>
0
)
{
val
bundle
=
Bundle
()
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
data
.
userMsg
.
firstGiveCoin
)
bundle
.
putString
(
Constant
.
MAIN_CARRIER_TYPE
,
Constant
.
CARRIER_NEW_USER
)
readyGo
(
AwardActivity
::
class
.
java
,
bundle
)
}
else
{
// 离线收益
if
(
data
.
offlineBean
.
offlineIncome
>
0
)
{
val
bundle
=
Bundle
()
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
data
.
offlineBean
.
offlineIncome
)
bundle
.
putString
(
Constant
.
MAIN_CARRIER_TYPE
,
Constant
.
CARRIER_OFFLINE_DOUBLE
)
readyGo
(
AwardActivity
::
class
.
java
,
bundle
)
}
}
// if (data.userMsg.firstGiveCoin > 0) {
// val bundle = Bundle()
// bundle.putInt(Constant.MAIN_CUR_COIN, data.userMsg.firstGiveCoin)
// bundle.putString(Constant.MAIN_CARRIER_TYPE, Constant.CARRIER_NEW_USER)
// readyGo(AwardActivity::class.java, bundle)
// } else {
// // 离线收益
// if (data.offlineBean.offlineIncome > 0) {
// val bundle = Bundle()
// bundle.putInt(Constant.MAIN_CUR_COIN, data.offlineBean.offlineIncome)
// bundle.putString(Constant.MAIN_CARRIER_TYPE, Constant.CARRIER_OFFLINE_DOUBLE)
// readyGo(AwardActivity::class.java, bundle)
// }
// }
// 设置视频权限
vedioAdingManager
?.
initAdWeight
(
data
.
vedioRules
.
csJ_VEDIO
.
rate
,
data
.
vedioRules
.
ylH_VEDIO
.
rate
)
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
896814b5
...
...
@@ -67,6 +67,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
private
var
hotList
:
List
<
BannerBean
.
ListBean
>?
=
arrayListOf
()
// 当天签到金币
private
var
carrierType
=
""
private
var
curSignCoin
=
50
// 签到信息
...
...
@@ -338,26 +339,10 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
val
finalSignStatus
=
signStatus
item_clock_signview
.
setSignViewListener
{
day
->
if
(
nowDate
==
day
)
{
RxPermissions
(
requireActivity
())
.
request
(
Manifest
.
permission
.
READ_PHONE_STATE
,
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
)
.
subscribe
{
granted
:
Boolean
->
if
(
granted
)
{
// if (userManager.adShowFlag) {
// if (finalSignStatus == 0) {
// myPresenter.signInHomePage()
// } else
if
(
finalSignStatus
==
1
)
{
val
bundle
=
Bundle
()
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
curSignCoin
*
2
)
bundle
.
putString
(
Constant
.
MAIN_CARRIER_TYPE
,
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
)
readyGo
(
AwardActivity
::
class
.
java
,
bundle
)
}
// }
}
else
{
showMissingPermissionDialog
(
"设备、储存"
)
}
}
if
(
finalSignStatus
==
1
)
{
carrierType
=
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
awardVedio
(
curSignCoin
*
2
,
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
)
}
}
}
}
...
...
@@ -487,7 +472,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
return
}
awardVedio
(
taskBean
.
otherConfig
.
coin
)
awardVedio
(
taskBean
.
otherConfig
.
coin
,
Constant
.
CARRIER_VERSUS_VIDEO
)
}
}
...
...
@@ -635,7 +620,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
/**
* 获取激励视频
*/
private
fun
awardVedio
(
coin
:
Int
)
{
private
fun
awardVedio
(
coin
:
Int
,
carrierType
:
String
)
{
if
(
vedioAdingManager
.
vedioFinishFlag
)
{
showToast
(
"今日视频已看完,请明天再来吧"
)
return
...
...
@@ -644,7 +629,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
showLoading
(
"加载中..."
)
val
bean
=
VedioAdingBean
()
bean
.
carrierType
=
Constant
.
CARRIER_VERSUS_VIDEO
bean
.
carrierType
=
carrierType
bean
.
curCoin
=
coin
loadVedio
(
vedioAdingManager
,
bean
,
true
)
...
...
@@ -686,13 +671,18 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
private
fun
vedioAdingSuccess
(
adType
:
String
)
{
val
bundle
=
Bundle
()
if
(
TextUtils
.
equals
(
carrierType
,
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
))
{
bundle
.
putString
(
Constant
.
MAIN_CARRIER_TYPE
,
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
)
readyGo
(
AwardActivity
::
class
.
java
,
bundle
)
return
}
for
(
autoListBean
in
userConfig
!!
.
autoList
)
{
if
(
autoListBean
.
baseConfig
.
taskId
==
MainMyAdapter
.
APP_VEDIO
)
{
if
(
autoListBean
.
otherConfig
!=
null
)
{
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
autoListBean
.
otherConfig
.
coin
)
bundle
.
putString
(
Constant
.
MAIN_CARRIER_TYPE
,
Constant
.
CARRIER_VERSUS_VIDEO
)
readyGo
(
AwardActivity
::
class
.
java
,
bundle
)
return
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/widgets/MyViewPager.java
View file @
896814b5
...
...
@@ -20,7 +20,7 @@ public class MyViewPager extends ViewPager
// TODO Auto-generated constructor stub
}
private
boolean
isCanScroll
=
tru
e
;
private
boolean
isCanScroll
=
fals
e
;
public
void
setCanScroll
(
boolean
isCanScroll
)
{
...
...
GoodMoney/app/src/main/res/layout/activity_morning_clock.xml
View file @
896814b5
...
...
@@ -2,7 +2,7 @@
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/
white
"
android:background=
"@color/
order_hint_color
"
android:fadingEdge=
"none"
android:overScrollMode=
"never"
>
...
...
@@ -12,10 +12,9 @@
android:orientation=
"vertical"
>
<FrameLayout
android:visibility=
"invisible"
android:layout_width=
"match_parent"
android:layout_height=
"340dp"
android:background=
"@mipmap/bg_
wal
k"
>
android:background=
"@mipmap/bg_
morning_cloc
k"
>
<ImageView
android:id=
"@+id/ivMorningClockBack"
...
...
@@ -29,32 +28,66 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"60dp"
android:src=
"@mipmap/ic_font_water"
/>
android:layout_marginTop=
"50dp"
android:src=
"@mipmap/ic_font_morning_clock"
/>
<RelativeLayout
android:layout_width=
"140dp"
android:layout_height=
"40dp"
android:layout_gravity=
"bottom|center_horizontal"
android:layout_marginBottom=
"20dp"
android:background=
"@drawable/shape_tv_app_write"
>
<TextView
android:id=
"@+id/tvMorningClockClick"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_margin=
"2dp"
android:background=
"@drawable/shape_tv_gold_none"
android:enabled=
"false"
android:gravity=
"center"
android:textColor=
"@color/water_hint_btn"
android:textSize=
"14sp"
/>
</RelativeLayout>
</FrameLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10dp"
android:layout_marginTop=
"20dp"
android:layout_marginRight=
"10dp"
android:background=
"@drawable/shape_bg_write"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tvMorningClockClick"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"200dp"
android:enabled=
"false"
></TextView>
android:layout_margin=
"14dp"
android:drawablePadding=
"6dp"
android:gravity=
"center_vertical"
android:text=
"打卡领金币"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rvMorningClock"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginLeft=
"14dp"
android:layout_marginRight=
"14dp"
android:layout_marginBottom=
"14dp"
android:background=
"@null"
android:overScrollMode=
"never"
/>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rvMorningClock"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"10dp"
android:background=
"@null"
android:overScrollMode=
"never"
/>
</LinearLayout>
<FrameLayout
android:id=
"@+id/flMorningClockAd"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:layout_gravity=
"center_horizontal"
android:background=
"@color/full_transparent"
>
...
...
GoodMoney/app/src/main/res/layout/fragment_main_friends.xml
View file @
896814b5
...
...
@@ -122,15 +122,15 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/dot"
android:textSize=
"1
6
sp"
/>
android:textSize=
"1
4
sp"
/>
<TextView
android:id=
"@+id/tv_bonus_hint"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"15dp"
android:textSize=
"14sp"
/>
android:textSize=
"12sp"
/>
</RelativeLayout>
...
...
@@ -186,7 +186,8 @@
android:id=
"@+id/tv_yesterday_bonus"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:gravity=
"right"
android:paddingRight=
"10dp"
android:text=
"@string/dot"
android:textSize=
"20sp"
/>
...
...
@@ -194,7 +195,8 @@
android:id=
"@+id/tv_today_bonus"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:gravity=
"right"
android:paddingRight=
"10dp"
android:text=
"@string/dot"
android:textSize=
"20sp"
/>
...
...
@@ -234,7 +236,8 @@
android:layout_marginStart=
"20dp"
android:layout_marginEnd=
"5dp"
android:background=
"@drawable/btn_friends_selectored"
android:text=
"提现"
android:text=
"结算中"
android:enabled=
"false"
android:textColor=
"@drawable/btn_friends_text_color_selectored"
android:textSize=
"12sp"
/>
...
...
GoodMoney/app/src/main/res/layout/item_rv_morning_clock.xml
View file @
896814b5
...
...
@@ -2,44 +2,63 @@
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/rlMorningClockItemRoot"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_horizontal"
android:background=
"@drawable/shape_morning_clock"
android:layout_gravity=
"center_horizontal"
android:layout_margin=
"6dp"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tvMorningClockItemDay"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:textSize=
"12sp"
android:textColor=
"@color/ban_transparent"
android:text=
"7天"
/>
<TextView
android:id=
"@+id/tvMorningClockItemCoin"
<LinearLayout
android:background=
"@mipmap/bg_item_morning_clock_top"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:layout_marginLeft=
"6dp"
android:layout_marginRight=
"6dp"
android:gravity=
"center"
android:textColor=
"@color/black"
android:textSize=
"14sp"
android:text=
"1600金币"
/>
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tvMorningClockItemStatus"
<TextView
android:id=
"@+id/tvMorningClockItemDay"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"7天\n连续打卡"
android:gravity=
"center"
android:textColor=
"@color/color_FCCCAC"
android:textSize=
"12sp"
/>
<View
android:layout_width=
"1dp"
android:layout_marginLeft=
"10dp"
android:layout_marginRight=
"10dp"
android:layout_height=
"24dp"
android:background=
"@color/red"
></View>
<TextView
android:id=
"@+id/tvMorningClockItemCoin"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:text=
"1600金币"
android:textColor=
"@color/color_FCCCAC"
android:textSize=
"12sp"
/>
</LinearLayout>
<RelativeLayout
android:background=
"@mipmap/bg_item_morning_clock_bottom"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"6dp"
android:layout_marginBottom=
"14dp"
android:textSize=
"14sp"
android:textColor=
"@color/black"
android:text=
"领取"
/>
android:layout_height=
"wrap_content"
>
<TextView
android:layout_centerInParent=
"true"
android:id=
"@+id/tvMorningClockItemStatus"
android:layout_width=
"wrap_content"
android:gravity=
"center"
android:layout_marginTop=
"6dp"
android:layout_marginBottom=
"6dp"
android:layout_height=
"wrap_content"
android:text=
"领取"
android:background=
"@mipmap/bg_item_morning_clock_status"
android:textColor=
"@color/color_994B23"
android:textSize=
"12sp"
/>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
GoodMoney/app/src/main/res/mipmap-xhdpi/bg_item_morning_clock_bottom.png
0 → 100755
View file @
896814b5
1.94 KB
GoodMoney/app/src/main/res/mipmap-xhdpi/bg_item_morning_clock_status.png
0 → 100755
View file @
896814b5
2.09 KB
GoodMoney/app/src/main/res/mipmap-xhdpi/bg_item_morning_clock_top.png
0 → 100755
View file @
896814b5
12.8 KB
GoodMoney/app/src/main/res/mipmap-xhdpi/bg_morning_clock.png
0 → 100755
View file @
896814b5
497 KB
GoodMoney/app/src/main/res/mipmap-xhdpi/ic_font_morning_clock.png
0 → 100755
View file @
896814b5
1.98 KB
GoodMoney/app/src/main/res/values/colors.xml
View file @
896814b5
...
...
@@ -101,7 +101,7 @@
<color
name=
"main_nor_color"
>
#BEC2CC
</color>
<color
name=
"person_hint_color"
>
#D4D5DE
</color>
<color
name=
"loan_hint_color"
>
#B8BAC6
</color>
<color
name=
"order_hint_color"
>
#E8E8E8
</color>
<color
name=
"order_hint_color"
>
#
50
E8E8E8
</color>
<color
name=
"loan_year_color"
>
#FF2326
</color>
<color
name=
"dialog_text_color"
>
#030303
</color>
<color
name=
"mian_text_color"
>
#D4D5DE
</color>
...
...
@@ -136,4 +136,6 @@
<color
name=
"color_FAF6E8"
>
#FAF6E8
</color>
<color
name=
"color_F3E7C5"
>
#F3E7C5
</color>
<color
name=
"color_E1B867"
>
#E1B867
</color>
<color
name=
"color_FCCCAC"
>
#FCCCAC
</color>
<color
name=
"color_994B23"
>
#994B23
</color>
</resources>
\ No newline at end of file
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