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
f9017629
Commit
f9017629
authored
Dec 24, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码tab显示问题
parent
7406fb00
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
7 deletions
+15
-7
build.gradle
GoodMoney/app/build.gradle
+1
-0
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+2
-2
XmlyFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/XmlyFragment.kt
+11
-5
libnative-gamesdk.so
...ney/app/src/main/jniLibs/armeabi-v7a/libnative-gamesdk.so
+0
-0
libnative-gamesdk.so
GoodMoney/app/src/main/jniLibs/armeabi/libnative-gamesdk.so
+0
-0
fragment_main_xmly.xml
GoodMoney/app/src/main/res/layout/fragment_main_xmly.xml
+1
-0
No files found.
GoodMoney/app/build.gradle
View file @
f9017629
...
...
@@ -252,6 +252,7 @@ dependencies {
implementation
'com.just.agentweb:agentweb:4.1.2'
// 喜马拉雅 已集成
// testImplementation 'junit:junit:4.13'
// androidTestImplementation 'androidx.test.ext:junit:1.1.2'
// androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
f9017629
...
...
@@ -660,8 +660,8 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
readyGo
(
EraseActivity
::
class
.
java
)
}
Constant
.
HOT_ACTIVITY_LIEBAO
->
{
//
readyGo(LiebaoGameActivity::class.java)
readyGo
(
XmlyActivity
::
class
.
java
)
readyGo
(
LiebaoGameActivity
::
class
.
java
)
//
readyGo(XmlyActivity::class.java)
// readyGo(XmlyAwardActivity::class.java)
}
Constant
.
HOT_ACTIVITY_MORNINGCLOCK
->
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/XmlyFragment.kt
View file @
f9017629
package
com.mints.goodmoney.ui.fragment
import
android.view.View
import
androidx.fragment.app.Fragment
import
androidx.viewpager.widget.ViewPager
import
com.fly.scenemodule.util.GsonUtils
...
...
@@ -53,11 +54,13 @@ class XmlyFragment : LazyLoadBaseFragment() {
}
private
fun
initViewAndData
(
categoryList
:
CategoryList
?)
{
// hideLoading()
categoryList
?.
let
{
val
tabs
:
MutableList
<
String
>
=
ArrayList
()
val
fragments
:
MutableList
<
Fragment
>
=
ArrayList
()
var
tempPageSize
=
8
if
(
it
.
categories
.
size
<
8
)
{
var
tempPageSize
=
1
8
if
(
it
.
categories
.
size
<
1
8
)
{
tempPageSize
=
it
.
categories
.
size
}
...
...
@@ -66,17 +69,20 @@ class XmlyFragment : LazyLoadBaseFragment() {
fragments
.
add
(
XmlyPageFragment
(
it
.
categories
[
i
].
id
))
}
Timer
().
schedule
(
600
){
hideLoading
()
Timer
().
schedule
(
1000
)
{
activity
?.
runOnUiThread
{
hideLoading
()
xtFragmentXmly
.
visibility
=
View
.
VISIBLE
}
}
//去除两侧应阴影
xtFragmentXmly
.
overScrollMode
=
ViewPager
.
OVER_SCROLL_NEVER
vpFragmentXmly
.
offscreenPageLimit
=
tabs
.
size
+
3
val
adapter
=
MessageFragAdapter
(
childFragmentManager
,
fragments
,
tabs
)
vpFragmentXmly
.
adapter
=
adapter
xtFragmentXmly
.
setxTabDisplayNum
(
tabs
.
size
)
xtFragmentXmly
.
setupWithViewPager
(
vpFragmentXmly
)
}
}
}
\ No newline at end of file
GoodMoney/app/src/main/jniLibs/armeabi-v7a/libnative-gamesdk.so
100644 → 100755
View file @
f9017629
No preview for this file type
GoodMoney/app/src/main/jniLibs/armeabi/libnative-gamesdk.so
100644 → 100755
View file @
f9017629
No preview for this file type
GoodMoney/app/src/main/res/layout/fragment_main_xmly.xml
View file @
f9017629
...
...
@@ -7,6 +7,7 @@
<com.androidkun.xtablayout.XTabLayout
android:id=
"@+id/xtFragmentXmly"
android:visibility=
"invisible"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:xTabIndicatorColor=
"#F28335"
...
...
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