L'élévation ne travaille pas sur un LinearLayout

Après la recherche d'une solution, je n'ai pas trouvé pour résoudre mon problème.

J'ai une certaine altitude qui produit une ombre sur une grande partie de mon application.

Mais dans un lieu particulier, je ne suis pas en mesure de faire le travail.

(C'est là où j'ai mis une flèche sur la photo ci-dessous)

L'élévation ne travaille pas sur un LinearLayout

La zone blanche en dessous de la barre d'outils est un Fragment qui affiche un LinearLayout

mise en page:

<LinearLayout
    android:id="@+id/panelAddress"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/button_flat_white"
    android:elevation="10dp"
    android:orientation="vertical"
    android:padding="20dp"
    >  
//some content
</LinearLayout>

Le parent du Fragment :

<android.support.v4.widget.DrawerLayout
    android:id="@+id/drawerLayout"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <include
            android:id="@+id/custom_toolbar"
            layout="@layout/toolbar"/>

        <RelativeLayout
            android:id="@+id/mapLayout"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <fragment
                android:id="@+id/map"
                class="com.google.android.gms.maps.SupportMapFragment"
                android:layout_width="match_parent"
                android:layout_height="match_parent"/>

            <FrameLayout
                android:id="@+id/fragment_container_top"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentTop="true"
                />

            <FrameLayout
                android:id="@+id/fragment_container_bottom"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"/>

        </RelativeLayout>

    </LinearLayout>

</android.support.v4.widget.DrawerLayout>

Avez-vous une idée de pourquoi je ne reçois pas mon élévation?

  • La couleur de l'arrière-plan de la linearlayout rouge, juste pour savoir de quoi il s'région est vraiment. Il pourrait s'étendant sur tout le fragment.
  • Il prend le bon endroit..
  • Avez-vous essayez android:outlineProvider="limites" dans votre fragment?
InformationsquelleAutor agonist_ | 2015-10-29