build.gradle添加
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
build.gradle(app)添加
dependencies {
implementation 'com.github.lihangleo2:ShadowLayout:2.0.1'
}
使用
<com.lihang.ShadowLayout
android:id="@+id/card_sina_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="30dp"
android:layout_marginTop="50dp"
android:layout_marginEnd="30dp"
android:layout_marginBottom="10dp"
app:hl_cornerRadius="15dp"
app:hl_dy="10dp"
app:hl_shadowBackColor="@color/colorLightBlue"
app:hl_shadowColor="#2a000000"