Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sobot_module_Dev
Project
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
sobot_android
Sobot_module_Dev
Commits
5fe7dc12
Commit
5fe7dc12
authored
Mar 14, 2024
by
郭倩芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片加载框架picasso支持v2.7、2.8版本
parent
db474104
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
build.gradle
sobot_pictureframe/build.gradle
+1
-1
sobot-picture-publish-mavencentral.gradle
sobot_pictureframe/sobot-picture-publish-mavencentral.gradle
+1
-1
SobotPicassoImageLoader.java
.../java/com/sobot/pictureframe/SobotPicassoImageLoader.java
+5
-6
No files found.
sobot_pictureframe/build.gradle
View file @
5fe7dc12
...
...
@@ -30,7 +30,7 @@ dependencies {
compileOnly
'androidx.legacy:legacy-support-v4:1.0.0'
compileOnly
'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compileOnly
'com.github.bumptech.glide:glide:3.8.0'
compileOnly
'com.squareup.picasso:picasso:2.
5.2
'
compileOnly
'com.squareup.picasso:picasso:2.
8
'
compileOnly
'com.facebook.fresco:fresco:2.6.0'
api
'com.sobot.chat:sobotsupport-glidev4:1.0'
}
...
...
sobot_pictureframe/sobot-picture-publish-mavencentral.gradle
View file @
5fe7dc12
...
...
@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext
{
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'picture_x'
//项目名
PUBLISH_VERSION
=
'1.1.
7
'
//版本号
PUBLISH_VERSION
=
'1.1.
8
'
//版本号
}
...
...
sobot_pictureframe/src/main/java/com/sobot/pictureframe/SobotPicassoImageLoader.java
View file @
5fe7dc12
...
...
@@ -25,14 +25,13 @@ public class SobotPicassoImageLoader extends SobotImageLoader {
}
RequestCreator
creator
;
if
(
pathStr
.
startsWith
(
"http"
))
{
creator
=
Picasso
.
with
(
context
).
load
(
pathStr
);
creator
=
Picasso
.
get
(
).
load
(
pathStr
);
}
else
{
//本地文件
File
file
=
new
File
(
pathStr
);
if
(
file
!=
null
)
{
creator
=
Picasso
.
with
(
context
).
load
(
file
);
}
else
{
creator
=
Picasso
.
with
(
context
).
load
(
pathStr
)
;
creator
=
Picasso
.
get
(
).
load
(
file
);
}
else
{
creator
=
Picasso
.
get
().
load
(
pathStr
);
;
}
}
if
(
loadingResId
!=
0
)
{
...
...
@@ -59,7 +58,7 @@ public class SobotPicassoImageLoader extends SobotImageLoader {
@Override
public
void
displayImage
(
Context
context
,
final
ImageView
imageView
,
int
targetResId
,
int
loadingResId
,
int
failResId
,
int
width
,
int
height
,
final
SobotDisplayImageListener
listener
)
{
RequestCreator
creator
=
Picasso
.
with
(
context
).
load
(
targetResId
).
config
(
Bitmap
.
Config
.
RGB_565
);
RequestCreator
creator
=
Picasso
.
get
(
).
load
(
targetResId
).
config
(
Bitmap
.
Config
.
RGB_565
);
if
(
loadingResId
!=
0
)
{
creator
.
placeholder
(
loadingResId
);
}
...
...
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