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
35754964
Commit
35754964
authored
Dec 23, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
4198c514
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
381 additions
and
22 deletions
+381
-22
build.gradle
GoodMoney/app/build.gradle
+0
-2
AndroidManifest.xml
GoodMoney/app/src/main/AndroidManifest.xml
+3
-0
MintsApplication.java
...p/src/main/java/com/mints/goodmoney/MintsApplication.java
+16
-16
XmlyActivity.kt
...ain/java/com/mints/goodmoney/ui/activitys/XmlyActivity.kt
+351
-0
MoneyFragment.kt
...ain/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
+1
-2
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+4
-2
libxmediaplayer_x.so
...ney/app/src/main/jniLibs/armeabi-v7a/libxmediaplayer_x.so
+0
-0
libxmediaplayer_x.so
GoodMoney/app/src/main/jniLibs/armeabi/libxmediaplayer_x.so
+0
-0
activity_xmly_test.xml
GoodMoney/app/src/main/res/layout/activity_xmly_test.xml
+6
-0
No files found.
GoodMoney/app/build.gradle
View file @
35754964
...
...
@@ -36,8 +36,6 @@ android {
}
sourceSets
{
main
{
jniLibs
.
srcDirs
=
[
'libs'
]
}
}
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
...
...
GoodMoney/app/src/main/AndroidManifest.xml
View file @
35754964
...
...
@@ -209,6 +209,9 @@
<activity
android:name=
".ui.activitys.XmlyPlayActivity"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".ui.activitys.XmlyActivity"
android:screenOrientation=
"portrait"
/>
<service
android:name=
".service.UpdateService"
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/MintsApplication.java
View file @
35754964
...
...
@@ -62,21 +62,21 @@ public class MintsApplication extends MultiDexApplication {
// 判断应用是否在前台
ForegroundOrBackground
.
init
(
this
);
ConstantsOpenSdk
.
isDebug
=
true
;
XMediaPlayerConstants
.
isDebug
=
true
;
XmPlayerConfig
.
getInstance
(
this
).
setDefualtNotificationNickNameAndInfo
(
"开心麻花"
,
"开心开心,无敌开心"
);
if
(
BaseUtil
.
isMainProcess
(
this
))
{
// 喜马拉雅
CommonRequest
instanse
=
CommonRequest
.
getInstanse
();
String
mAppSecret
=
"db3cb9e3ec5943f4987e78ddc5aec728"
;
String
mAppKey
=
"ff71a11162f20808f9f349452dd9e141"
;
instanse
.
setAppkey
(
mAppKey
);
instanse
.
setAppsecret
(
mAppSecret
);
instanse
.
setPackid
(
"com.mints.goodmoney"
);
instanse
.
setUseHttps
(
false
);
instanse
.
init
(
this
,
mAppSecret
);
}
//
ConstantsOpenSdk.isDebug = true;
//
XMediaPlayerConstants.isDebug = true;
//
XmPlayerConfig.getInstance(this).setDefualtNotificationNickNameAndInfo("开心麻花", "开心开心,无敌开心");
//
//
if (BaseUtil.isMainProcess(this)) {
//
// 喜马拉雅
//
CommonRequest instanse = CommonRequest.getInstanse();
//
String mAppSecret = "db3cb9e3ec5943f4987e78ddc5aec728";
//
String mAppKey = "ff71a11162f20808f9f349452dd9e141";
//
instanse.setAppkey(mAppKey);
//
instanse.setAppsecret(mAppSecret);
//
instanse.setPackid("com.mints.goodmoney");
//
instanse.setUseHttps(false);
//
instanse.init(this, mAppSecret);
//
}
// 三方配置
thirdConfig
();
...
...
@@ -161,7 +161,7 @@ public class MintsApplication extends MultiDexApplication {
RsNewsManager
.
INSTANCE
.
initX5Environment
(
this
);
// 喜马拉雅
//
initXmly();
initXmly
();
}
private
void
initXmly
()
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/XmlyActivity.kt
0 → 100644
View file @
35754964
This diff is collapsed.
Click to expand it.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
View file @
35754964
...
...
@@ -129,7 +129,6 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
fun
selectVedio
()
{
// vpFragmentMoney.currentItem = 0
if
(
mainFragment
==
null
)
{
mainFragment
=
MainFragment
()
}
...
...
@@ -140,7 +139,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
// vpFragmentMoney.currentItem = 1
if
(
bookStoreFragment
==
null
)
{
bookStoreFragment
=
My
ZhangyueFragment
()
bookStoreFragment
=
ZhangyueFragment
()
}
addOrShowFragment
(
childFragmentManager
,
bookStoreFragment
!!
,
FRAGMENT_TAG_BOOKSTORE
)
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
35754964
...
...
@@ -409,6 +409,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
mainMyAdapter
?.
notifyDataSetChanged
()
}
// 每日任务
override
fun
onItemChildClick
(
view
:
View
?,
position
:
Int
)
{
if
(
AntiShake
.
check
(
view
?.
id
))
return
...
...
@@ -639,6 +640,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
}
}
// 热门活动
override
fun
onItemClick
(
parent
:
AdapterView
<
*
>,
view
:
View
,
position
:
Int
,
id
:
Long
)
{
if
(
hotList
!!
.
isNotEmpty
())
{
val
hotBean
:
BannerBean
.
ListBean
=
hotList
!!
[
position
]
...
...
@@ -658,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/jniLibs/armeabi-v7a/libxmediaplayer_x.so
deleted
100644 → 0
View file @
4198c514
File deleted
GoodMoney/app/src/main/jniLibs/armeabi/libxmediaplayer_x.so
deleted
100644 → 0
View file @
4198c514
File deleted
GoodMoney/app/src/main/res/layout/activity_xmly_test.xml
View file @
35754964
...
...
@@ -42,6 +42,12 @@
android:layout_height=
"wrap_content"
android:text=
"播放专辑内容"
/>
<Button
android:id=
"@+id/btn5"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"播放音频"
/>
</LinearLayout>
</com.mints.goodmoney.ui.widgets.ElasticScrollView>
...
...
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