Android
Toolbar Shadow, Cubic Effect
그란.
2020. 7. 4. 18:37
1. 얇게

<View
android:layout_alignParentBottom="true"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="@drawable/drop_shadow" >
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient
android:startColor="@android:color/transparent"
android:endColor="#44000000"
android:angle="90"/>
</shape>
2. 두껍게

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:gravity="bottom">
<shape>
<size android:height="5dp" />
<solid android:color="#f5f5f5" />
<gradient
android:angle="90"
android:endColor="#23000000"
android:startColor="@android:color/transparent" />
</shape>
</item>
</layer-list>