Fix QC toolbar drop shadow
I broke the drop shadow in ag/491387.
Change-Id: Idb3a1bebd806a41fcda33edd3ade2b077ea17a9f
diff --git a/res/layout/quickcontact_header.xml b/res/layout/quickcontact_header.xml
index e3dfa02..0c51746 100644
--- a/res/layout/quickcontact_header.xml
+++ b/res/layout/quickcontact_header.xml
@@ -14,10 +14,14 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
+
+<!-- Needs a non null background in for elevation to work on this View. This will *not* cause an
+ additional draw since the background is transparent. -->
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:background="#00000000"
android:id="@+id/toolbar_parent">
<com.android.contacts.widget.QuickContactImageView
@@ -27,8 +31,9 @@
android:scaleType="centerCrop"
android:contentDescription="@string/description_contact_photo" />
- <!-- Need to set a non null background on Toolbar in order for MenuItem
- ripples to be drawn on this view, instead of another-->
+ <!-- Need to set a non null background on Toolbar in order for MenuItem ripples to be drawn on
+ this view, instead of another. This will *not* cause an additional draw since the
+ background is transparent.-->
<Toolbar
android:layout_width="match_parent"
android:layout_height="?android:attr/actionBarSize"
@@ -48,4 +53,4 @@
android:layout_marginBottom="@dimen/quickcontact_title_initial_margin"
android:id="@+id/large_title"/>
-</FrameLayout>
\ No newline at end of file
+</FrameLayout>