Closed sajadmaster closed 7 years ago
Try:
final SimpleTooltip tooltip = new SimpleTooltip.Builder(this)
.anchorView(loveGoalMeterIV)
.text("Texto do Tooltip")
.gravity(Gravity.BOTTOM)
.animated(true)
.transparentOverlay(false)
.dismissOnInsideTouch(false)
.dismissOnOutsideTouch(false)
.build();
tooltip.show();
ImageView loveGoalMeterIV = findViewById(R.id.loveGoalMeterIV);
loveGoalMeterIV.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
tooltip.dismiss();
}
});
Worked like a charm! Thanks for the prompt reply :)
Let's say I have added this tooltip to a button view. Now I want to dismiss this tooltip only after I click the button. There are only two ways to dismiss this tooltip:
Is there any other way to dismiss this tooltip inside another view's click listener? for example: