0

ListViewヘッダー付きがあります。このヘッダーにLinearLayoutは、定義済みのスタイルがあります。問題は、このレイアウトがそのスタイルを示していないことです。

ヘッダーのコード:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    style="?blueHardBackground"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="5dip"
    android:layout_marginRight="5dip"
    android:layout_marginTop="2dp"
    android:orientation="vertical" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_weight="1"
        android:orientation="horizontal" >

        <Spinner
            android:id="@+id/spinnerCiudad"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawSelectorOnTop="true" />

        <Spinner
            android:id="@+id/spinnerCategoria"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawSelectorOnTop="true" />
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:orientation="horizontal" >

        <EditText
            android:id="@+id/textNombreElemento"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ems="10"
            android:textSize="6pt"
            android:typeface="serif" >

            <requestFocus />
        </EditText>

        <ImageView
            android:id="@+id/botonFiltrar"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:contentDescription="Mostrar"
            android:src="@drawable/buscar_n" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/capaNumResultados"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_weight="1"
        android:orientation="horizontal" >

        <TextView
            android:id="@+id/textNumResultados"
            style="?textRegular"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:text="" />
    </LinearLayout>

</LinearLayout>

中央に丸みを帯びた青色で表示されるはずですが、スタイルなしで透明に表示され、左側に表示されます。

4

1 に答える 1