Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android 本地图片资源 模版local:xxxx 不生效问题 #216

Closed
hycoon opened this issue Sep 16, 2022 · 2 comments · Fixed by #219
Closed

android 本地图片资源 模版local:xxxx 不生效问题 #216

hycoon opened this issue Sep 16, 2022 · 2 comments · Fixed by #219
Assignees
Labels
bug Something isn't working

Comments

@hycoon
Copy link

hycoon commented Sep 16, 2022

描述这个问题
在模版中 引用android本地图片 ,运行程序后 图片不显示

问题定位
在模版渲染过程成中 gaiaX 会调用
image

image

image

这时候 本地的图片 并没有在 与模版绑定 的json 数据中,因为是本地图片,只是在模版中配置了,所以

框架中中更新节点的json数据就一直不包括 本地的资源
image

image

image

image

我虽然在绑定模版binddata时将本地路径拼进去但是这样动态性会有折扣,希望技术同学予以修复

客户端 (请填写如下信息) :

  • 设备: [e.g. iPhone6]
  • 系统: [e.g. iOS8.1]
  • GaiaX SDK版本 [e.g. 0.1.0]
  • Gaia Studio版本 [e.g. 0.1.0]
  • GaiaX 模板文件和模板数据

崩溃日志
在这里添加崩溃日志

附加信息
在这里添加有关该问题的任何其他信息。

@biezhihua biezhihua self-assigned this Sep 16, 2022
@biezhihua biezhihua added the bug Something isn't working label Sep 16, 2022
@biezhihua
Copy link
Collaborator

@hycoon 你的图片资源放在哪个文件夹下了?

@biezhihua
Copy link
Collaborator

目前我发现好像如果图片资源放在mipmap-xxx目录下无法正常读取

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants