I've just started android development and trying the new material design. is a screenshot of my mainactivity which has a FloatingActionButton but it doesnt applying any elevation (no shadows).
How can I enable shadow on this new widget (android.support.widget.FloatingActionButton).
This is code from layout xml
<android.support.design.widget.FloatingActionButton
android:id="@+id/add_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:src="@drawable/ic_add_action"
android:layout_margin="16dp"
android:elevation="10dp"
android:padding="10dp"/>
Any help appreciated. Thanks
Please note I'd like to use android design library only not any other github libraries.
After a lot of research, I've found the proper way to use FAB with no issues. Use the code below as template: