Android layout 微调器项小文本在某些设备上不可见

Android layout 微调器项小文本在某些设备上不可见,android-layout,android-listview,android-spinner,android,Android Layout,Android Listview,Android Spinner,Android,我想更改微调器项布局。布局将有两个文本视图。一个是小尺寸文本,另一个是中等尺寸文本。下面的布局是我正在使用的: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:minHeight="40dp"

我想更改微调器项布局。布局将有两个文本视图。一个是小尺寸文本,另一个是中等尺寸文本。下面的布局是我正在使用的:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:minHeight="40dp"
    android:layout_height="wrap_content"
    android:orientation="horizontal">

    <TextView
        android:id="@+id/test1"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:paddingLeft="5dp"
        android:gravity="center_vertical"
        android:text="foo" />

    <TextView
        android:id="@+id/test2"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:paddingLeft="5dp"
        android:gravity="center_vertical"
        android:text="bar" />

</LinearLayout>
这在我的500元账单上效果很好,还安装了冰淇淋三明治。微调器具有黑色背景,文本具有白色文本。但是,如果我在运行2.3.3的HTC Desire HD上使用完全相同的布局,则微调器背景已更改为白色。这是不可能看到的文字,因为这也是白色的

相反,我可以使用textAppearance{Small,Medium}反转,但情况正好相反。文本将在HTC Desire上可见,但在A500上不可见

这个问题似乎找到了解决办法,但据我所知,textColorPrimary包含在textAppearance{Small,Medium}中

出于可维护性的原因,无论是什么设备或android版本,我都希望使用相同的布局。我该怎么办

此外,如果我能为ListView项目使用完全相同的布局,同样出于可维护性的原因,那也太好了