Note that there are some explanatory texts on larger screens.

plurals
  1. POtileMode="repeat" broken on Android 4.1 jelly bean
    primarykey
    data
    text
    <p>My app uses tiled backgrounds in a couple of places, and when I tested in the Android 4.1 Jelly Bean emulator, these backgrounds simply don't show up. I tried putting a regular image in instead, and it shows up fine. So I'm wondering if the tileMode="repeat" had been deprecated or something? Though I can't find any information saying so online. Here's my background xml file:</p> <p>backrepeat.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/greenchecker" android:tileMode="repeat" /&gt; </code></pre> <p>And here is where I use it in my button:</p> <p>greenchecker_btn.xml</p> <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item android:state_pressed="false" android:state_enabled="true" android:state_focused="false" android:drawable="@drawable/backrepeat" /&gt; &lt;item android:state_pressed="true" android:state_enabled="true" android:drawable="@drawable/backrepeat_over" /&gt; &lt;item android:state_pressed="false" android:state_enabled="true" android:state_focused="true" android:drawable="@drawable/backrepeat" /&gt; &lt;item android:state_pressed="false" android:state_enabled="false" android:state_focused="false" android:drawable="@drawable/backrepeat" /&gt; &lt;item android:state_pressed="false" android:state_enabled="false" android:state_focused="true" android:drawable="@drawable/backrepeat" /&gt; &lt;/selector&gt; </code></pre> <p>Anyone got any idea why this has stopped working in 4.1? Works in all other versions as far as I know. Thanks!</p> <p>EDIT -</p> <p>Seem to have solved the problem by replacing the tiling files which were gifs, with pngs.</p>
    singulars
    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