Android和QUOT;工具提示" [英] Android "Tooltip"

查看:111
本文介绍了Android和QUOT;工具提示"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前Android的YouTube应用提供了有益的提示用于导航的用户界面。例如:在第一时间标签之间的用户切换而播放视频时,一个小的提示有一个箭头弹出,并说:你也可以在标签之间通过左右滑动切换。或者诸如此类的话。有没有一种办法来模仿这种提示的外观和功能?

The current Android YouTube application provides helpful hints for navigating the user interface. For example: the first time the user switches between tabs while a video is playing, a small "tooltip" with an arrow pops up and says "You can also switch between tabs by swiping left and right." or something to that effect. Is there a way to mimic the look and functionality of this tooltip?

推荐答案

我能想到做了preferences文件,该文件是有东西的最佳方式,当用户触发某个事件(pressing一个选项​​卡的Youtube,而不是刷卡),它带来了一个自定义视图,甚至举杯消息。然后,提示触发后,如触发设置在preferences文件中的特定的标签。

The best way I could think of doing that is having something in a preferences file and when the user triggers a certain event (pressing a tab in Youtube rather than swiping) it brings up a custom view or even a Toast message. Then, after the tooltip is triggered, set the specific tag in the preferences file as triggered.

这篇关于Android和QUOT;工具提示"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆