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
1ead59d1
Commit
1ead59d1
authored
Apr 08, 2022
by
yang.kai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: ydl-platform升级引入fresco图片加载库,加载webp动态图,修改首页咨询弹窗ui
parent
f6da08cb
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
38 additions
and
11 deletions
+38
-11
ComponentTestApp.java
app/src/main/java/com/ydl/component/base/ComponentTestApp.java
+3
-0
config.gradle
config.gradle
+8
-3
ConsultAssistantDialog.kt
m-consultant/src/main/java/com/yidianling/consultant/dialog/ConsultAssistantDialog.kt
+19
-1
consultant_expert_consult_assistant_popup_window.xml
m-consultant/src/main/res/layout/consultant_expert_consult_assistant_popup_window.xml
+5
-7
consultant_assistant_dialog_img.png
m-consultant/src/ydl/res/drawable-xhdpi/consultant_assistant_dialog_img.png
+0
-0
consultant_assistant_dialog_img.webp
m-consultant/src/ydl/res/drawable-xhdpi/consultant_assistant_dialog_img.webp
+0
-0
build.gradle
ydl-platform/build.gradle
+3
-0
No files found.
app/src/main/java/com/ydl/component/base/ComponentTestApp.java
View file @
1ead59d1
...
...
@@ -7,6 +7,7 @@ import android.os.Process;
import
androidx.multidex.MultiDex
;
import
android.webkit.WebView
;
import
com.facebook.drawee.backends.pipeline.Fresco
;
import
com.meituan.android.walle.WalleChannelReader
;
import
com.umeng.analytics.MobclickAgent
;
import
com.umeng.commonsdk.UMConfigure
;
...
...
@@ -58,6 +59,8 @@ public class ComponentTestApp extends BaseApp {
initUmeng
();
registerActivityLifecycleCallbacks
(
new
CoursePlayLifecycle
());
Fresco
.
initialize
(
this
);
}
private
void
initUmeng
()
{
...
...
config.gradle
View file @
1ead59d1
...
...
@@ -33,7 +33,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform"
:
"0.0.40.
79
"
,
"ydl-platform"
:
"0.0.40.
83
"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.58"
,
...
...
@@ -76,6 +76,7 @@ ext {
retrofitSdkVersion
:
"2.6.0"
,
dagger2SdkVersion
:
"2.23.2"
,
glideSdkVersion
:
"4.12.0"
,
frescoSdkVersion
:
"2.1.0"
,
butterknifeSdkVersion
:
"9.0.0-rc1"
,
rxlifecycleSdkVersion
:
"1.0"
,
rxlifecycle2SdkVersion
:
"2.2.2"
,
...
...
@@ -115,7 +116,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform"
:
"0.0.40.
79
"
,
"ydl-platform"
:
"0.0.40.
83
"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.58"
,
...
...
@@ -155,7 +156,11 @@ ext {
"glide-loader-okhttp3"
:
"com.github.bumptech.glide:okhttp3-integration:${version["
glideSdkVersion
"]}"
,
"glide-annotations"
:
"com.github.bumptech.glide:annotations:${version["
glideSdkVersion
"]}"
,
"glide-transformations"
:
"jp.wasabeef:glide-transformations:4.3.0"
,
"picasso"
:
"com.squareup.picasso:picasso:2.5.2"
,
// "picasso" : "com.squareup.picasso:picasso:2.5.2",
"fresco"
:
"com.facebook.fresco:fresco:${version["
frescoSdkVersion
"]}"
,
// 支持 WebP (静态图+动图),需要添加
"fresco-animated-webp"
:
"com.facebook.fresco:animated-webp:${version["
frescoSdkVersion
"]}"
,
"fresco-webpsupport"
:
"com.facebook.fresco:webpsupport:${version["
frescoSdkVersion
"]}"
,
//view
"autolayout"
:
"com.zhy:autolayout:1.4.5"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/dialog/ConsultAssistantDialog.kt
View file @
1ead59d1
...
...
@@ -5,17 +5,25 @@ import android.animation.Animator
import
android.animation.ObjectAnimator
import
android.app.Dialog
import
android.content.Context
import
android.net.Uri
import
android.os.Bundle
import
android.os.Handler
import
android.view.Gravity
import
android.view.View
import
android.view.WindowManager
import
com.ydl.ydlcommon.utils.SharedPreferencesEditor
import
com.facebook.drawee.backends.pipeline.Fresco
import
com.facebook.drawee.interfaces.DraweeController
import
com.facebook.imagepipeline.common.ResizeOptions
import
com.facebook.imagepipeline.common.RotationOptions
import
com.facebook.imagepipeline.postprocessors.IterativeBoxBlurPostProcessor
import
com.facebook.imagepipeline.request.ImageRequest
import
com.facebook.imagepipeline.request.ImageRequestBuilder
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.consultant.R
import
com.yidianling.consultant.modular.singlton.ConsultAssistantDialogUtils
import
kotlinx.android.synthetic.main.consultant_expert_consult_assistant_popup_window.*
/**
* 咨询助理浮层
* Created by xj on 2019/10/30.
...
...
@@ -92,6 +100,16 @@ class ConsultAssistantDialog(
})
}
val
controller
:
DraweeController
=
Fresco
.
newDraweeControllerBuilder
()
.
setUri
(
Uri
.
parse
(
"res://drawable/"
+
R
.
drawable
.
consultant_assistant_dialog_img
))
.
setOldController
(
consultant_assistant
.
controller
)
.
setAutoPlayAnimations
(
true
)
// 是否自动播放Gif动画
.
build
()
consultant_assistant
.
controller
=
controller
consultant_assistant
.
setOnClickListener
{
consultAssistantClickListener
?.
onClickAction
()
}
...
...
m-consultant/src/main/res/layout/consultant_expert_consult_assistant_popup_window.xml
View file @
1ead59d1
...
...
@@ -10,17 +10,17 @@
android:layout_height=
"84dp"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"2
5
dp"
android:layout_marginRight=
"2
2
dp"
android:clipChildren=
"true"
android:gravity=
"center"
android:orientation=
"horizontal"
android:paddingRight=
"25dp"
android:paddingBottom=
"40dp"
>
>
<LinearLayout
android:id=
"@+id/consultant_assistant_dialog_desc_ll"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_height=
"47dp"
android:layout_marginTop=
"4dp"
android:background=
"@drawable/consultant_assistant_dialog_text_bg"
android:gravity=
"center"
>
...
...
@@ -78,14 +78,13 @@
</LinearLayout>
<
Imag
eView
<
com.facebook.drawee.view.SimpleDrawe
eView
android:id=
"@+id/consultant_assistant"
android:layout_width=
"61dp"
android:layout_height=
"101dp"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:scaleType=
"centerCrop"
android:src=
"@drawable/consultant_assistant_dialog_img"
android:paddingBottom=
"40dp"
/>
</RelativeLayout>
\ No newline at end of file
m-consultant/src/ydl/res/drawable-xhdpi/consultant_assistant_dialog_img.png
deleted
100644 → 0
View file @
f6da08cb
41.5 KB
m-consultant/src/ydl/res/drawable-xhdpi/consultant_assistant_dialog_img.webp
0 → 100644
View file @
1ead59d1
File added
ydl-platform/build.gradle
View file @
1ead59d1
...
...
@@ -136,6 +136,9 @@ dependencies {
kapt
rootProject
.
ext
.
dependencies
[
"glide-compiler"
]
api
rootProject
.
ext
.
dependencies
[
"glide"
]
api
rootProject
.
ext
.
dependencies
[
"glide-transformations"
]
api
rootProject
.
ext
.
dependencies
[
"fresco"
]
api
rootProject
.
ext
.
dependencies
[
"fresco-animated-webp"
]
api
rootProject
.
ext
.
dependencies
[
"fresco-webpsupport"
]
api
rootProject
.
ext
.
dependencies
[
"constraint-layout"
]
api
rootProject
.
ext
.
dependencies
[
"cube"
]
api
rootProject
.
ext
.
dependencies
[
"support-multidex"
]
...
...
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