• Stars
    star
    1,371
  • Rank 34,304 (Top 0.7 %)
  • Language
    Kotlin
  • Created about 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Deprecated because of the performance not fine. Android custom shadow view, can replace your CardView

shadow

This library draw android view shadow by ShadowLayer. You may don't like the CardView's black shadow which we can't change it's color. Same to CardView wrap content and set shadow radius. You can change shadow color, foreground color and corner radius everywhere. Because the shadow is draw in the view. So you must add space to draw the shadow. The ShadowView add one param shadowMargin which must be set before you add shadow radius to the view.

Caveat: Margin In UI~ = layout_margin + shadow_margin(Add by ShadowView)

Download Sample

Screenshot

H H H
Change Radius Change foreground Change Corners
Change shadow color Change shadow margin Demo

Installation

dependencies {
    compile 'com.loopeer.lib:shadow:0.0.4-beta3'
}

Usages

<com.loopeer.shadow.ShadowView
    android:id="@+id/shadow_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_margin="12dp"
    android:elevation="10dp"
    android:foreground="?attr/selectableItemBackground"
    android:onClick="onShadowClickTest"
    android:padding="10dp"
    app:cornerRadius="4dp"
    app:shadowMargin="20dp"
    app:shadowRadius="14dp">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Google Developer Days Europe 2017 took place in Krakow, Poland. In this playlist, you can find all the recorded sessions from the event, across all tracks (Develop on Mobile, Mobile Web, Beyond Mobile, and Android)."/>
</com.loopeer.shadow.ShadowView>

Attribute

android:foreground
shadowMargin
shadowMarginTop
shadowMarginLeft
shadowMarginRight
shadowMarginBottom
cornerRadius
cornerRadiusTL
cornerRadiusTR
cornerRadiusBL
cornerRadiusBR
foregroundColor
shadowColor
shadowDx
shadowDy
shadowRadius
backgroundColor

Donate

License

Copyright 2017 Loopeer

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

CardStackView

One Custom view for show something just like cards with animations.
Java
2,179
star
2

itemtouchhelper-extension

Extension for itemtouchhelper with swipe settling,recover and no conflict with recyclerview
Java
1,040
star
3

code-reader

One Multi program language code reader
Kotlin
947
star
4

AlertTransition

AlertTransition is a extensible library for making view controller transitions, especially for alert transitions.
Swift
580
star
5

SpringHeader

An implementation of spring-like header (known as pull-to-refresh) that using CoordinatorLayout.
Java
177
star
6

ScrollTableView

Android one demo of horizontal and vertical scroll custom table view
Java
112
star
7

ImageGroupView

Android image group view. One android custom view you can show and add image
Java
73
star
8

PullSwitcher

Help to switch fragment easier
Java
50
star
9

LoginLib

ๅฏน็™ปๅฝ•ๆณจๅ†Œไธญๅ‘้€้ชŒ่ฏ็ ๆŒ‰้’ฎๅ’ŒๆไบคๆŒ‰้’ฎ็š„ๅฐ่ฃ…ใ€‚
Java
29
star
10

MultiTextTagView

Android Multi Tag View
Java
23
star
11

quickcms

laravel quick cms
HTML
20
star
12

LPAlbum

an albums that can preview, multiple-choice
Swift
17
star
13

AutoLoopPager

One library can make pager slide loop, and add your custom view easier.
Java
17
star
14

AttributedStringWrapper

a simple packaging for NSAttributedString to make the developers easy to use
Swift
16
star
15

CoordinateLayoutDemo

Android One Test of CoordinatorLayout
Java
14
star
16

ProjectDevelopModule

Java
11
star
17

AndroidLearnNote

Some note from learning Android
Java
8
star
18

PullToRefreshAndLoadMore

Android pull to refresh, load more
Java
3
star
19

android-kotlin-ext

One library of kotlin extension functions for android
Kotlin
3
star
20

easypush

A package for push messages
PHP
2
star
21

android-plugin-loopeermodel

an Android Studio plugin for generating model using loopeer data dictionary.
Java
1
star
22

QRCodeScan

Java
1
star
23

FilterDropMenu

Java
1
star
24

bangduobao

ๅธฎๅคšๅฎ้ฆ–้กต้™ๆ€ๆ–‡ไปถ
HTML
1
star
25

LoopeerLogin

Java
1
star
26

DriveIndicator

Java
1
star