how to display ToolTip in android?

后端 未结 11 1251
情书的邮戳
情书的邮戳 2020-12-17 09:04

I want to display the ToolTip(QuickAction View) when I am moving my cursor on the view. Can any one please give me the simple example for it? tooltip will only contains the

11条回答
  •  忘掉有多难
    2020-12-17 09:38

    Android doesn't have tool tips. It is a touch-based UI. Current touch sensors can't generally detect hovering in a way that tool tips would be useful.

    There's no concept of "hovering" in a touch screen, but you could set a LongClickListener for your View, and have a Toast appear after a long press.

提交回复
热议问题