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
62c09163
Commit
62c09163
authored
Jul 15, 2022
by
fengquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 咨询师详情页
parent
e22086b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
BasePhotoFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/preview/BasePhotoFragment.kt
+2
-0
fragment_image_photo_layout.xml
m-consultant/src/main/res/layout/fragment_image_photo_layout.xml
+1
-1
No files found.
m-consultant/src/main/java/com/yidianling/consultant/preview/BasePhotoFragment.kt
View file @
62c09163
...
...
@@ -153,6 +153,7 @@ class BasePhotoFragment : Fragment() {
mySimpleTarget
=
object
:
MySimpleTarget
{
override
fun
onResourceReady
()
{
loading
?.
setVisibility
(
GONE
)
imageView
?.
setBackgroundResource
(
R
.
color
.
transparent
)
// String video = beanViewInfo.getVideoUrl();
// if (video != null && !video.isEmpty()) {
// btnVideo.setVisibility(View.VISIBLE);
...
...
@@ -164,6 +165,7 @@ class BasePhotoFragment : Fragment() {
override
fun
onLoadFailed
(
errorDrawable
:
Drawable
?)
{
loading
?.
setVisibility
(
GONE
)
imageView
?.
setBackgroundResource
(
R
.
color
.
transparent
)
if
(
isVisiable
)
{
ToastUtil
.
toastShort
(
activity
,
"加载失败"
)
}
...
...
m-consultant/src/main/res/layout/fragment_image_photo_layout.xml
View file @
62c09163
...
...
@@ -12,7 +12,7 @@
android:id=
"@+id/photoView"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@
android:color/transparent
"
android:background=
"@
color/black
"
android:scaleType=
"centerInside"
/>
<RelativeLayout
...
...
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