Last active
August 29, 2015 14:20
-
-
Save wispborne/97ec86df79ca61e707c2 to your computer and use it in GitHub Desktop.
Toolbar with shadow without Android elevation nonsense
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FrameLayout android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<include | |
layout="@layout/common_toolbar"/> | |
<FrameLayout android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<View android:layout_width="match_parent" | |
android:layout_height="4dp" | |
android:layout_below="@id/toolbar" | |
android:background="@drawable/toolbar_shadow"/> | |
// Other content, viewstub, whatever you wanna do, it goes here. | |
</FrameLayout> | |
</FrameLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | |
<gradient | |
android:startColor="#4b0f0f0f" | |
android:endColor="@color/transparent" | |
android:angle="270"/> | |
</shape> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment