Setting Elevation in XML on AppCompat CardView on Android 5.0

It looks like a margin/padding problem, try to set the cardUseCompatPadding attribute to true. E.g.: <android.support.v7.widget.CardView xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:card_view=”http://schemas.android.com/apk/res-auto” android:layout_width=”match_parent” android:layout_height=”match_parent” android:layout_margin=”6dp” card_view:cardUseCompatPadding=”true” card_view:cardElevation=”4dp” card_view:cardCornerRadius=”3dp”> Explanation from Android doc : CardView adds additional padding to draw shadows on platforms before L. This may cause Cards to have different sizes between L and before L. If you … Read more

Android “elevation” not showing a shadow

I’ve been playing around with shadows on Lollipop for a bit and this is what I’ve found: It appears that a parent ViewGroup‘s bounds cutoff the shadow of its children for some reason; and shadows set with android:elevation are cutoff by the View‘s bounds, not the bounds extended through the margin; the right way to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)