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
fb3732b2
Commit
fb3732b2
authored
Mar 29, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Banner显示错误问题修复
parent
8618525c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
MyPresenter.kt
...in/java/com/mints/goodmoney/mvp/presenters/MyPresenter.kt
+1
-0
MyView.kt
...app/src/main/java/com/mints/goodmoney/mvp/views/MyView.kt
+0
-1
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+8
-4
BannerView.java
.../main/java/com/mints/goodmoney/ui/widgets/BannerView.java
+2
-2
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/presenters/MyPresenter.kt
View file @
fb3732b2
...
...
@@ -11,6 +11,7 @@ import com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.mvp.model.*
import
com.mints.goodmoney.mvp.views.MyView
import
com.mints.goodmoney.utils.DeviceUuidFactory
import
com.mints.goodmoney.utils.LogUtil
import
com.mints.library.net.neterror.BaseSubscriber
import
com.mints.library.net.neterror.Throwable
import
java.util.*
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/views/MyView.kt
View file @
fb3732b2
package
com.mints.goodmoney.mvp.views
import
com.google.gson.JsonObject
import
com.mints.goodmoney.mvp.model.*
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
fb3732b2
...
...
@@ -163,9 +163,7 @@ class MyFragment : BaseFragment(),
myPresenter
.
userLogin
()
}
if
(
banner_view
.
visibility
==
View
.
VISIBLE
)
{
banner_view
.
startAutoScroll
()
}
// 刷新喜马拉雅信息流
TTPreLoadExpressXmlyManager
.
getInstance
().
loadTtFrameLayout
()
...
...
@@ -361,18 +359,24 @@ class MyFragment : BaseFragment(),
mBannerData
=
data
if
(
mBannerData
?.
list
==
null
||
mBannerData
?.
list
!!
.
size
==
0
)
{
mAdBannerAdapter
=
null
fl_my_banner
.
visibility
=
View
.
VISIBLE
LogUtil
.
d
(
"TAG"
,
"getMyRotationChartSuc"
)
banner_view
.
visibility
=
View
.
GONE
BannerManager
.
getTtBanner
(
TtCsjAdManager
.
TT_AD_BANNER_MY
,
fl_my_banner
)
}
else
{
fl_my_banner
.
visibility
=
View
.
GONE
banner_view
.
visibility
=
View
.
VISIBLE
mAdBannerAdapter
=
AdBannerAdapter
(
activity
)
mAdBannerAdapter
?.
let
{
val
list
:
MutableList
<
RotationChartBean
.
ListBean
?>
=
mutableListOf
()
list
.
addAll
(
mBannerData
?.
list
!!
)
list
.
add
(
data
.
position
,
null
)
it
.
setOnPageClickListener
(
this
)
it
.
setData
(
mBannerData
?.
list
)
it
.
setData
(
list
)
it
.
setAdPosition
(
data
.
position
)
banner_view
.
setAdapter
(
it
)
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/widgets/BannerView.java
View file @
fb3732b2
...
...
@@ -289,7 +289,7 @@ public class BannerView extends FrameLayout {
* 开启自动轮播
*/
public
void
startAutoScroll
()
{
if
(
mScrollTask
==
null
)
return
;
if
(
mScrollTask
==
null
||
getVisibility
()
==
View
.
GONE
)
return
;
mScrollTask
.
start
();
setAnimationScroll
((
int
)
mAnimDuration
);
}
...
...
@@ -298,7 +298,7 @@ public class BannerView extends FrameLayout {
* 停止自动轮播
*/
public
void
stopAutoScroll
()
{
if
(
mScrollTask
==
null
)
return
;
if
(
mScrollTask
==
null
||
getVisibility
()
==
View
.
GONE
)
return
;
mScrollTask
.
stop
();
}
...
...
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