0

In my android app, I am getting the warning about the possible overdraw. I am trying to follow the thread here to fix it:

"Possible overdraw: Root element paints background "

But If I try it, it makes all my layouts messed up, like the buttons are in different places and different looking, and if I open a dialog box, its width is really small...

I made a theme here:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="MyTheme" parent="android:Theme">
        <item name="android:background">@drawable/bg_normal</item>
    </style>
</resources>

Then in manifest I have

    <activity
        android:name="com.activity.idsconnect.ActivityAdminMainMenu"
        android:label="@string/title_activity_activity_admin_main_menu" 
        android:theme="@style/MyTheme"
        android:screenOrientation="portrait" >
    </activity>

And then removed the background attribute from the root linear layout on the activity.

Am I doing something wrong here? Does anyone know?

Thanks.

Community
  • 1
  • 1
omega
  • 40,311
  • 81
  • 251
  • 474

0 Answers0