Is there anything like a Background Picker Selection?

I think there's a new update to this.

What is a background picker selection?

perhaps

or if you want to do the coding yourself:

To change an app's background using a selection in MIT App Inventor, use the ListPicker (for a text list of colors or image names) or ImagePicker (to pick an image file from your device) combined with an AfterPicking event block. [1, 2, 3]

Steps to Change Background with a ListPicker (Colors)

  1. Designer Window:

    • Drag a ListPicker onto your screen. Change its text to "Select Background Color".

    • In the ListPicker properties, set the ElementsFromString property to a comma-separated list of colors, such as Red, Blue, Green, White. [1]

  2. Blocks Window:

    • Find your ListPicker in the blocks drawer and drag the when ListPicker1.AfterPicking do event block.

    • Inside that event, add a block to set your screen's background (set Screen1.BackgroundColor to).

    • Use an if-else logic block or evacuate/evaluate to match ListPicker1.Selection to actual color blocks:

      • If ListPicker1.Selection = "Red", set background to Red.

      • If ListPicker1.Selection = "Blue", set background to Blue. [1, 2, 3]


Steps to Change Background with an ImagePicker (Images)

  1. Designer Window:

    • Drag an ImagePicker onto your screen.
  2. Blocks Window:

    • Drag the when ImagePicker1.AfterPicking do event block.

    • Add a block to set the background image: set Screen1.BackgroundImage to (or Canvas1.BackgroundImage).

    • Plug the ImagePicker1.Selection block directly into the value slot. (Note: Ensure your File Scope is set correctly in Screen properties if testing on newer Android versions

So "background" not "background" ? :smiley: