Note that there are some explanatory texts on larger screens.

plurals
  1. POBackground properties on ImageView ignored when placed over ViewFlipper
    primarykey
    data
    text
    <p>I have an Activity that contains a FrameLayout and two views. The first is a ViewFlipper and the second is an ImageView. If I comment out the ViewFlipper, the activity renders the ImageView and its background correctly, but when the ViewFlipper is visible, the ImageView's background is completely ignored.</p> <p>Is this a "feature" of ViewFlipper? Is there a way I can work around this?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/background_light" &gt; &lt;ViewFlipper android:id="@+id/flipper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:flipInterval="5000" &gt; &lt;include layout="@layout/cell_1" android:id="@+id/cell_1"/&gt; &lt;include layout="@layout/cell_2" android:id="@+id/cell_2"/&gt; &lt;include layout="@layout/cell_3" android:id="@+id/cell_3"/&gt; &lt;/ViewFlipper&gt; &lt;ImageView android:background="@drawable/alpha_gradient_background" android:id="@+id/statusIcon" android:src="@drawable/status_icon" android:padding="5dp" android:layout_gravity="right" android:layout_height="wrap_content" android:layout_width="wrap_content" android:top="10dp" android:right="10dp" /&gt; &lt;/FrameLayout&gt; </code></pre> <p>And my background drawable looks like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"&gt; &lt;stroke android:width="3dp" android:color="#ffff0000" /&gt; &lt;gradient android:startColor="#66660000" android:centerColor="#66006600" android:endColor="#66000066" android:angle="270" /&gt; &lt;/shape&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.
    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