Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mrhdias opened this issue Sep 5, 2016 · 2 comments

Comments

@mrhdias
Copy link
Contributor

mrhdias commented Sep 5, 2016

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);
...
@inclement
Copy link
Member

Sure. If you'd like to do a PR for this, it would be welcome, otherwise someone will probably add it when they have time.

@inclement
Copy link
Member

This is now possible under SDL2, with the --presplash-color argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants