如何创建Android中的半透明灰教程覆盖? [英] How do I create the semi-transparent grey tutorial overlay in Android?

查看:98
本文介绍了如何创建Android中的半透明灰教程覆盖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当你首次运行Android设备(你看到了很多,如果你使用的仿真器)有是关于如何使用发射器和添加小工具,等等。我想一个有用的小教程你知道吗发现这对谷歌的例子,但我不能。我希望你明白我的意思。这是一个与在每一步蓝色的好按钮。

You know when you run an Android device for the first time (something you see a lot if you use the emulator) that there's a helpful little tutorial about how to use the launcher and add widgets, etc. I'm trying to find an example of this on Google, but I can't. I'm hoping you know what I mean. It's the one with the blue "okay" buttons at each step.

不管怎样,我想创建一个是我的应用程序,但我不知道这是去这样做的最佳方式。

Anyway, I want to create one for my app, but I'm not sure which is the best way to go about doing it.

我创建一个片段,我可以对我的经常性活动前半透明并将它显示只在第一次运行?

Do I create a Fragment that I can make semi-transparent on top of my regular activity and have it show up on only the first run?

让我的半透明巴纽本教程的每一部分,它覆盖了在第一次运行的常规发射活动呢?

Do I make a semi-transparent .png for each section of the tutorial and overlay it over the regular launcher activity on the first run?

如果我选择后者,我怎么可以调整所有不同的屏幕尺寸?我可以只呈现在Photoshop中图像各个方面,但不会涵盖所有的人。如果我去的片段路线,我只能说match_parent,而不是担心。但我必须弄清楚如何片段工作,他们混淆了地狱了我。

If I do the latter, how can I adjust for all the various screen sizes? I could just render the image in Photoshop to various dimensions, but that won't cover all of them. If I go the fragment route, I can just say "match_parent" and not worry about it. But then I have to figure out how Fragments work, and they confuse the hell out of me.

推荐答案

我觉得这个开放源码库是你在寻找什么:

I think this open-source library is exactly what you're looking for:

展示视图

您可以抓住从 GitHub的

这篇关于如何创建Android中的半透明灰教程覆盖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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