Android
안드로이드 카드뷰 높이(elevation) 그림자가 안나올 때
Gibson 김형섭
2016. 7. 25. 17:08
android cardview elevation not working
이런식으로 카드뷰 가장자리의 elevation(높이효과) 가 적용 안될 땐
app:cardUseCompatPadding="true"
cardUseCompatPadding로 해결 가능
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardBackgroundColor="@color/white"
app:cardUseCompatPadding="true">