If one or several layout completly covers the parent view/ default view, then the default background is not visible to the user.
That means the default background draw is not usefull and can be avoided.
One way to acheive this optimisation is to create a custom theme where in we set the background as null.
Create a new xml file (i named it styles) under res/values folder
|
The XML content will look like
|
?xml version="1.0" encoding="utf-8"?> <resources> <style name="NoBackGroundColor_NoTitleBar" parent="@android:style/Theme.NoTitleBar"> <item name="android:windowBackground">@null</item> </style> </resources> Now use this style as theme in android manifest. <activity android:name=".ForayProfile" android:label="@string/app_name" android:theme="@style/NoBackGroundColor_NoTitleBar">