florent37/ViewTooltip

Hide ToolTip On Click of Other View

ravirajjak opened this issue · 2 comments

How do I hide the tooltip on Button Click?

class MyFragment extends ... {

private ViewTooltip.TooltipView tooltip = null;
private View otherView;

public void onCreated(){
	...
	otherView.setOnClickListener(new View.OnClickListener(){
		void onClick(){
			tooltip.close();
		}
	});
}

public void showTooltip(){
	tooltip = ViewTooltip
    	.on(view)
    	...
    	.show()
}

}

Thanks Mans. You are great.