Note that there are some explanatory texts on larger screens.

plurals
  1. PODark background instead of custom one - but only on ICS
    primarykey
    data
    text
    <p>I have a problem with my app on ICS (Google Nexus is testing device).</p> <p>My app uses a fully custom appearance. My layouts have own background drawables buttons have their own drawables etc. So I do not use the default style anywhere. Also I did not define a style anywhere.</p> <p>My problem is now: The app looks fine on any device I tested on that is pre-ics (e.g. 3.1, 2.3 etc). On ics however the background drawable is overridden with the dark gray background (Holo.Dark/Light ???).</p> <p>My custom background is quite bright and the text is black. On ICS the background is dark gray and the text still black (since I defined it as black). So the text is unreadable.</p> <p>What I want is: On any device <strong>including ICS</strong> I want the app to display my custom background. I do not want to use any default theme.</p> <p>I hope this question has not been asked before. I believe somebody else must have had the same problem but I could not find anything on Google or SO...</p> <p><strong>EDIT:</strong> Ok here is the layout that fails. Since it quite long I left out irrelevant parts and added some comments. Also before anyones asks. The background drawable is available for any device. Also important to know is that this layout is used for all activities as basis. All activities inflate their own layouts into the content-FrameLayout</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/bg" android:baselineAligned="false" android:orientation="vertical" &gt; &lt;!-- the background of this LL is _not_ shown on ICS --&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/bg_menu_top" android:orientation="horizontal" &gt; &lt;!-- the background of this LL is shown on ICS --&gt; &lt;!-- the title of the activity at the top of the screen --&gt; &lt;TextView android:id="@+id/main_frame_title" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:gravity="center" android:text="Title" android:textColor="#FFF" android:textSize="25sp" android:textStyle="bold" /&gt; &lt;!-- some other views here --&gt; &lt;/LinearLayout&gt; &lt;!-- this text is not visible on a dark background but on a bright one --&gt; &lt;TextView android:id="@+id/main_frame_subtitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="5dip" android:text="Subtitle" android:textColor="#000" android:textSize="20sp" android:textStyle="bold" /&gt; &lt;FrameLayout android:id="@+id/main_frame_content" android:layout_width="match_parent" android:layout_height="0dip" android:layout_weight="1" &gt; &lt;!-- every activity inserts its specific layout here --&gt; &lt;/FrameLayout&gt; &lt;LinearLayout android:id="@+id/main_frame_breadcrumb" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/bg_menu_top" android:orientation="horizontal" &gt; &lt;!-- breadcrumb bar at the bottom --&gt; &lt;!-- many ImageButtons are here --&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload