android - Speech bubble type option view on clicking ImageView? -
i have seen type of view somewhere don't remember.when click on item speech bubble type option menu appear.
i'm not sure if right understood, understood question when click on imageview bubble appears ?
i think should make onclicklistener
imageview , when it's clicked dialogue appears .show()
first create dialogue , can shape whatever want bubble (search site), , imageview.
final dialog dialog = new dialog(context); dialog.setcontentview(r.layout.dialog_clk); dialog.settitle("click"); imageview = (imageview) findviewbyid(r.id.iview);
then set clicking listener
i.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { //here show dialogue dialogue.show(); } });
to remove dialogue use
dialog.dismiss();
Comments
Post a Comment