我想用Cardslib更改材料卡的默认阴影。
我有名片
<it.gmariotti.cardslib.library.view.CardViewNative
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card="http://schemas.android.com/apk/res-auto"
android:id="@+id/list_cardId"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/native_recyclerview_card.base"
card:card_layout_resourceID="@layout/native_material_largeimage_card"/>根据documentation https://github.com/gabrielemariotti/cardslib/blob/master/doc/SHADOW.md#customizing-shadow的说法,我在/drawable文件夹中添加了带有我的值的card_shadow.xml,但是这没有任何意义。
怎么了?谢谢!
发布于 2015-05-07 10:40:48
自定义阴影适用于CardView,而您正在创建CardViewNative
在页面开始处阅读https://github.com/gabrielemariotti/cardslib/blob/master/doc/SHADOW.md
注意:CardViewNative不使用这个视图,因为它是本地支持的。
仅CardView支持以下所有功能
https://stackoverflow.com/questions/30072792
复制相似问题