Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是安卓新手。前段时间我看到了应用程序“Cracked Screen”。它制作屏幕截图,然后添加一个透明的“破解”精灵并显示它。我可以在不截图的情况下做类似的事情吗?那就是在GUI之上显示精灵?
PS:对不起我的英语不好:)
是的你可以。只需使用 SurfaceView 并将图像放在它上面。图像或图像所在的布局应设置 android:background="@null"。未能设置背景会为您提供默认背景,但如图所示设置为 null 会使其透明。