Skip to content

自定义ImagePopoverImpl,点击插入图片按钮,不回调show方法 #34

@colinli89

Description

@colinli89

我自己implements Popover,实现了show和hide方法。

将示例中的代码修改如下:
TextView imageButtonTextView = (TextView) findViewById(R.id.button_image);
imageButtonTextView.setTypeface(iconfont);
TextViewButton imageButton = new TextViewButton(imageButtonTextView, icarus);
imageButton.setName(Button.NAME_IMAGE);
imageButton.setPopover(new ImgPopover());
toolbar.addButton(imageButton);

但当我点击这个按钮的时候并没有调用show方法,只是插入了一张tower的logo

我已经写好了相册选择,压缩上传等功能,想知道应该在什么地方调用这些功能

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