Skip to content

ietf626/FakeCardView

Repository files navigation

Overview

不同于CardView的阴影偏移,FakeCardView为View周围添加同尺寸阴影,使用方式大体相同。 相关博客

Getting started

添加依赖

 dependencies {
    compile 'io.github.proton626.library.FakeCardView:library:1.0.0'
}

xml中声明

 <io.github.proton626.library.FakeCardView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        app:cardCornerRadius="5dp"
        app:cardElevation="10dp"
        app:cardMaxElevation="10dp"
        app:cardPreventCornerOverlap="true">

        <ImageView
            android:layout_width="320dp"
            android:layout_height="200dp"
            android:scaleType="fitXY"
            android:src="@mipmap/cover" />
    </io.github.proton626.library.FakeCardView>

API21显示效果


API18显示效果


License

This plugin is available under the Apache License, Version 2.0.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages