A simple implementation method for Android programming to set the activity background as wallpaper

This article describes a simple implementation method of setting the activity background as wallpaper in Android programming. Share with you for your reference, as follows:

1) Code mode

2) XML configuration

In the configuration of this activity, add:

The disadvantage of the second method is that the actionbar is gone.

I hope this article will help you in Android programming.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>