I just started Android development and tried a new material design.
is a screenshot of my mainactivity that has a FloatingActionButton, but it does not apply any enhancement (no shadows).
How to enable shadow for this new widget (android.support.widget.FloatingActionButton).
This is the code from the xml layout
<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"/>
Run codeAny help appreciated. Thanks
Please note: I would like to use the Android design library only for other github libraries.
source
share