Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
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
bp
ShenghuoquanBusiness
Commits
a7a062c0
Commit
a7a062c0
authored
Jun 17, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 图片填充判空
parent
5a9c632b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
80 deletions
+82
-80
LifeAccountAuthImageView.kt
...enghuoquan/newscontent/widget/LifeAccountAuthImageView.kt
+82
-80
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/widget/LifeAccountAuthImageView.kt
View file @
a7a062c0
...
...
@@ -59,6 +59,7 @@ class LifeAccountAuthImageView @JvmOverloads constructor(
* @param bitmap 图片bitmap
*/
fun
addImage
(
bitmap
:
Bitmap
?)
{
if
(
bitmap
==
null
)
return
viewBinding
.
ivContent
.
setImageBitmap
(
bitmap
)
isEnabled
=
false
viewBinding
.
ivClear
.
isVisible
=
true
...
...
@@ -69,6 +70,7 @@ class LifeAccountAuthImageView @JvmOverloads constructor(
* @param url 图片url
*/
fun
addImage
(
url
:
String
)
{
if
(
url
.
isEmpty
())
return
Glide
.
with
(
context
).
load
(
url
).
into
(
viewBinding
.
ivContent
)
isEnabled
=
false
viewBinding
.
ivClear
.
isVisible
=
true
...
...
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