Skip to content

Is it possible to add a argument to set the background color of the "loading screen"? #881

@mrhdias

Description

@mrhdias

Like we have a argument to set the "presplash" we can have a argument to set the background color of the loading screen (sdl2 bootstarp).

Example:
nano -w pythonforandroid/bootstraps/sdl2/build/src/org/kivy/android/PythonActivity.java

...
        mImageView = new ImageView(this);
        mImageView.setImageBitmap(bitmap);
        mImageView.setBackgroundColor(0xFF0000FF); <=== This set the background to blue
        mImageView.setLayoutParams(new ViewGroup.LayoutParams(
        ViewGroup.LayoutParams.FILL_PARENT,
        ViewGroup.LayoutParams.FILL_PARENT));
        mImageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions