Create shadows for a layout in Android Studio -


layout shadow

i create same shadow , layout shown in above figure tried http://inloop.github.io/shadow4android/ not able clear 9 patch lines on top , left side of image

using material design, can done elegantly using elevation:

<textview     android:id="@+id/myview"     ...     android:elevation="2dp"     android:background="@drawable/myrect" /> 

https://developer.android.com/training/material/shadows-clipping.html


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -