Commit 62c09163 by fengquan

fix: 咨询师详情页

parent e22086b1
...@@ -153,6 +153,7 @@ class BasePhotoFragment : Fragment() { ...@@ -153,6 +153,7 @@ class BasePhotoFragment : Fragment() {
mySimpleTarget = object : MySimpleTarget { mySimpleTarget = object : MySimpleTarget {
override fun onResourceReady() { override fun onResourceReady() {
loading?.setVisibility(GONE) loading?.setVisibility(GONE)
imageView?.setBackgroundResource(R.color.transparent)
// String video = beanViewInfo.getVideoUrl(); // String video = beanViewInfo.getVideoUrl();
// if (video != null && !video.isEmpty()) { // if (video != null && !video.isEmpty()) {
// btnVideo.setVisibility(View.VISIBLE); // btnVideo.setVisibility(View.VISIBLE);
...@@ -164,6 +165,7 @@ class BasePhotoFragment : Fragment() { ...@@ -164,6 +165,7 @@ class BasePhotoFragment : Fragment() {
override fun onLoadFailed(errorDrawable: Drawable?) { override fun onLoadFailed(errorDrawable: Drawable?) {
loading?.setVisibility(GONE) loading?.setVisibility(GONE)
imageView?.setBackgroundResource(R.color.transparent)
if (isVisiable) { if (isVisiable) {
ToastUtil.toastShort(activity, "加载失败") ToastUtil.toastShort(activity, "加载失败")
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
android:id="@+id/photoView" android:id="@+id/photoView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@android:color/transparent" android:background="@color/black"
android:scaleType="centerInside" /> android:scaleType="centerInside" />
<RelativeLayout <RelativeLayout
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment