apache / incubator-weex

Apache Weex (Incubating)
https://weex.apache.org
Apache License 2.0
13.75k stars 1.81k forks source link

[Android] in slider tag, use image tag load image with local protocol,weex version 0.20.0, 0.24.0, 0.26.0 #2973

Open wmlgl opened 4 years ago

wmlgl commented 4 years ago

Describe the bug

code like this:

  <slider style="height:750px">
    <image src="local:///a" style="width:750px;height:750px" />
    <image src="local:///b" style="width:750px;height:750px" />
    <image src="local:///c" style="width:750px;height:750px" />
  </slider>

and the drawable-xxhdpi like this:

drawable-xxhdpi/a.jpg
drawable-xxhdpi/b.jpg
drawable-xxhdpi/c.jpg

then run in virutal device, and tap it a few times, image will be blank

To Reproduce

1.install last version weex-toolkit 2.create a project 3.add android platform 4.copy code to index.vue 5.execute npm run android 6.tap image a few times

demo:https://github.com/wmlgl/weex-bug-report

Environment

1.virutal device phone: Pxiel system image: Pie 28 x86 Android 9.0

  1. xiaomi 5s plus os: android 8.0.0
YorkShen commented 4 years ago
  1. Try Weex 0.28 and src="local://a
  2. If this still bothers you and you find a solution, you could give us a PR if you can, I am very happy to talk with you implemenation detail or review you PR in mailing list. Currently, I am a little busy, I can't focus on this issue.
  3. I have a busy schedule and I can't read Github issue every day, but I check mailing list every day. I am sorry if this bothers you.