Skip to content

能否导出界面的xml或imageview的bitmap数据? #3

Open

Description

@1371030
No description provided.

Activity

  1. qq8-------6 commented on Sep 10, 2021

    @qq8-------6

    目前不支持
    导出界面的XML从技术层面是可行的,不论是把整个WINDOW的VIEW树转化为xml形式,还是按照资源ID去apk里面提取原始的资源文件都是可行的
    ImageView的bitmap数据无法通过无障碍服务获得,但是有个替代方案,就是截取屏幕截图,然后按照获取到的VIEW坐标区域抠出来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions