Skip to content

点击的屏幕区域不对应图片区域 #1

@ghost

Description

        Drawable drawable = ((StateListDrawable)getBackground()).getCurrent();
        bitmap = ((BitmapDrawable)drawable).getBitmap();
以上代码好像有bug:在华为p6等高分辨率的手机上,点击的屏幕区域并不对应图片区域。可以通过把当view(而不是背景图)转化为bitmap来解决

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