We need to set the background to the top level view added to Window Manager
To resolve this issue, follow these steps:
1. You must set the background to the onCreate () method
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setBackgroundDrawableResource(R.drawable.your_drawable_background); }
2. Change the background from your xml
android:background="@drawable/your_drawable_background"
Resetting the background with a scroll view will be fully enabled.
source share