Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy is the first item in my listview using a different selector on tablets?
    primarykey
    data
    text
    <p>This happens on a Google Nexus 10 and it's working properly on phones</p> <hr> <p>So I need some reputation before I can post any images, however you can check it out here: <a href="http://i.imgur.com/2tG6b0h.png" rel="nofollow">http://i.imgur.com/2tG6b0h.png</a></p> <p>The listview is working perfectly except when it comes to the first item. It gets drawn with different coloring (namely I'm noticing transparency being higher) and when using single choice mode it can get highlighted properly, but then keeps it's highlight when other items are pressed. </p> <hr> <p>My list selector goes something like this:</p> <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item android:drawable="@android:color/transparent" android:state_window_focused="false"/&gt; &lt;item android:drawable="@drawable/rounded_list_selector_disabled_holo_dark" android:state_enabled="false" android:state_focused="true" android:state_pressed="true"/&gt; &lt;item android:drawable="@drawable/rounded_list_selector_disabled_holo_dark" android:state_enabled="false" android:state_focused="true"/&gt; &lt;item android:drawable="@drawable/list_selector_background_transition_holo_dark" android:state_focused="true" android:state_pressed="true"/&gt; &lt;item android:drawable="@drawable/list_selector_background_transition_holo_dark" android:state_focused="false" android:state_pressed="true"/&gt; &lt;item android:drawable="@drawable/rounded_list_focused_holo" android:state_focused="true"/&gt; </code></pre> <p></p>
    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