Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
205944c3
authored
Oct 23, 2023
by
han xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传身份证图片
parent
3d7fca81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
baseSDK/src/main/java/com/dayu/utils/GlideImageLoader.java
userCenter/src/main/java/com/dayu/usercenter/ui/activity2/RegisterActivity.java
baseSDK/src/main/java/com/dayu/utils/GlideImageLoader.java
View file @
205944c3
...
@@ -49,6 +49,19 @@ public class GlideImageLoader {
...
@@ -49,6 +49,19 @@ public class GlideImageLoader {
.
into
(
view
);
.
into
(
view
);
}
}
public
static
void
load_1
(
Context
context
,
String
imageRes
,
ImageView
view
)
{
RequestOptions
options
=
new
RequestOptions
()
.
centerInside
()
// 01 optionalCenterCrop 02 centerCrop optionalFitCenter fitCenter
// .placeholder(R.drawable.icon_video_default)
.
diskCacheStrategy
(
DiskCacheStrategy
.
ALL
);
Glide
.
with
(
context
)
.
load
(
imageRes
)
.
transition
(
withCrossFade
())
.
apply
(
options
)
.
into
(
view
);
}
public
static
void
loadHead
(
Context
context
,
String
imageRes
,
ImageView
view
)
{
public
static
void
loadHead
(
Context
context
,
String
imageRes
,
ImageView
view
)
{
RequestOptions
options
=
new
RequestOptions
()
RequestOptions
options
=
new
RequestOptions
()
.
centerCrop
()
.
centerCrop
()
...
...
userCenter/src/main/java/com/dayu/usercenter/ui/activity2/RegisterActivity.java
View file @
205944c3
...
@@ -217,7 +217,7 @@ public class RegisterActivity extends BaseActivity<SImplePresenter, ActivityRegi
...
@@ -217,7 +217,7 @@ public class RegisterActivity extends BaseActivity<SImplePresenter, ActivityRegi
identityPath
=
mSelectList
.
get
(
0
).
getRealPath
();
identityPath
=
mSelectList
.
get
(
0
).
getRealPath
();
}
}
}
}
GlideImageLoader
.
load
(
mActivity
,
identityPath
,
mBind
.
idetntity
);
GlideImageLoader
.
load
_1
(
mActivity
,
identityPath
,
mBind
.
idetntity
);
}
}
}
}
}
}
...
...
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