I wanted to provided users with an option to set the background my custom launcher. However, the code I tried only set the background of the default home screen and not of my launcher. Can I make the code to change the background of my custom launcher.

没有正确的解决方案

其他提示

What do you mean by launcher? You can just put some buttons up and have each one do something along the lines of this

public void setActivityBackgroundColor(int color) {
        View view = this.getWindow().getDecorView();
        view.setBackgroundColor(color);
    }

and obviously change the color to the ones you want them to be able to select.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top