Add drop shadow under attachment drawer.

This commit is contained in:
Greyson Parrelli 2018-08-11 11:50:50 -04:00
parent 5cdf5499d0
commit 4d565990c9
3 changed files with 220 additions and 197 deletions

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="@color/transparent_black_30"
android:endColor="@color/transparent_black"
android:angle="90"/>
</shape>

View File

@ -1,7 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View android:layout_width="match_parent"
android:layout_height="4dp"
android:background="@drawable/attachment_selector_shadow"/>
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attachment_type_selector_background">
@ -222,3 +231,5 @@
</LinearLayout>
</LinearLayout>
</LinearLayout>

View File

@ -57,6 +57,7 @@
<color name="sticker_selected_color">#99ffffff</color>
<color name="transparent">#00FFFFFF</color>
<color name="transparent_black">#00000000</color>
<color name="MediaOverview_Media_selected_overlay">#88000000</color>