gpt4 book ai didi

android - 安卓欢迎界面的制作方法

转载 作者:行者123 更新时间:2023-11-29 17:32:09 25 4
gpt4 key购买 nike

是否有可能为 Android 应用程序制作第一个启动屏幕,例如首次启动 Android 操作系统时出现的屏幕。

有没有办法做出像这样的东西

enter image description here

最佳答案

看看这个ShowCaseView Library

有了这个,你可以像你的形象一样做一个 Activity :

new ShowcaseView.Builder(this)
.setTarget(new ActionViewTarget(this, ActionViewTarget.Type.HOME))
.setContentTitle("ShowcaseView")
.setContentText("This is highlighting the Home button")
.hideOnTouchOutside()
.build();

编辑

因为 SwhowCaseView Library 已弃用,正如他的所有者所说:

Currently, ShowcaseView is not under active development; issues cannot be opened and PRs will not be accepted.

I've decided to make this decision because I want to rewrite the project from scratch with a far better API. A lot of things Google keep introducing in Android break ShowcaseView and it is too difficult to make these changes with the project in it's current form.

The project is still available on Maven, see below for the instructions. Please see the new-scv branch for development of the new API.

这里有更多,可以为所欲为。

- MaterialShowCase Library

- TourGuide

- RoboDemo

- ShowCaseViewLibrary

关于android - 安卓欢迎界面的制作方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32443744/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com