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
ebb71992
Commit
ebb71992
authored
Oct 16, 2020
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面样式更新
parent
1208ee59
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
320 additions
and
145 deletions
+320
-145
FriendsPresenter.kt
...va/com/mints/goodmoney/mvp/presenters/FriendsPresenter.kt
+33
-4
FriendsView.kt
...rc/main/java/com/mints/goodmoney/mvp/views/FriendsView.kt
+2
-2
SettingsActivity.kt
...java/com/mints/goodmoney/ui/activitys/SettingsActivity.kt
+66
-52
BaseActivity.java
...a/com/mints/goodmoney/ui/activitys/base/BaseActivity.java
+4
-2
BannerTaskAdapter.kt
.../java/com/mints/goodmoney/ui/adapter/BannerTaskAdapter.kt
+1
-1
InvitedAdapter.kt
...ain/java/com/mints/goodmoney/ui/adapter/InvitedAdapter.kt
+36
-15
FriendsFragment.kt
...n/java/com/mints/goodmoney/ui/fragment/FriendsFragment.kt
+67
-11
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+14
-12
SignView.java
...rc/main/java/com/mints/goodmoney/ui/widgets/SignView.java
+2
-1
GlideUtils.java
...app/src/main/java/com/mints/library/utils/GlideUtils.java
+9
-0
shape_dialog_bg.xml
GoodMoney/app/src/main/res/drawable/shape_dialog_bg.xml
+9
-0
activity_settings.xml
GoodMoney/app/src/main/res/layout/activity_settings.xml
+2
-1
dialog_edit_invite.xml
GoodMoney/app/src/main/res/layout/dialog_edit_invite.xml
+16
-0
dialog_main.xml
GoodMoney/app/src/main/res/layout/dialog_main.xml
+3
-3
fragment_main_friends.xml
GoodMoney/app/src/main/res/layout/fragment_main_friends.xml
+8
-15
fragment_main_my.xml
GoodMoney/app/src/main/res/layout/fragment_main_my.xml
+11
-6
item_bv_friends_task.xml
GoodMoney/app/src/main/res/layout/item_bv_friends_task.xml
+2
-1
item_empty.xml
GoodMoney/app/src/main/res/layout/item_empty.xml
+14
-0
item_fragment_main_my_task.xml
...ey/app/src/main/res/layout/item_fragment_main_my_task.xml
+6
-7
item_fragment_main_my_title.xml
...y/app/src/main/res/layout/item_fragment_main_my_title.xml
+1
-1
item_recy_invited.xml
GoodMoney/app/src/main/res/layout/item_recy_invited.xml
+8
-6
view_sign.xml
GoodMoney/app/src/main/res/layout/view_sign.xml
+4
-4
ic_record_empty.png
GoodMoney/app/src/main/res/mipmap-xhdpi/ic_record_empty.png
+0
-0
ic_sign_nofinish.png
GoodMoney/app/src/main/res/mipmap-xhdpi/ic_sign_nofinish.png
+0
-0
colors.xml
GoodMoney/app/src/main/res/values/colors.xml
+1
-0
styles.xml
GoodMoney/app/src/main/res/values/styles.xml
+1
-1
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/presenters/FriendsPresenter.kt
View file @
ebb71992
package
com.mints.goodmoney.mvp.presenters
package
com.mints.goodmoney.mvp.presenters
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.AppHttpManager
import
com.mints.goodmoney.manager.AppHttpManager
import
com.mints.goodmoney.mvp.model.BaseResponse
import
com.mints.goodmoney.mvp.model.BaseResponse
import
com.mints.goodmoney.mvp.model.FriendsTaskBean
import
com.mints.goodmoney.mvp.model.FriendsTaskBean
import
com.mints.goodmoney.mvp.views.FriendsView
import
com.mints.goodmoney.mvp.views.FriendsView
import
com.mints.library.net.neterror.BaseSubscriber
import
com.mints.library.net.neterror.BaseSubscriber
import
com.mints.library.net.neterror.Throwable
import
com.mints.library.net.neterror.Throwable
import
java.util.HashMap
class
FriendsPresenter
:
BasePresenter
<
FriendsView
>()
{
class
FriendsPresenter
:
BasePresenter
<
FriendsView
>()
{
...
@@ -14,7 +16,7 @@ class FriendsPresenter : BasePresenter<FriendsView>() {
...
@@ -14,7 +16,7 @@ class FriendsPresenter : BasePresenter<FriendsView>() {
*/
*/
fun
getLeaders
()
{
fun
getLeaders
()
{
AppHttpManager
.
getInstance
(
loanApplication
)
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
leaders
,
object
:
BaseSubscriber
<
BaseResponse
<
FriendsTaskBean
.
FriendsBean
>>()
{
.
call
(
loanService
.
leaders
,
object
:
BaseSubscriber
<
BaseResponse
<
FriendsTaskBean
.
FriendsBean
>>()
{
override
fun
onCompleted
()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
if
(
isLinkView
)
return
}
}
...
@@ -23,10 +25,10 @@ class FriendsPresenter : BasePresenter<FriendsView>() {
...
@@ -23,10 +25,10 @@ class FriendsPresenter : BasePresenter<FriendsView>() {
if
(
isLinkView
)
return
if
(
isLinkView
)
return
}
}
override
fun
onNext
(
baseResponse
:
BaseResponse
<
FriendsTaskBean
.
FriendsBean
>)
{
override
fun
onNext
(
baseResponse
:
BaseResponse
<
FriendsTaskBean
.
FriendsBean
>)
{
if
(
isLinkView
)
return
if
(
isLinkView
)
return
when
(
baseResponse
.
status
)
{
when
(
baseResponse
.
status
)
{
200
->
view
.
getWorldRank
(
baseResponse
.
data
)
200
->
view
.
getWorldRank
Suc
(
baseResponse
.
data
)
}
}
}
}
})
})
...
@@ -50,12 +52,39 @@ class FriendsPresenter : BasePresenter<FriendsView>() {
...
@@ -50,12 +52,39 @@ class FriendsPresenter : BasePresenter<FriendsView>() {
if
(
isLinkView
)
return
if
(
isLinkView
)
return
when
(
baseResponse
.
status
)
{
when
(
baseResponse
.
status
)
{
200
->
{
200
->
{
view
.
getFriendsRank
(
baseResponse
.
data
)
view
.
getFriendsRank
Suc
(
baseResponse
.
data
)
}
}
}
}
}
}
})
})
}
}
/**
* 设置邀请成功
*
*/
fun
cmtShareStatus
()
{
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"carrierType"
]
=
Constant
.
CHALLENGE_SHAREFRIEND
vo
[
"value"
]
=
"1"
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
setStatusInOneDayByCarrierType
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
Any
>>()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
}
override
fun
onError
(
e
:
Throwable
)
{
if
(
isLinkView
)
return
}
override
fun
onNext
(
baseResponse
:
BaseResponse
<
Any
>)
{
if
(
isLinkView
)
return
when
(
baseResponse
.
status
)
{
// 200 -> baseMsg()
}
}
})
}
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/views/FriendsView.kt
View file @
ebb71992
...
@@ -4,8 +4,8 @@ import com.mints.goodmoney.mvp.model.FriendsTaskBean
...
@@ -4,8 +4,8 @@ import com.mints.goodmoney.mvp.model.FriendsTaskBean
interface
FriendsView
:
BaseView
{
interface
FriendsView
:
BaseView
{
fun
getWorldRank
(
data
:
FriendsTaskBean
.
FriendsBean
)
fun
getWorldRank
Suc
(
data
:
FriendsTaskBean
.
FriendsBean
)
fun
getFriendsRank
(
data
:
FriendsTaskBean
)
fun
getFriendsRank
Suc
(
data
:
FriendsTaskBean
)
}
}
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/SettingsActivity.kt
View file @
ebb71992
package
com.mints.goodmoney.ui.activitys
package
com.mints.goodmoney.ui.activitys
import
android.os.Bundle
import
android.os.Bundle
import
android.view.Gravity
import
android.view.LayoutInflater
import
android.view.View
import
android.view.View
import
android.view.Window
import
android.view.inputmethod.InputMethodManager
import
android.widget.EditText
import
android.widget.ImageView
import
android.widget.ImageView
import
android.widget.TextView
import
android.widget.TextView
import
androidx.appcompat.app.AlertDialog
import
com.mints.goodmoney.R
import
com.mints.goodmoney.R
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.ui.activitys.base.BaseActivity
import
com.mints.goodmoney.ui.activitys.base.BaseActivity
import
com.mints.goodmoney.ui.widgets.CustomDialogAsApple
import
com.mints.goodmoney.ui.widgets.DialogListener
import
com.mints.goodmoney.utils.CacheUtil
import
com.mints.goodmoney.utils.CacheUtil
import
kotlinx.android.synthetic.main.activity_settings.*
import
kotlinx.android.synthetic.main.activity_settings.*
import
kotlinx.android.synthetic.main.header_layout.*
import
kotlinx.android.synthetic.main.header_layout.*
class
SettingsActivity
:
BaseActivity
(),
View
.
OnClickListener
{
class
SettingsActivity
:
BaseActivity
(),
View
.
OnClickListener
{
private
var
cdaa
:
CustomDialogAsApple
?
=
null
private
val
userManager
by
lazy
{
UserManager
.
getInstance
()
}
private
val
userManager
by
lazy
{
UserManager
.
getInstance
()
}
override
fun
initViewsAndEvents
()
{
override
fun
initViewsAndEvents
()
{
...
@@ -41,7 +43,7 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
...
@@ -41,7 +43,7 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
item_phone
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"手机号"
item_phone
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"手机号"
val
phone
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_tel
)
val
phone
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_tel
)
phone
.
setBounds
(
0
,
0
,
5
0
,
50
)
phone
.
setBounds
(
0
,
0
,
5
6
,
56
)
item_phone
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
phone
,
null
,
null
,
null
)
item_phone
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
phone
,
null
,
null
,
null
)
item_phone
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
VISIBLE
item_phone
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
VISIBLE
item_phone
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
GONE
item_phone
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
GONE
...
@@ -53,23 +55,23 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
...
@@ -53,23 +55,23 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
item_wechat
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"微信号"
item_wechat
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"微信号"
val
wechat
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_wechat
)
val
wechat
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_wechat
)
wechat
.
setBounds
(
0
,
0
,
5
0
,
50
)
wechat
.
setBounds
(
0
,
0
,
5
6
,
56
)
item_wechat
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
wechat
,
null
,
null
,
null
)
item_wechat
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
wechat
,
null
,
null
,
null
)
item_wechat
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
VISIBLE
item_wechat
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
VISIBLE
item_wechat
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
GONE
item_wechat
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
GONE
item_wechat
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
text
=
"未授权"
item_wechat
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
text
=
"未授权"
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"邀请码"
//
item_invitedCode.findViewById<TextView>(R.id.tv_title).text = "邀请码"
val
invitedCode
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_invite
)
//
val invitedCode = resources.getDrawable(R.mipmap.icon_settings_invite)
invitedCode
.
setBounds
(
0
,
0
,
50
,
50
)
// invitedCode.setBounds(0, 0, 56, 56
)
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
invitedCode
,
null
,
null
,
null
)
//
item_invitedCode.findViewById<TextView>(R.id.tv_title).setCompoundDrawables(invitedCode, null, null, null)
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
VISIBLE
//
item_invitedCode.findViewById<TextView>(R.id.tv_right).visibility = View.VISIBLE
item_invitedCode
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
GONE
//
item_invitedCode.findViewById<ImageView>(R.id.iv_right).visibility = View.GONE
item_invitedCode
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
text
=
"填写邀请码 海量金币等你拿"
//
item_invitedCode.findViewById<TextView>(R.id.tv_right).text = "填写邀请码 海量金币等你拿"
item_cleanCache
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"清理缓存"
item_cleanCache
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"清理缓存"
val
cleanCache
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_clean
)
val
cleanCache
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_clean
)
cleanCache
.
setBounds
(
0
,
0
,
5
0
,
50
)
cleanCache
.
setBounds
(
0
,
0
,
5
6
,
56
)
item_cleanCache
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
cleanCache
,
null
,
null
,
null
)
item_cleanCache
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
cleanCache
,
null
,
null
,
null
)
item_cleanCache
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
VISIBLE
item_cleanCache
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
VISIBLE
item_cleanCache
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
GONE
item_cleanCache
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
GONE
...
@@ -77,21 +79,21 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
...
@@ -77,21 +79,21 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
item_userAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"服务协议"
item_userAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"服务协议"
val
userAgree
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_user
)
val
userAgree
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_user
)
userAgree
.
setBounds
(
0
,
0
,
5
0
,
50
)
userAgree
.
setBounds
(
0
,
0
,
5
6
,
56
)
item_userAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
userAgree
,
null
,
null
,
null
)
item_userAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
userAgree
,
null
,
null
,
null
)
item_userAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
GONE
item_userAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
GONE
item_userAgree
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
VISIBLE
item_userAgree
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
VISIBLE
item_privacyAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"隐私协议"
item_privacyAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"隐私协议"
val
privacyAgree
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_privacy
)
val
privacyAgree
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_privacy
)
privacyAgree
.
setBounds
(
0
,
0
,
5
0
,
50
)
privacyAgree
.
setBounds
(
0
,
0
,
5
6
,
56
)
item_privacyAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
privacyAgree
,
null
,
null
,
null
)
item_privacyAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
privacyAgree
,
null
,
null
,
null
)
item_privacyAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
GONE
item_privacyAgree
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
GONE
item_privacyAgree
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
VISIBLE
item_privacyAgree
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
VISIBLE
item_aboutUs
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"关于我们"
item_aboutUs
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
text
=
"关于我们"
val
aboutUs
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_about
)
val
aboutUs
=
resources
.
getDrawable
(
R
.
mipmap
.
icon_settings_about
)
aboutUs
.
setBounds
(
0
,
0
,
5
0
,
50
)
aboutUs
.
setBounds
(
0
,
0
,
5
6
,
56
)
item_aboutUs
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
aboutUs
,
null
,
null
,
null
)
item_aboutUs
.
findViewById
<
TextView
>(
R
.
id
.
tv_title
).
setCompoundDrawables
(
aboutUs
,
null
,
null
,
null
)
item_aboutUs
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
GONE
item_aboutUs
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
visibility
=
View
.
GONE
item_aboutUs
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
VISIBLE
item_aboutUs
.
findViewById
<
ImageView
>(
R
.
id
.
iv_right
).
visibility
=
View
.
VISIBLE
...
@@ -114,7 +116,7 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
...
@@ -114,7 +116,7 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
}
}
}
}
R
.
id
.
item_invitedCode
->
{
R
.
id
.
item_invitedCode
->
{
submitInvitedCode
()
}
}
R
.
id
.
item_cleanCache
->
{
R
.
id
.
item_cleanCache
->
{
clearDialog
()
clearDialog
()
...
@@ -144,47 +146,59 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
...
@@ -144,47 +146,59 @@ class SettingsActivity : BaseActivity(), View.OnClickListener {
}
}
private
fun
submitInvitedCode
()
{
private
fun
submitInvitedCode
()
{
cdaa
=
CustomDialogAsApple
(
context
,
object
:
DialogListener
()
{
val
view
=
LayoutInflater
.
from
(
this
).
inflate
(
R
.
layout
.
dialog_edit_invite
,
null
)
override
fun
onClick
(
v
:
View
)
{
val
etInput
=
view
.
findViewById
<
EditText
>(
R
.
id
.
et_input
)
when
(
v
.
id
)
{
R
.
id
.
dialog_btn_right
->
{
val
dialog
=
AlertDialog
.
Builder
(
this
)
.
setTitle
(
"请输入邀请码"
)
.
setPositiveButton
(
"确定"
)
{
dialog
,
which
->
if
(
etInput
.
text
.
isEmpty
())
{
showToast
(
"请输入邀请码"
)
}
else
{
dialog
.
dismiss
()
}
}
}
cdaa
?.
dismiss
()
}
cdaa
=
null
.
setNegativeButton
(
"取消"
)
{
dialog
,
which
->
}
dialog
.
dismiss
()
})
}
cdaa
?.
let
{
.
create
()
it
.
setContent
(
"提交邀请码"
)
dialog
.
setOnShowListener
{
it
.
setLeft
(
"取消"
)
val
imm
=
getSystemService
(
INPUT_METHOD_SERVICE
)
as
InputMethodManager
it
.
setRight
(
"确认"
)
imm
.
showSoftInput
(
etInput
,
InputMethodManager
.
SHOW_IMPLICIT
)
it
.
show
()
}
}
dialog
.
setView
(
view
)
// val window = dialog.window
// window?.setGravity(Gravity.CENTER)
// window?.setWindowAnimations(R.style.DialogAnimBottom)
dialog
.
show
()
}
}
private
fun
clearDialog
()
{
private
fun
clearDialog
()
{
cdaa
=
CustomDialogAsApple
(
context
,
object
:
DialogListener
()
{
val
dialog
=
AlertDialog
.
Builder
(
this
)
override
fun
onClick
(
v
:
View
)
{
.
setTitle
(
"确定清除缓存吗?"
)
when
(
v
.
id
)
{
.
setPositiveButton
(
"确定"
)
{
dialog
,
_
->
R
.
id
.
dialog_btn_right
->
try
{
try
{
CacheUtil
.
clearAllCache
(
context
)
CacheUtil
.
clearAllCache
(
context
)
item_cleanCache
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
text
=
"0KB"
item_cleanCache
.
findViewById
<
TextView
>(
R
.
id
.
tv_right
).
text
=
"0KB"
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
e
.
printStackTrace
()
}
finally
{
}
dialog
.
dismiss
()
}
}
.
setNegativeButton
(
"取消"
)
{
dialog
,
_
->
dialog
.
dismiss
()
}
}
.
create
()
cdaa
?.
dismiss
()
val
window
=
dialog
.
window
}
window
?.
setGravity
(
Gravity
.
CENTER
)
})
window
?.
setWindowAnimations
(
R
.
style
.
DialogAnimBottom
)
cdaa
?.
let
{
it
.
setContent
(
"确定清除缓存吗?"
)
dialog
.
show
()
it
.
setLeft
(
"取消"
)
it
.
setRight
(
"清除"
)
it
.
show
()
}
}
}
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/base/BaseActivity.java
View file @
ebb71992
...
@@ -8,7 +8,9 @@ import android.content.IntentFilter;
...
@@ -8,7 +8,9 @@ import android.content.IntentFilter;
import
android.content.pm.ActivityInfo
;
import
android.content.pm.ActivityInfo
;
import
android.os.Build
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
androidx.core.content.ContextCompat
;
import
androidx.core.content.ContextCompat
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.view.KeyEvent
;
import
android.view.KeyEvent
;
import
android.view.MotionEvent
;
import
android.view.MotionEvent
;
...
@@ -41,7 +43,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Base
...
@@ -41,7 +43,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Base
try
{
try
{
if
(
TextUtils
.
equals
(
getClass
().
getSimpleName
(),
"SplashActivity"
)
||
if
(
TextUtils
.
equals
(
getClass
().
getSimpleName
(),
"SplashActivity"
)
||
TextUtils
.
equals
(
getClass
().
getSimpleName
(),
"GuideActivity"
)
)
{
TextUtils
.
equals
(
getClass
().
getSimpleName
(),
"GuideActivity"
))
{
getWindow
().
setFlags
(
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
,
getWindow
().
setFlags
(
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
,
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
);
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
);
}
else
{
}
else
{
...
@@ -87,7 +89,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Base
...
@@ -87,7 +89,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Base
// 根据EditText所在坐标和用户点击的坐标相对比,来判断是否隐藏键盘
// 根据EditText所在坐标和用户点击的坐标相对比,来判断是否隐藏键盘
private
boolean
HideKeyboard
(
View
view
,
MotionEvent
event
)
{
private
boolean
HideKeyboard
(
View
view
,
MotionEvent
event
)
{
if
(
view
!=
null
&&
(
view
instanceof
EditText
)
)
{
if
(
view
instanceof
EditText
)
{
int
[]
location
=
{
0
,
0
};
int
[]
location
=
{
0
,
0
};
view
.
getLocationInWindow
(
location
);
view
.
getLocationInWindow
(
location
);
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/adapter/BannerTaskAdapter.kt
View file @
ebb71992
...
@@ -14,7 +14,7 @@ class BannerTaskAdapter(context: Context) : BannerBaseAdapter<FriendsTaskBean.Ch
...
@@ -14,7 +14,7 @@ class BannerTaskAdapter(context: Context) : BannerBaseAdapter<FriendsTaskBean.Ch
override
fun
convert
(
convertView
:
View
,
data
:
FriendsTaskBean
.
ChallengeBean
.
ListBean
)
{
override
fun
convert
(
convertView
:
View
,
data
:
FriendsTaskBean
.
ChallengeBean
.
ListBean
)
{
convertView
.
findViewById
<
TextView
>(
R
.
id
.
item_bv_friends_task_title
).
text
=
data
.
title
convertView
.
findViewById
<
TextView
>(
R
.
id
.
item_bv_friends_task_title
).
text
=
data
.
title
convertView
.
findViewById
<
TextView
>(
R
.
id
.
item_bv_friends_task_info
).
text
=
data
.
remarks
convertView
.
findViewById
<
TextView
>(
R
.
id
.
item_bv_friends_task_info
).
text
=
data
.
remarks
convertView
.
findViewById
<
Button
>(
R
.
id
.
item_bv_friends_task_btn
).
text
=
data
.
button
convertView
.
findViewById
<
TextView
>(
R
.
id
.
item_bv_friends_task_btn
).
text
=
data
.
button
}
}
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/adapter/InvitedAdapter.kt
View file @
ebb71992
...
@@ -11,32 +11,50 @@ import com.mints.goodmoney.R
...
@@ -11,32 +11,50 @@ import com.mints.goodmoney.R
import
com.mints.goodmoney.mvp.model.FriendsTaskBean
import
com.mints.goodmoney.mvp.model.FriendsTaskBean
import
com.mints.library.utils.GlideUtils
import
com.mints.library.utils.GlideUtils
class
InvitedAdapter
:
RecyclerView
.
Adapter
<
InvitedAdapter
.
InvitedHolder
>
{
class
InvitedAdapter
(
context
:
Context
,
invitedData
:
MutableList
<
FriendsTaskBean
.
FriendsBean
.
ListBeanX
>)
:
RecyclerView
.
Adapter
<
RecyclerView
.
ViewHolder
>()
{
co
nstructor
(
context
:
Context
,
invitedData
:
MutableList
<
FriendsTaskBean
.
FriendsBean
.
ListBeanX
>)
{
co
mpanion
object
{
mContext
=
context
const
val
HOLDER_TYPE_EMPTY
=
0
this
.
invitedData
=
invitedData
const
val
HOLDER_TYPE_INVITED
=
1
}
}
private
var
mContext
:
Context
private
var
mContext
:
Context
=
context
private
var
invitedData
:
List
<
FriendsTaskBean
.
FriendsBean
.
ListBeanX
>
?
=
null
private
var
invitedData
:
List
<
FriendsTaskBean
.
FriendsBean
.
ListBeanX
>
=
invitedData
private
var
mOnItemClickListener
:
OnItemClickListener
?
=
null
private
var
mOnItemClickListener
:
OnItemClickListener
?
=
null
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
):
InvitedHolder
{
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
):
RecyclerView
.
ViewHolder
{
if
(
viewType
==
HOLDER_TYPE_EMPTY
)
{
val
emptyView
=
LayoutInflater
.
from
(
parent
.
context
).
inflate
(
R
.
layout
.
item_empty
,
parent
,
false
)
return
EmptyHolder
(
emptyView
)
}
val
view
=
LayoutInflater
.
from
(
parent
.
context
).
inflate
(
R
.
layout
.
item_recy_invited
,
parent
,
false
)
val
view
=
LayoutInflater
.
from
(
parent
.
context
).
inflate
(
R
.
layout
.
item_recy_invited
,
parent
,
false
)
return
InvitedHolder
(
view
)
return
InvitedHolder
(
view
)
}
}
override
fun
getItemCount
():
Int
{
override
fun
getItemCount
():
Int
{
return
if
(
invitedData
==
null
)
{
return
if
(
invitedData
.
isEmpty
()
)
{
0
1
}
else
{
}
else
{
invitedData
!!
.
size
invitedData
.
size
}
}
override
fun
getItemViewType
(
position
:
Int
):
Int
{
if
(
invitedData
.
isEmpty
())
{
return
HOLDER_TYPE_EMPTY
}
}
return
HOLDER_TYPE_INVITED
}
}
override
fun
onBindViewHolder
(
holder
:
InvitedHolder
,
position
:
Int
)
{
override
fun
onBindViewHolder
(
viewHolder
:
RecyclerView
.
ViewHolder
,
position
:
Int
)
{
if
(
viewHolder
is
EmptyHolder
)
{
return
}
val
holder
=
viewHolder
as
InvitedHolder
when
(
position
)
{
when
(
position
)
{
0
->
{
0
->
{
holder
.
tvNum
.
visibility
=
View
.
GONE
holder
.
tvNum
.
visibility
=
View
.
GONE
...
@@ -56,12 +74,12 @@ class InvitedAdapter : RecyclerView.Adapter<InvitedAdapter.InvitedHolder> {
...
@@ -56,12 +74,12 @@ class InvitedAdapter : RecyclerView.Adapter<InvitedAdapter.InvitedHolder> {
else
->
{
else
->
{
holder
.
tvNum
.
visibility
=
View
.
VISIBLE
holder
.
tvNum
.
visibility
=
View
.
VISIBLE
holder
.
ivRanking
.
visibility
=
View
.
GONE
holder
.
ivRanking
.
visibility
=
View
.
GONE
holder
.
tvNum
.
text
=
""
+
position
+
1
holder
.
tvNum
.
text
=
""
+
(
position
+
1
)
}
}
}
}
val
data
=
invitedData
!!
[
position
]
val
data
=
invitedData
[
position
]
GlideUtils
.
load
ImageViewLoding
(
mContext
,
data
.
head
,
holder
.
ivAvatar
,
R
.
mipmap
.
ic_avatar_ph
,
R
.
mipmap
.
ic_avatar_ph
)
GlideUtils
.
load
CircleImageView
(
mContext
,
data
.
head
,
holder
.
ivAvatar
,
R
.
mipmap
.
ic_avatar_ph
,
R
.
mipmap
.
ic_avatar_ph
)
if
(
data
.
nickName
.
isNotEmpty
()
)
{
if
(
data
.
nickName
!=
null
)
{
holder
.
tvName
.
text
=
data
.
nickName
holder
.
tvName
.
text
=
data
.
nickName
}
else
{
}
else
{
holder
.
tvName
.
text
=
data
.
mobile
holder
.
tvName
.
text
=
data
.
mobile
...
@@ -75,6 +93,8 @@ class InvitedAdapter : RecyclerView.Adapter<InvitedAdapter.InvitedHolder> {
...
@@ -75,6 +93,8 @@ class InvitedAdapter : RecyclerView.Adapter<InvitedAdapter.InvitedHolder> {
}
}
}
}
inner
class
EmptyHolder
(
itemView
:
View
)
:
RecyclerView
.
ViewHolder
(
itemView
)
inner
class
InvitedHolder
(
itemView
:
View
)
:
RecyclerView
.
ViewHolder
(
itemView
)
{
inner
class
InvitedHolder
(
itemView
:
View
)
:
RecyclerView
.
ViewHolder
(
itemView
)
{
val
tvNum
:
TextView
=
itemView
.
findViewById
(
R
.
id
.
item_invited_tv_num
)
val
tvNum
:
TextView
=
itemView
.
findViewById
(
R
.
id
.
item_invited_tv_num
)
val
ivAvatar
:
ImageView
=
itemView
.
findViewById
(
R
.
id
.
item_invited_iv_avatar
)
val
ivAvatar
:
ImageView
=
itemView
.
findViewById
(
R
.
id
.
item_invited_iv_avatar
)
...
@@ -91,4 +111,5 @@ class InvitedAdapter : RecyclerView.Adapter<InvitedAdapter.InvitedHolder> {
...
@@ -91,4 +111,5 @@ class InvitedAdapter : RecyclerView.Adapter<InvitedAdapter.InvitedHolder> {
fun
setOnItemClickListener
(
listener
:
OnItemClickListener
)
{
fun
setOnItemClickListener
(
listener
:
OnItemClickListener
)
{
mOnItemClickListener
=
listener
mOnItemClickListener
=
listener
}
}
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/FriendsFragment.kt
View file @
ebb71992
package
com.mints.goodmoney.ui.fragment
package
com.mints.goodmoney.ui.fragment
import
android.graphics.Typeface
import
android.graphics.Typeface
import
android.os.Bundle
import
android.view.View
import
android.view.View
import
android.widget.LinearLayout
import
android.widget.LinearLayout
import
android.widget.TextView
import
android.widget.TextView
import
androidx.core.content.ContextCompat
import
androidx.recyclerview.widget.DividerItemDecoration
import
androidx.recyclerview.widget.DividerItemDecoration
import
cn.sharesdk.framework.Platform
import
cn.sharesdk.framework.PlatformActionListener
import
cn.sharesdk.framework.ShareSDK
import
cn.sharesdk.wechat.friends.Wechat
import
com.mints.goodmoney.R
import
com.mints.goodmoney.R
import
com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.common.Constant
...
@@ -12,23 +18,26 @@ import com.mints.goodmoney.manager.UserManager
...
@@ -12,23 +18,26 @@ import com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.mvp.model.FriendsTaskBean
import
com.mints.goodmoney.mvp.model.FriendsTaskBean
import
com.mints.goodmoney.mvp.presenters.FriendsPresenter
import
com.mints.goodmoney.mvp.presenters.FriendsPresenter
import
com.mints.goodmoney.mvp.views.FriendsView
import
com.mints.goodmoney.mvp.views.FriendsView
import
com.mints.goodmoney.ui.activitys.AwardActivity
import
com.mints.goodmoney.ui.adapter.BannerBaseAdapter
import
com.mints.goodmoney.ui.adapter.BannerBaseAdapter
import
com.mints.goodmoney.ui.adapter.BannerTaskAdapter
import
com.mints.goodmoney.ui.adapter.BannerTaskAdapter
import
com.mints.goodmoney.ui.adapter.InvitedAdapter
import
com.mints.goodmoney.ui.adapter.InvitedAdapter
import
com.mints.goodmoney.ui.fragment.base.BaseFragment
import
com.mints.goodmoney.ui.fragment.base.BaseFragment
import
com.mints.goodmoney.ui.widgets.tablayout.TabLayout
import
com.mints.goodmoney.ui.widgets.tablayout.TabLayout
import
com.mints.goodmoney.utils.ImageUtil
import
com.scwang.smartrefresh.layout.api.RefreshLayout
import
com.scwang.smartrefresh.layout.api.RefreshLayout
import
com.scwang.smartrefresh.layout.listener.OnRefreshListener
import
com.scwang.smartrefresh.layout.listener.OnRefreshListener
import
kotlinx.android.synthetic.main.fragment_main_friends.*
import
kotlinx.android.synthetic.main.fragment_main_friends.*
import
kotlinx.android.synthetic.main.fragment_main_friends.srl_my
import
kotlinx.android.synthetic.main.fragment_main_friends.srl_my
import
kotlinx.android.synthetic.main.header_layout.*
import
kotlinx.android.synthetic.main.header_layout.*
import
java.util.HashMap
/**
/**
* 描述:邀请好友
* 描述:邀请好友
* 作者:孟崔广
* 作者:孟崔广
* 时间:2020/9/20 17:30
* 时间:2020/9/20 17:30
*/
*/
class
FriendsFragment
:
BaseFragment
(),
FriendsView
,
OnRefreshListener
{
class
FriendsFragment
:
BaseFragment
(),
FriendsView
,
OnRefreshListener
,
PlatformActionListener
{
private
val
friendsPresenter
by
lazy
{
FriendsPresenter
()
}
private
val
friendsPresenter
by
lazy
{
FriendsPresenter
()
}
...
@@ -53,17 +62,18 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener {
...
@@ -53,17 +62,18 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener {
private
fun
initView
()
{
private
fun
initView
()
{
tv_title
.
text
=
"邀请好友"
tv_title
.
text
=
"邀请好友"
view_title1
.
findViewById
<
TextView
>(
R
.
id
.
view_title
).
text
=
"邀好友 做任务 赚现金"
view_title1
.
findViewById
<
TextView
>(
R
.
id
.
view_title
).
text
=
"邀好友 做任务 赚现金"
img_invite
.
setOnClickListener
{
invitedFriends
()
}
}
}
private
fun
initRecy
()
{
private
fun
initRecy
()
{
tab_friends
.
addTab
(
tab_friends
.
newTab
().
setText
(
"我的好友"
).
setTag
(
"my_friends"
))
tab_friends
.
addTab
(
tab_friends
.
newTab
().
setText
(
"我的好友"
).
setTag
(
"my_friends"
))
tab_friends
.
addTab
(
tab_friends
.
newTab
().
setText
(
"世界人民"
).
setTag
(
"world_person"
))
tab_friends
.
addTab
(
tab_friends
.
newTab
().
setText
(
"世界人民"
).
setTag
(
"world_person"
))
tab_friends
.
setOnTabSelectedListener
(
object
:
TabLayout
.
OnTabSelectedListener
{
tab_friends
.
setOnTabSelectedListener
(
object
:
TabLayout
.
OnTabSelectedListener
{
override
fun
onTabReselected
(
tab
:
TabLayout
.
Tab
?
)
{}
override
fun
onTabReselected
(
tab
:
TabLayout
.
Tab
)
{}
override
fun
onTabUnselected
(
tab
:
TabLayout
.
Tab
?
)
{
override
fun
onTabUnselected
(
tab
:
TabLayout
.
Tab
)
{
val
title
=
val
title
=
((
tab_friends
.
getChildAt
(
0
)
as
LinearLayout
).
getChildAt
(
tab
!!
.
position
)
as
LinearLayout
).
getChildAt
(
((
tab_friends
.
getChildAt
(
0
)
as
LinearLayout
).
getChildAt
(
tab
!!
.
position
)
as
LinearLayout
).
getChildAt
(
1
1
...
@@ -74,7 +84,7 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener {
...
@@ -74,7 +84,7 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener {
}
}
}
}
override
fun
onTabSelected
(
tab
:
TabLayout
.
Tab
?
)
{
override
fun
onTabSelected
(
tab
:
TabLayout
.
Tab
)
{
val
title
=
val
title
=
((
tab_friends
.
getChildAt
(
0
)
as
LinearLayout
).
getChildAt
(
tab
!!
.
position
)
as
LinearLayout
).
getChildAt
(
((
tab_friends
.
getChildAt
(
0
)
as
LinearLayout
).
getChildAt
(
tab
!!
.
position
)
as
LinearLayout
).
getChildAt
(
1
1
...
@@ -84,9 +94,9 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener {
...
@@ -84,9 +94,9 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener {
typeface
=
Typeface
.
defaultFromStyle
(
Typeface
.
BOLD
)
typeface
=
Typeface
.
defaultFromStyle
(
Typeface
.
BOLD
)
}
}
tab
?
.
let
{
tab
.
let
{
if
(
it
.
tag
==
"my_friends"
)
{
if
(
it
.
tag
==
"my_friends"
)
{
friendsPresenter
.
getFriendsMsg
()
}
else
{
}
else
{
friendsPresenter
.
getLeaders
()
friendsPresenter
.
getLeaders
()
}
}
...
@@ -111,7 +121,9 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener {
...
@@ -111,7 +121,9 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener {
bannerTaskAdapter
?.
let
{
bannerTaskAdapter
?.
let
{
it
.
setOnPageTouchListener
(
object
:
BannerBaseAdapter
.
OnPageTouchListener
<
FriendsTaskBean
.
ChallengeBean
.
ListBean
>
{
it
.
setOnPageTouchListener
(
object
:
BannerBaseAdapter
.
OnPageTouchListener
<
FriendsTaskBean
.
ChallengeBean
.
ListBean
>
{
override
fun
onPageClick
(
position
:
Int
,
t
:
FriendsTaskBean
.
ChallengeBean
.
ListBean
?)
{
override
fun
onPageClick
(
position
:
Int
,
t
:
FriendsTaskBean
.
ChallengeBean
.
ListBean
?)
{
if
(
t
?.
status
==
0
)
{
invitedFriends
()
}
}
}
override
fun
onPageDown
()
{
override
fun
onPageDown
()
{
...
@@ -165,15 +177,59 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener {
...
@@ -165,15 +177,59 @@ class FriendsFragment : BaseFragment(), FriendsView, OnRefreshListener {
}
}
}
}
override
fun
getWorldRank
(
data
:
FriendsTaskBean
.
FriendsBean
)
{
private
fun
invitedFriends
()
{
val
wechatSp
=
Platform
.
ShareParams
()
wechatSp
.
shareType
=
Platform
.
SHARE_IMAGE
wechatSp
.
imageData
=
ImageUtil
.
drawableToBitmap
(
ContextCompat
.
getDrawable
(
mContext
,
R
.
mipmap
.
ic_launcher
))
val
wechat
=
ShareSDK
.
getPlatform
(
Wechat
.
NAME
)
if
(
wechat
.
isClientValid
)
{
friendsPresenter
.
cmtShareStatus
()
wechat
.
platformActionListener
=
this
// 设置分享事件回调
// 执行图文分享
wechat
.
share
(
wechatSp
)
}
else
{
showToast
(
"请先安装微信"
)
}
}
override
fun
getWorldRankSuc
(
data
:
FriendsTaskBean
.
FriendsBean
)
{
srl_my
.
finishRefresh
(
true
)
// if (data.list.size == 0) {
// iv_empty.visibility = View.VISIBLE
// recy_friends.visibility = View.GONE
// } else {
// iv_empty.visibility = View.GONE
// recy_friends.visibility = View.VISIBLE
invitedData
.
clear
()
invitedData
.
clear
()
invitedData
.
addAll
(
data
.
list
)
invitedData
.
addAll
(
data
.
list
)
invitedAdapter
?.
notifyDataSetChanged
()
invitedAdapter
?.
notifyDataSetChanged
()
// }
}
}
override
fun
getFriendsRank
(
data
:
FriendsTaskBean
)
{
override
fun
getFriendsRankSuc
(
data
:
FriendsTaskBean
)
{
srl_my
.
finishRefresh
(
true
)
bvTaskData
=
data
.
challenge
.
list
bvTaskData
=
data
.
challenge
.
list
bannerTaskAdapter
?.
setData
(
bvTaskData
)
bannerTaskAdapter
?.
setData
(
bvTaskData
)
if
(
tab_friends
.
selectedTabPosition
==
0
)
{
invitedData
.
clear
()
invitedData
.
addAll
(
data
.
friends
.
list
)
invitedAdapter
?.
notifyDataSetChanged
()
}
}
}
override
fun
onComplete
(
p0
:
Platform
?,
p1
:
Int
,
p2
:
HashMap
<
String
,
Any
>?)
{
val
bundle
=
Bundle
()
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
50
)
bundle
.
putString
(
Constant
.
MAIN_CARRIER_TYPE
,
Constant
.
CHALLENGE_SHAREFRIEND
)
readyGo
(
AwardActivity
::
class
.
java
,
bundle
)
}
override
fun
onError
(
p0
:
Platform
?,
p1
:
Int
,
p2
:
Throwable
?)
=
showToast
(
"邀请取消"
)
override
fun
onCancel
(
p0
:
Platform
?,
p1
:
Int
)
=
showToast
(
"邀请取消"
)
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
ebb71992
...
@@ -139,7 +139,7 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
...
@@ -139,7 +139,7 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
}
}
override
fun
getUserTaskMsgSuc
(
data
:
MyInfo
?)
{
override
fun
getUserTaskMsgSuc
(
data
:
MyInfo
?)
{
if
(
srl_my
!=
null
)
srl_my
.
finishRefresh
(
true
)
srl_my
.
finishRefresh
(
true
)
if
(
data
==
null
)
{
if
(
data
==
null
)
{
userConfig
=
null
userConfig
=
null
...
@@ -154,7 +154,7 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
...
@@ -154,7 +154,7 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
}
}
override
fun
getUserTaskMsgFail
()
{
override
fun
getUserTaskMsgFail
()
{
if
(
srl_my
!=
null
)
srl_my
.
finishRefresh
(
false
)
srl_my
.
finishRefresh
(
false
)
userConfig
=
null
userConfig
=
null
item_promotions_egv
.
visibility
=
View
.
GONE
item_promotions_egv
.
visibility
=
View
.
GONE
...
@@ -164,9 +164,9 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
...
@@ -164,9 +164,9 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
override
fun
getMyHotActivitySuc
(
data
:
BannerBean
?)
{
override
fun
getMyHotActivitySuc
(
data
:
BannerBean
?)
{
// if (UserManager.getInstance().adShowFlag) {
// if (UserManager.getInstance().adShowFlag) {
data
?.
let
{
data
?.
let
{
item_promotions_egv
.
visibility
=
View
.
VISIBLE
//
item_promotions_egv.visibility = View.VISIBLE
hotList
=
it
.
list
//
hotList = it.list
item_promotions_egv
.
adapter
=
GvMyAdapter
(
mContext
,
hotList
)
//
item_promotions_egv.adapter = GvMyAdapter(mContext, hotList)
}
}
// } else {
// } else {
// item_promotions_egv.visibility = View.GONE
// item_promotions_egv.visibility = View.GONE
...
@@ -314,9 +314,11 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
...
@@ -314,9 +314,11 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
}
}
private
fun
setUserLoginStatus
()
{
private
fun
setUserLoginStatus
()
{
val
code
=
userConfig
!!
.
userMsg
.
idcode
if
(
userConfig
!=
null
)
{
if
(
code
.
isNotEmpty
())
{
val
code
=
userConfig
!!
.
userMsg
.
idcode
item_title_invitecode
.
text
=
"邀请码:$code"
if
(
code
.
isNotEmpty
())
{
item_title_invitecode
.
text
=
"邀请码:$code"
}
}
}
if
(
userManager
.
userIsLogin
())
{
if
(
userManager
.
userIsLogin
())
{
...
@@ -385,10 +387,10 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
...
@@ -385,10 +387,10 @@ class MyFragment : BaseFragment(), MyView, MainMyAdapter.OnItemChildClickListene
val
task6
=
TaskBean
(
R
.
mipmap
.
icon_my_demo
,
"试玩平台"
,
""
,
""
,
5
)
val
task6
=
TaskBean
(
R
.
mipmap
.
icon_my_demo
,
"试玩平台"
,
""
,
""
,
5
)
dataList
.
add
(
task1
)
dataList
.
add
(
task1
)
dataList
.
add
(
task2
)
dataList
.
add
(
task2
)
dataList
.
add
(
task3
)
//
dataList.add(task3)
dataList
.
add
(
task4
)
//
dataList.add(task4)
dataList
.
add
(
task5
)
//
dataList.add(task5)
dataList
.
add
(
task6
)
//
dataList.add(task6)
mainMyAdapter
?.
notifyDataSetChanged
()
mainMyAdapter
?.
notifyDataSetChanged
()
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/widgets/SignView.java
View file @
ebb71992
...
@@ -187,7 +187,8 @@ public class SignView extends LinearLayout implements View.OnClickListener {
...
@@ -187,7 +187,8 @@ public class SignView extends LinearLayout implements View.OnClickListener {
tvContent
.
setBackground
(
resources
.
getDrawable
(
R
.
mipmap
.
ic_sign_newgift_close
));
tvContent
.
setBackground
(
resources
.
getDrawable
(
R
.
mipmap
.
ic_sign_newgift_close
));
}
else
{
}
else
{
tvContent
.
setBackground
(
resources
.
getDrawable
(
R
.
mipmap
.
ic_sign_finish
));
tvContent
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
my_color_orange2
));
tvContent
.
setBackground
(
resources
.
getDrawable
(
R
.
mipmap
.
ic_sign_nofinish
));
}
}
tvDay
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
black
));
tvDay
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
black
));
break
;
break
;
...
...
GoodMoney/app/src/main/java/com/mints/library/utils/GlideUtils.java
View file @
ebb71992
...
@@ -47,6 +47,15 @@ public class GlideUtils {
...
@@ -47,6 +47,15 @@ public class GlideUtils {
Glide
.
with
(
mContext
).
load
(
path
).
apply
(
requestOptions
).
into
(
mImageView
);
Glide
.
with
(
mContext
).
load
(
path
).
apply
(
requestOptions
).
into
(
mImageView
);
}
}
//设置加载中以及加载失败圆形图片
public
static
void
loadCircleImageView
(
Context
mContext
,
String
path
,
ImageView
mImageView
,
int
lodingImage
,
int
errorImageView
)
{
RequestOptions
requestOptions
=
new
RequestOptions
();
requestOptions
.
placeholder
(
lodingImage
);
requestOptions
.
error
(
errorImageView
);
requestOptions
.
circleCrop
();
Glide
.
with
(
mContext
).
load
(
path
).
apply
(
requestOptions
).
into
(
mImageView
);
}
//加载Gif
//加载Gif
public
static
void
loadImageViewGif
(
Context
mContext
,
int
drawable
,
ImageView
imageView
)
{
public
static
void
loadImageViewGif
(
Context
mContext
,
int
drawable
,
ImageView
imageView
)
{
Glide
.
with
(
mContext
).
load
(
drawable
).
into
(
imageView
);
Glide
.
with
(
mContext
).
load
(
drawable
).
into
(
imageView
);
...
...
GoodMoney/app/src/main/res/drawable/shape_dialog_bg.xml
0 → 100755
View file @
ebb71992
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<solid
android:color=
"@color/white"
/>
<corners
android:radius=
"5dip"
/>
</shape>
\ No newline at end of file
GoodMoney/app/src/main/res/layout/activity_settings.xml
View file @
ebb71992
...
@@ -16,7 +16,8 @@
...
@@ -16,7 +16,8 @@
<include
<include
android:id=
"@+id/item_invitedCode"
android:id=
"@+id/item_invitedCode"
layout=
"@layout/item_settings"
/>
layout=
"@layout/item_settings"
android:visibility=
"gone"
/>
<include
<include
android:id=
"@+id/item_cleanCache"
android:id=
"@+id/item_cleanCache"
...
...
GoodMoney/app/src/main/res/layout/dialog_edit_invite.xml
0 → 100644
View file @
ebb71992
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<EditText
android:id=
"@+id/et_input"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"20dp"
android:layout_marginTop=
"10dp"
android:layout_marginEnd=
"20dp"
android:hint=
"请输入邀请码"
android:inputType=
"number"
/>
</FrameLayout>
\ No newline at end of file
GoodMoney/app/src/main/res/layout/dialog_main.xml
View file @
ebb71992
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"30dp"
android:layout_margin=
"30dp"
android:background=
"@
color/white
"
android:background=
"@
drawable/shape_dialog_bg
"
android:gravity=
"center"
>
android:gravity=
"center"
>
<TextView
<TextView
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
android:gravity=
"center"
android:gravity=
"center"
android:singleLine=
"true"
android:singleLine=
"true"
android:textColor=
"@color/dialog_text_color"
android:textColor=
"@color/dialog_text_color"
android:textSize=
"1
5
sp"
android:textSize=
"1
6
sp"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
<TextView
<TextView
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
android:scrollbars=
"vertical"
android:scrollbars=
"vertical"
android:singleLine=
"false"
android:singleLine=
"false"
android:textColor=
"@color/dialog_text_color"
android:textColor=
"@color/dialog_text_color"
android:textSize=
"1
3
sp"
/>
android:textSize=
"1
4
sp"
/>
<View
<View
style=
"@style/line_1"
style=
"@style/line_1"
...
...
GoodMoney/app/src/main/res/layout/fragment_main_friends.xml
View file @
ebb71992
...
@@ -59,20 +59,8 @@
...
@@ -59,20 +59,8 @@
<include
layout=
"@layout/item_divider_gray"
/>
<include
layout=
"@layout/item_divider_gray"
/>
<!-- <com.mints.goodmoney.ui.widgets.BannerView-->
<!-- android:id="@+id/bv_friends_banner"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="100dp"-->
<!-- app:bannerAnimDuration="1500"-->
<!-- app:bannerAnimScroll="true"-->
<!-- app:bannerAutoScroll="true"-->
<!-- app:bannerPageAlpha="0"-->
<!-- app:bannerPageMargin="8dp"-->
<!-- app:bannerPagePercent="0.9"-->
<!-- app:bannerPageScale="0.8"-->
<!-- app:bannerScrollDuration="4000" />-->
<ImageView
<ImageView
android:id=
"@+id/img_invite"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"15dp"
android:padding=
"15dp"
...
@@ -91,8 +79,8 @@
...
@@ -91,8 +79,8 @@
android:layout_height=
"56dp"
android:layout_height=
"56dp"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
app:indicatorEndColor=
"#e73820"
app:indicatorEndColor=
"#e73820"
app:indicatorMarginEnd=
"2
0
dp"
app:indicatorMarginEnd=
"2
4
dp"
app:indicatorMarginStart=
"2
0
dp"
app:indicatorMarginStart=
"2
4
dp"
app:indicatorStartColor=
"#d6694e"
app:indicatorStartColor=
"#d6694e"
app:tabIndicatorHeight=
"4dp"
app:tabIndicatorHeight=
"4dp"
app:tabMode=
"scrollable"
app:tabMode=
"scrollable"
...
@@ -100,6 +88,11 @@
...
@@ -100,6 +88,11 @@
app:tabTextAppearance=
"@style/TabLayoutTextSize"
app:tabTextAppearance=
"@style/TabLayoutTextSize"
app:tabTextColor=
"@color/main_bg_text"
/>
app:tabTextColor=
"@color/main_bg_text"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:background=
"@color/my_color_gray"
/>
</com.google.android.material.appbar.AppBarLayout>
</com.google.android.material.appbar.AppBarLayout>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
...
...
GoodMoney/app/src/main/res/layout/fragment_main_my.xml
View file @
ebb71992
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
android:id=
"@+id/srl_my"
android:id=
"@+id/srl_my"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/blue"
app:srlAccentColor=
"@color/gray"
app:srlAccentColor=
"@color/gray"
app:srlPrimaryColor=
"@color/white"
>
app:srlPrimaryColor=
"@color/white"
>
...
@@ -22,9 +21,9 @@
...
@@ -22,9 +21,9 @@
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<androidx.core.widget.NestedScrollView
<androidx.core.widget.NestedScrollView
android:overScrollMode=
"never"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
android:layout_height=
"wrap_content"
android:overScrollMode=
"never"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -38,9 +37,13 @@
...
@@ -38,9 +37,13 @@
<include
layout=
"@layout/item_divider_gray"
/>
<include
layout=
"@layout/item_divider_gray"
/>
<include
layout=
"@layout/item_fragment_main_my_promotions"
/>
<include
layout=
"@layout/item_fragment_main_my_promotions"
android:visibility=
"gone"
/>
<include
layout=
"@layout/item_divider_gray"
/>
<include
layout=
"@layout/item_divider_gray"
android:visibility=
"gone"
/>
<include
layout=
"@layout/view_title"
/>
<include
layout=
"@layout/view_title"
/>
...
@@ -53,7 +56,9 @@
...
@@ -53,7 +56,9 @@
android:nestedScrollingEnabled=
"false"
android:nestedScrollingEnabled=
"false"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
/>
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
/>
<include
layout=
"@layout/item_fragment_main_my_bottom"
/>
<include
layout=
"@layout/item_fragment_main_my_bottom"
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
...
...
GoodMoney/app/src/main/res/layout/item_bv_friends_task.xml
View file @
ebb71992
...
@@ -40,12 +40,13 @@
...
@@ -40,12 +40,13 @@
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/item_bv_friends_task_iv"
/>
app:layout_constraintStart_toEndOf=
"@id/item_bv_friends_task_iv"
/>
<
Button
<
TextView
android:id=
"@+id/item_bv_friends_task_btn"
android:id=
"@+id/item_bv_friends_task_btn"
android:layout_width=
"70dp"
android:layout_width=
"70dp"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:layout_marginEnd=
"20dp"
android:layout_marginEnd=
"20dp"
android:background=
"@drawable/shape_btn_orange"
android:background=
"@drawable/shape_btn_orange"
android:gravity=
"center"
android:text=
"去邀请"
android:text=
"去邀请"
android:textColor=
"@color/my_color_orange"
android:textColor=
"@color/my_color_orange"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
GoodMoney/app/src/main/res/layout/item_empty.xml
0 → 100644
View file @
ebb71992
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ImageView
android:id=
"@+id/iv_empty"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"200dp"
android:src=
"@mipmap/ic_record_empty"
/>
</FrameLayout>
\ No newline at end of file
GoodMoney/app/src/main/res/layout/item_fragment_main_my_task.xml
View file @
ebb71992
...
@@ -23,31 +23,30 @@
...
@@ -23,31 +23,30 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginBottom=
"6dp"
android:layout_marginBottom=
"6dp"
android:text=
"首次喝水打卡"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"1
6
sp"
/>
android:textSize=
"1
5
sp"
/>
<TextView
<TextView
android:id=
"@+id/item_task_progress"
android:id=
"@+id/item_task_progress"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginStart=
"
10
dp"
android:layout_marginStart=
"
6
dp"
android:layout_toEndOf=
"@+id/item_task_title"
android:layout_toEndOf=
"@+id/item_task_title"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:text=
"1000"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"1
6
sp"
/>
android:textSize=
"1
5
sp"
/>
</RelativeLayout>
</RelativeLayout>
<TextView
<TextView
android:id=
"@+id/item_task_click"
android:id=
"@+id/item_task_click"
android:layout_width=
"
80dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"32dp"
android:layout_height=
"32dp"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:background=
"@drawable/shape_btn_orange"
android:background=
"@drawable/shape_btn_orange"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"立即领取"
android:paddingStart=
"12dp"
android:paddingEnd=
"12dp"
android:textColor=
"@color/my_color_orange"
android:textColor=
"@color/my_color_orange"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
GoodMoney/app/src/main/res/layout/item_fragment_main_my_title.xml
View file @
ebb71992
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"10dp"
android:layout_marginStart=
"10dp"
android:textColor=
"@color/my_color_orange"
android:textColor=
"@color/my_color_orange"
android:textSize=
"
30
sp"
/>
android:textSize=
"
28
sp"
/>
<Button
<Button
android:id=
"@+id/btn_withdraw"
android:id=
"@+id/btn_withdraw"
...
...
GoodMoney/app/src/main/res/layout/item_recy_invited.xml
View file @
ebb71992
...
@@ -15,9 +15,12 @@
...
@@ -15,9 +15,12 @@
<TextView
<TextView
android:id=
"@+id/item_invited_tv_num"
android:id=
"@+id/item_invited_tv_num"
android:layout_width=
"wrap_content"
android:layout_width=
"30dp"
android:layout_height=
"wrap_content"
android:layout_height=
"30dp"
android:text=
"1"
/>
android:gravity=
"center"
android:textColor=
"@color/black_text"
android:textSize=
"@dimen/font_size_16"
android:visibility=
"gone"
/>
<ImageView
<ImageView
android:id=
"@+id/item_invited_iv_avatar"
android:id=
"@+id/item_invited_iv_avatar"
...
@@ -31,7 +34,6 @@
...
@@ -31,7 +34,6 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"10dp"
android:layout_marginStart=
"10dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:text=
"我的好友"
android:textColor=
"@color/black_text"
android:textColor=
"@color/black_text"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
...
@@ -39,13 +41,13 @@
...
@@ -39,13 +41,13 @@
android:id=
"@+id/item_invited_tv_coin"
android:id=
"@+id/item_invited_tv_coin"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"999999"
android:textColor=
"@color/my_color_orange"
android:textColor=
"@color/my_color_orange"
android:textSize=
"2
0
sp"
/>
android:textSize=
"2
2
sp"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:text=
"金币"
android:text=
"金币"
android:textColor=
"@color/my_color_orange"
android:textColor=
"@color/my_color_orange"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
...
...
GoodMoney/app/src/main/res/layout/view_sign.xml
View file @
ebb71992
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"
14
dp"
android:layout_marginStart=
"
20
dp"
android:layout_marginTop=
"-
7
dp"
android:layout_marginTop=
"-
10
dp"
android:layout_marginEnd=
"2
7
dp"
android:layout_marginEnd=
"2
0
dp"
android:background=
"@color/
order_hint_color
"
/>
android:background=
"@color/
color_F5F
"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
GoodMoney/app/src/main/res/mipmap-xhdpi/ic_record_empty.png
0 → 100644
View file @
ebb71992
18.8 KB
GoodMoney/app/src/main/res/mipmap-xhdpi/ic_sign_nofinish.png
0 → 100644
View file @
ebb71992
3.39 KB
GoodMoney/app/src/main/res/values/colors.xml
View file @
ebb71992
...
@@ -152,6 +152,7 @@
...
@@ -152,6 +152,7 @@
<color
name=
"my_color_black"
>
#343C4F
</color>
<color
name=
"my_color_black"
>
#343C4F
</color>
<color
name=
"my_color_orange"
>
#FB560C
</color>
<color
name=
"my_color_orange"
>
#FB560C
</color>
<color
name=
"my_color_orange2"
>
#EBB20D
</color>
<color
name=
"color_999"
>
#999999
</color>
<color
name=
"color_999"
>
#999999
</color>
<color
name=
"color_555"
>
#555555
</color>
<color
name=
"color_555"
>
#555555
</color>
<color
name=
"color_F5F"
>
#F5F5F5
</color>
<color
name=
"color_F5F"
>
#F5F5F5
</color>
...
...
GoodMoney/app/src/main/res/values/styles.xml
View file @
ebb71992
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
<!--默认Tablayout字体大小-->
<!--默认Tablayout字体大小-->
<style
name=
"TabLayoutTextSize"
>
<style
name=
"TabLayoutTextSize"
>
<item
name=
"android:textSize"
>
@dimen/font_size_1
8
</item>
<item
name=
"android:textSize"
>
@dimen/font_size_1
6
</item>
</style>
</style>
<!--设置Tablayout字体加粗-->
<!--设置Tablayout字体加粗-->
<style
name=
"TabLayoutTextStyle"
>
<style
name=
"TabLayoutTextStyle"
>
...
...
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