Add this single line in your activity, after setContentView()
call
getWindow().getDecorView().setBackgroundColor(Color.WHITE);
More Related Contents:
- Creating new Android (Java ) file in Existing Android package [closed]
- Start another activity with button
- Android – Get real path of a .txt file selected from the file explorer
- Maximum length of Intent putExtra method? (Force close)
- Sending arrays with Intent.putExtra
- How to convert a color integer to a hex String in Android?
- How do you use Intent.FLAG_ACTIVITY_CLEAR_TOP to clear the Activity Stack?
- How to change color of the back arrow in the new material theme?
- Prevent Android activity dialog from closing on outside touch
- How do you pass a string from one activity to another? [duplicate]
- Android – Activity Constructor vs onCreate
- Android Studio cannot resolve symbol but code executes correctly
- Android Unable to instantiate activity: Didn’t find class on path
- android.app.Application cannot be cast to android.app.Activity
- How to resume Android Activity programmatically from background
- android color between two colors, based on percentage?
- Issue: Passing large data to second Activity
- Android Call a method from another class
- How to exit an Android app programmatically?
- The activity must be exported or contain an intent-filter
- resuming an activity from a notification
- What’s the difference between this and Activity.this
- How can I get the average color of an image?
- Public static variables and Android activity life cycle management
- how to programatically theme an activity to be like a dialog?
- Android – Dynamically Get the Current Activity in Foreground
- Android color picker to be included in the activity
- IllegalArgumentException: Unknown URL content:// CONTENT
- Passing ArrayList of string arrays from one activity to another in android
- Using the camera activity in Android