Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
d7ace444
Commit
d7ace444
authored
Feb 04, 2020
by
ydl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页文章冥想动态剔除完成
parent
6f5dac52
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
96 additions
and
8 deletions
+96
-8
DynamicConstants.kt
m-dynamic/src/main/java/com/yidianling/dynamic/bean/DynamicConstants.kt
+1
-1
DynamicServiceImp.kt
m-dynamic/src/main/java/com/yidianling/dynamic/modular/service/DynamicServiceImp.kt
+57
-1
IDynamicService.kt
m-dynamic/src/main/modular_api/com/yidianling/dynamic/api/IDynamicService.kt
+22
-1
HomeServiceImpl.kt
m-home/src/main/java/com/yidianling/home/modular/HomeServiceImpl.kt
+7
-0
IHomeService.kt
m-home/src/main/modular_api/com/yidianling/home/api/service/IHomeService.kt
+4
-0
GlideImageDisplayLoader.java
ydl-platform/src/main/java/com/ydl/ydlcommon/view/banner/GlideImageDisplayLoader.java
+5
-5
No files found.
m-dynamic/src/main/java/com/yidianling/dynamic/DynamicConstants.kt
→
m-dynamic/src/main/java/com/yidianling/dynamic/
bean/
DynamicConstants.kt
View file @
d7ace444
package
com.yidianling.dynamic
package
com.yidianling.dynamic
.bean
import
com.ydl.ydlcommon.base.config.HttpConfig
import
com.ydl.ydlcommon.base.config.HttpConfig
...
...
m-dynamic/src/main/java/com/yidianling/dynamic/modular/service/DynamicServiceImp.kt
View file @
d7ace444
...
@@ -3,13 +3,21 @@ package com.yidianling.dynamic.modular.service
...
@@ -3,13 +3,21 @@ package com.yidianling.dynamic.modular.service
import
android.app.Activity
import
android.app.Activity
import
android.content.Context
import
android.content.Context
import
android.content.Intent
import
android.content.Intent
import
android.support.v4.app.Fragment
import
android.support.v4.app.FragmentActivity
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.yidianling.dynamic.activity.MyTrendsActivity
import
com.yidianling.dynamic.activity.TrendsReplyInfoActivity
import
com.yidianling.dynamic.activity.TrendsReplyInfoActivity
import
com.yidianling.dynamic.api.IDynamicService
import
com.yidianling.dynamic.api.IDynamicService
import
com.yidianling.dynamic.bean.DynamicConstants
import
com.yidianling.dynamic.common.browsePictures.BrowsePicturesActivity
import
com.yidianling.dynamic.common.tool.ImageCompress
import
com.yidianling.dynamic.members.MembersActivity
import
com.yidianling.dynamic.members.MembersActivity
import
com.yidianling.dynamic.publishTrend.PublishTrendActivity
import
com.yidianling.dynamic.publishTrend.PublishTrendActivity
import
com.yidianling.dynamic.topic.topicDetail.TopicDetailActivity
import
com.yidianling.dynamic.topic.topicDetail.TopicDetailActivity
import
com.yidianling.dynamic.trendsDetail.TrendsDetailActivity
import
com.yidianling.dynamic.trendsDetail.TrendsDetailActivity
import
com.yidianling.dynamic.trendsHome.TrendsHomeFragment
import
java.io.File
/**
/**
* Created by haorui on 2019-12-17 .
* Created by haorui on 2019-12-17 .
...
@@ -22,6 +30,12 @@ class DynamicServiceImp : IDynamicService {
...
@@ -22,6 +30,12 @@ class DynamicServiceImp : IDynamicService {
}
}
override
fun
membersIntent
(
activity
:
Activity
):
Intent
{
val
intent
=
Intent
()
intent
.
setClass
(
activity
,
MembersActivity
::
class
.
java
)
return
intent
}
override
fun
membersIntent
(
activity
:
Activity
,
userId
:
String
):
Intent
{
override
fun
membersIntent
(
activity
:
Activity
,
userId
:
String
):
Intent
{
return
MembersActivity
.
newIntent
(
activity
,
userId
)
return
MembersActivity
.
newIntent
(
activity
,
userId
)
}
}
...
@@ -34,6 +48,11 @@ class DynamicServiceImp : IDynamicService {
...
@@ -34,6 +48,11 @@ class DynamicServiceImp : IDynamicService {
return
TrendsDetailActivity
.
newIntent
(
activity
,
trendId
)
return
TrendsDetailActivity
.
newIntent
(
activity
,
trendId
)
}
}
override
fun
startTrendsDetail
(
activity
:
Activity
,
trendId
:
Int
,
isSplash
:
Boolean
,
isComment
:
Boolean
,
isScrollToZan
:
Boolean
,
isScrollToComment
:
Boolean
,
lastId
:
Int
)
{
TrendsDetailActivity
.
start
(
activity
,
trendId
,
isSplash
,
isComment
,
isScrollToZan
,
isScrollToComment
,
lastId
)
}
override
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
,
isScrollToZan
:
Boolean
):
Intent
{
override
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
,
isScrollToZan
:
Boolean
):
Intent
{
return
TrendsDetailActivity
.
newIntent
(
activity
,
trendId
,
isScrollToZan
)
return
TrendsDetailActivity
.
newIntent
(
activity
,
trendId
,
isScrollToZan
)
}
}
...
@@ -46,6 +65,12 @@ class DynamicServiceImp : IDynamicService {
...
@@ -46,6 +65,12 @@ class DynamicServiceImp : IDynamicService {
return
PublishTrendActivity
.
newIntent
(
activity
,
url
,
cover
,
title
)
return
PublishTrendActivity
.
newIntent
(
activity
,
url
,
cover
,
title
)
}
}
override
fun
publishTrendIntent
(
activity
:
Activity
):
Intent
{
val
intent
=
Intent
()
intent
.
setClass
(
activity
,
PublishTrendActivity
::
class
.
java
)
return
intent
}
override
fun
publishFmToTrend
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
{
override
fun
publishFmToTrend
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
{
return
PublishTrendActivity
.
newIntentForFm
(
activity
,
url
,
cover
,
title
,
1
)
return
PublishTrendActivity
.
newIntentForFm
(
activity
,
url
,
cover
,
title
,
1
)
}
}
...
@@ -54,7 +79,37 @@ class DynamicServiceImp : IDynamicService {
...
@@ -54,7 +79,37 @@ class DynamicServiceImp : IDynamicService {
return
PublishTrendActivity
.
newIntentForArticle
(
activity
,
url
,
cover
,
title
)
return
PublishTrendActivity
.
newIntentForArticle
(
activity
,
url
,
cover
,
title
)
}
}
override
fun
topicDetailIntent
(
context
:
Context
,
isSplash
:
Boolean
,
topicId
:
String
):
Intent
{
override
fun
topicDetailIntent
(
context
:
Activity
,
isSplash
:
Boolean
,
topicId
:
String
):
Intent
{
return
TopicDetailActivity
.
newIntent
(
context
,
isSplash
,
topicId
)
return
TopicDetailActivity
.
newIntent
(
context
,
isSplash
,
topicId
)
}
}
override
fun
topicDetailIntent
(
context
:
Activity
):
Intent
{
val
intent
=
Intent
()
intent
.
setClass
(
context
,
TopicDetailActivity
::
class
.
java
)
return
intent
}
override
fun
getTrendsHomeFragment
(
tabIndex
:
String
):
Fragment
{
return
TrendsHomeFragment
().
setTab
(
tabIndex
)
}
override
fun
getPublicPicBrowType
():
Int
{
return
DynamicConstants
.
PUBLISH_PIC_BROW
}
override
fun
imageCompressScal
(
activity
:
FragmentActivity
,
path
:
String
,
size
:
Int
):
File
{
return
ImageCompress
.
scal
(
activity
,
path
,
size
)
}
override
fun
getBrosePictureActivityIntent
(
activity
:
Activity
):
Intent
{
val
intent
=
Intent
()
intent
.
setClass
(
activity
,
BrowsePicturesActivity
::
class
.
java
)
return
intent
}
override
fun
getMyTrendsActivityIntent
(
activity
:
Activity
):
Intent
{
val
intent
=
Intent
()
intent
.
setClass
(
activity
,
MyTrendsActivity
::
class
.
java
)
return
intent
}
}
}
\ No newline at end of file
m-dynamic/src/main/modular_api/com/yidianling/dynamic/api/IDynamicService.kt
View file @
d7ace444
...
@@ -3,12 +3,17 @@ package com.yidianling.dynamic.api
...
@@ -3,12 +3,17 @@ package com.yidianling.dynamic.api
import
android.app.Activity
import
android.app.Activity
import
android.content.Context
import
android.content.Context
import
android.content.Intent
import
android.content.Intent
import
android.support.v4.app.Fragment
import
android.support.v4.app.FragmentActivity
import
com.alibaba.android.arouter.facade.template.IProvider
import
com.alibaba.android.arouter.facade.template.IProvider
import
java.io.File
interface
IDynamicService
:
IProvider
{
interface
IDynamicService
:
IProvider
{
fun
membersIntent
(
activity
:
Activity
,
userId
:
String
):
Intent
fun
membersIntent
(
activity
:
Activity
,
userId
:
String
):
Intent
fun
membersIntent
(
activity
:
Activity
):
Intent
fun
replyInfoIntent
(
activity
:
Activity
,
replyId
:
String
,
aid
:
String
):
Intent
fun
replyInfoIntent
(
activity
:
Activity
,
replyId
:
String
,
aid
:
String
):
Intent
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
):
Intent
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
):
Intent
...
@@ -17,12 +22,27 @@ interface IDynamicService : IProvider {
...
@@ -17,12 +22,27 @@ interface IDynamicService : IProvider {
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
,
isScrollToZan
:
Boolean
,
lastId
:
Int
):
Intent
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
,
isScrollToZan
:
Boolean
,
lastId
:
Int
):
Intent
fun
startTrendsDetail
(
activity
:
Activity
,
trendId
:
Int
,
isSplash
:
Boolean
,
isComment
:
Boolean
,
isScrollToZan
:
Boolean
,
isScrollToComment
:
Boolean
,
lastId
:
Int
)
fun
publishTrendIntent
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
fun
publishTrendIntent
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
fun
publishTrendIntent
(
activity
:
Activity
):
Intent
fun
publishFmToTrend
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
fun
publishFmToTrend
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
fun
topicDetailIntent
(
context
:
Context
,
isSplash
:
Boolean
,
topicId
:
String
):
Intent
fun
topicDetailIntent
(
context
:
Activity
,
isSplash
:
Boolean
,
topicId
:
String
):
Intent
fun
topicDetailIntent
(
context
:
Activity
):
Intent
fun
publishArticleToTrend
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
fun
publishArticleToTrend
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
fun
getBrosePictureActivityIntent
(
activity
:
Activity
):
Intent
fun
getMyTrendsActivityIntent
(
activity
:
Activity
):
Intent
fun
getTrendsHomeFragment
(
tabIndex
:
String
):
Fragment
fun
getPublicPicBrowType
():
Int
fun
imageCompressScal
(
activity
:
FragmentActivity
,
path
:
String
,
size
:
Int
):
File
}
}
\ No newline at end of file
m-home/src/main/java/com/yidianling/home/modular/HomeServiceImpl.kt
View file @
d7ace444
package
com.yidianling.home.modular
package
com.yidianling.home.modular
import
android.content.Context
import
android.content.Context
import
android.support.v4.app.Fragment
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.yidianling.home.api.service.IHomeService
import
com.yidianling.home.api.service.IHomeService
import
com.yidianling.home.ui.fragment.YdlHomeFragment
import
com.yidianling.home.ui.utils.Double11ActivityManagerUtils
import
com.yidianling.home.ui.utils.Double11ActivityManagerUtils
@Route
(
path
=
"/home/HomeService"
)
@Route
(
path
=
"/home/HomeService"
)
...
@@ -15,4 +17,8 @@ class HomeServiceImpl : IHomeService {
...
@@ -15,4 +17,8 @@ class HomeServiceImpl : IHomeService {
override
fun
setDouble11ShowType
(
mBool
:
Boolean
)
{
override
fun
setDouble11ShowType
(
mBool
:
Boolean
)
{
Double11ActivityManagerUtils
.
notShowDouble11Activity
=
mBool
Double11ActivityManagerUtils
.
notShowDouble11Activity
=
mBool
}
}
override
fun
getYDLHomeFragment
():
Fragment
{
return
YdlHomeFragment
()
}
}
}
\ No newline at end of file
m-home/src/main/modular_api/com/yidianling/home/api/service/IHomeService.kt
View file @
d7ace444
package
com.yidianling.home.api.service
package
com.yidianling.home.api.service
import
android.support.v4.app.Fragment
import
com.alibaba.android.arouter.facade.template.IProvider
import
com.alibaba.android.arouter.facade.template.IProvider
interface
IHomeService
:
IProvider
{
interface
IHomeService
:
IProvider
{
...
@@ -7,4 +8,6 @@ interface IHomeService : IProvider {
...
@@ -7,4 +8,6 @@ interface IHomeService : IProvider {
//如果是第一次登录则设置为true,表示不显示,避免与新用户弹框重复
//如果是第一次登录则设置为true,表示不显示,避免与新用户弹框重复
fun
setDouble11ShowType
(
mBool
:
Boolean
)
fun
setDouble11ShowType
(
mBool
:
Boolean
)
fun
getYDLHomeFragment
():
Fragment
}
}
\ No newline at end of file
m-dynamic/src/main/java/com/yidianling/dynamic/common/tool/GlideImage
Loader.java
→
ydl-platform/src/main/java/com/ydl/ydlcommon/view/banner/GlideImageDisplay
Loader.java
View file @
d7ace444
package
com
.
y
idianling
.
dynamic
.
common
.
tool
;
package
com
.
y
dl
.
ydlcommon
.
view
.
banner
;
import
android.app.Activity
;
import
android.app.Activity
;
import
android.net.Uri
;
import
android.net.Uri
;
...
@@ -10,13 +10,13 @@ import com.ydl.ydl_image.config.ISimpleImageOpConfig;
...
@@ -10,13 +10,13 @@ import com.ydl.ydl_image.config.ISimpleImageOpConfig;
import
com.ydl.ydl_image.config.SimpleImageOpConfiger
;
import
com.ydl.ydl_image.config.SimpleImageOpConfiger
;
import
com.ydl.ydl_image.manager.YDLImageCacheManager
;
import
com.ydl.ydl_image.manager.YDLImageCacheManager
;
import
com.ydl.ydl_image.module.GlideApp
;
import
com.ydl.ydl_image.module.GlideApp
;
import
com.y
idianling.dynamic
.R
;
import
com.y
dl.ydlcommon
.R
;
/**
/**
* Created by xiongyu on 2017/4/7.
* Created by xiongyu on 2017/4/7.
*/
*/
public
class
GlideImageLoader
implements
ImageLoader
{
public
class
GlideImage
Display
Loader
implements
ImageLoader
{
@Override
@Override
public
void
displayImage
(
Activity
activity
,
String
path
,
ImageView
imageView
,
int
width
,
int
height
)
{
public
void
displayImage
(
Activity
activity
,
String
path
,
ImageView
imageView
,
int
width
,
int
height
)
{
showImage
(
activity
,
path
,
imageView
,
width
,
height
);
showImage
(
activity
,
path
,
imageView
,
width
,
height
);
...
@@ -39,8 +39,8 @@ public class GlideImageLoader implements ImageLoader {
...
@@ -39,8 +39,8 @@ public class GlideImageLoader implements ImageLoader {
private
void
showImage
(
Activity
activity
,
String
path
,
ImageView
imageView
,
int
width
,
int
height
){
private
void
showImage
(
Activity
activity
,
String
path
,
ImageView
imageView
,
int
width
,
int
height
){
SimpleImageOpConfiger
sp
=
new
SimpleImageOpConfiger
();
SimpleImageOpConfiger
sp
=
new
SimpleImageOpConfiger
();
sp
.
loadingPic
=
R
.
drawable
.
dynamic
_default_img
;
sp
.
loadingPic
=
R
.
drawable
.
platform
_default_img
;
sp
.
errorPic
=
R
.
drawable
.
dynamic
_default_img
;
sp
.
errorPic
=
R
.
drawable
.
platform
_default_img
;
sp
.
scaleType
=
ISimpleImageOpConfig
.
CENTER_CROP
;
sp
.
scaleType
=
ISimpleImageOpConfig
.
CENTER_CROP
;
sp
.
isCacheOnDisk
=
false
;
sp
.
isCacheOnDisk
=
false
;
YDLImageCacheManager
.
showImage
(
activity
,
path
,
imageView
,
width
,
height
,
sp
);
YDLImageCacheManager
.
showImage
(
activity
,
path
,
imageView
,
width
,
height
,
sp
);
...
...
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