android 2和#x2B上的9-patch drawable显示不同;和4.+;

android 2和#x2B上的9-patch drawable显示不同;和4.+;,android,nine-patch,Android,Nine Patch,我有基于9-patch drawable的列表选择器,但在基于android 2+和4+的android设备(LG Optimus Sol E730、Nexus 4、HTC One V)上看起来不同: android 2的结果+ android 4的结果+ 以下是选择器的代码: <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@dra

我有基于9-patch drawable的列表选择器,但在基于android 2+和4+的android设备(LG Optimus Sol E730、Nexus 4、HTC One V)上看起来不同: android 2的结果+

android 4的结果+

以下是选择器的代码:

<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@drawable/row_widget_selected" android:state_selected="true"/>
<item android:drawable="@drawable/row_widget_selected" android:state_pressed="true"/>
<item android:drawable="@drawable/row_widget_disabled" android:state_enabled="false"/>
<item android:drawable="@drawable/row_widget"/>

</selector>
 <com.ssbs.sw.SWE.widget.SpinnerWidget
    android:id="@+id/dialog_outlet_task_edit_spinner_type"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?listWidgetSelector"  

选择器的使用:

<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@drawable/row_widget_selected" android:state_selected="true"/>
<item android:drawable="@drawable/row_widget_selected" android:state_pressed="true"/>
<item android:drawable="@drawable/row_widget_disabled" android:state_enabled="false"/>
<item android:drawable="@drawable/row_widget"/>

</selector>
 <com.ssbs.sw.SWE.widget.SpinnerWidget
    android:id="@+id/dialog_outlet_task_edit_spinner_type"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?listWidgetSelector"  

我在这里找到了我问题的答案

解决这个问题最简单的方法是使用@commonware并将我所有的drawable移动到
res/drawable nodpi/
文件夹中