Frage

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.

Keine korrekte Lösung

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top