bigmanLau / CardviewFix

对安卓原生cardview增加一个修改阴影颜色的功能和阴影上下比例
Apache License 2.0
205 stars 28 forks source link

emm.我这儿添加依赖提示错误 #1

Open Xbs233 opened 6 years ago

Xbs233 commented 6 years ago

Failed to resolve: com.github.bigmanLau:CardviewFix:1.0.3

还有请问,我把您的代码直接复制到我的工程里面使用。 xml: <com.**.**.**.FixedCardview.CardView android:id="@+id/recy_cardView" android:layout_width="346dp" android:layout_height="wrap_content" android:layout_marginLeft="15dp" android:layout_marginRight="15dp" app:cardCornerRadius="5dp" app:cardElevation="8dp" android:startColor ="#accfff" android:endColor= "#3ff70000"

    >

然后把他丢在recyclerview里面显示,阴影并没有颜色的变化emm。这是哪儿设置错了吗, attr里的自定义属性也是写了的

<attr name="topDelta" format="float"/>
   <attr name="endColor" format="reference|color"/>
                                                                                ----From一学Android不久的小白
bigmanLau commented 6 years ago

<com.**.**.**.FixedCardview.CardView 这个名字写错了吧