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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -