All Projects → aos3618 → ShadowDrawable

aos3618 / ShadowDrawable

Licence: other
为View 和 ViewGroup 添加阴影效果--Android,Add shadow for single view or viewgroup layout.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ShadowDrawable

Arclayout
With Arc Layout explore new styles and approaches on material design
Stars: ✭ 1,662 (+7454.55%)
Mutual labels:  view, layout, shadow
Longshadow
Add a long shadow on any Android View
Stars: ✭ 562 (+2454.55%)
Mutual labels:  view, layout, shadow
bubble-layout
An Android ViewGroup that displays avatar bubbles... similar to the chat bubbles on Facebook Messenger.
Stars: ✭ 46 (+109.09%)
Mutual labels:  view, layout, viewgroup
Bannerlayout
Support unlimited picture rotation BannerLayout, the minimum implementation of the code banner
Stars: ✭ 92 (+318.18%)
Mutual labels:  view, layout
Calendarview
Calendar View Library
Stars: ✭ 71 (+222.73%)
Mutual labels:  view, viewgroup
Kotlinanim
Create fluent animations in a kotlin way
Stars: ✭ 72 (+227.27%)
Mutual labels:  view, layout
Android Statefullayout
A custom Android ViewGroup to display different states of screen (CONTENT, PROGRESS, OFFLINE, EMPTY, etc.)
Stars: ✭ 140 (+536.36%)
Mutual labels:  view, layout
Expansionpanel
Android - Expansion panels contain creation flows and allow lightweight editing of an element.
Stars: ✭ 1,984 (+8918.18%)
Mutual labels:  view, layout
Android 3d Layout
Wow effect, transform your layout into 3D views
Stars: ✭ 199 (+804.55%)
Mutual labels:  view, layout
Slidemenulayout
🔥An android slide menu that supports left and right swipes and slides with parallax.(一个支持左右滑动并带有视差滑动效果的安卓侧滑菜单控件.仿[QQ/探探侧滑])
Stars: ✭ 235 (+968.18%)
Mutual labels:  view, viewgroup
Shadowimageview
🔥可以根据图片内容变阴影颜色,更加细腻的阴影效果 It can change color according to the picture, more delicate shadow effect
Stars: ✭ 2,560 (+11536.36%)
Mutual labels:  view, shadow
android-multibackground
This library can easily apply round corner、stroke、shadow and different state effects to background drawable.
Stars: ✭ 18 (-18.18%)
Mutual labels:  background, shadow
Readablebottombar
Yet another material bottom bar library for Android
Stars: ✭ 977 (+4340.91%)
Mutual labels:  view, layout
Androidlibs
🔥正在成为史上最全分类 Android 开源大全~~~~(长期更新 Star 一下吧)
Stars: ✭ 7,148 (+32390.91%)
Mutual labels:  view, layout
Kvconstraintkit
An Impressive Auto Layout DSL for iOS, tvOS & OSX. & It is written in pure swift.
Stars: ✭ 91 (+313.64%)
Mutual labels:  view, layout
Physicslayout
Android layout that simulates physics using JBox2D
Stars: ✭ 658 (+2890.91%)
Mutual labels:  view, layout
Chips Input Layout
A customizable Android ViewGroup for displaying Chips (specified in the Material Design Guide).
Stars: ✭ 591 (+2586.36%)
Mutual labels:  view, viewgroup
Nestedtouchscrollinglayout
🎱处理子 View,父 View 嵌套滚动,成本比 support v4 NestedScrolling 低,放心食用~
Stars: ✭ 557 (+2431.82%)
Mutual labels:  view, viewgroup
pulldownlayout
PullDownLayout is a small library that allows you to implement a view that can be dragged down your layout. PullDownLayout can also be used to implement Pull-To-Dismiss feature for your activities and fragments.
Stars: ✭ 16 (-27.27%)
Mutual labels:  view, layout
Flexml
🚀基于Litho的Android高性能动态业务容器。
Stars: ✭ 225 (+922.73%)
Mutual labels:  view, layout

ShadowDrawable

为View 和 ViewGroup 添加阴影效果 Android , Add shadow for View or ViewGroup image

Check for new version

LastestVersion  

Sample

    ShadowDrawable shadowDrawable = new ShadowDrawable();
    shadowDrawable.setColor(ContextCompat.getColor(this, R.color.my_blur))    //shadowcolor
            .setOffsetY(DensityUtil.dip2px(this, 5))    //阴影下偏移--offset of the shadow
            .setRadius(DensityUtil.dip2px(this, 8))     //四角半径--concern of the rectangle
            .setEdgeShadowWidth(DensityUtil.dip2px(this, 8))   //四周阴影半径-- the shadow of each edge of the rectangle
            .setFilterColor(0x56ffffff)                 //中间值,越大阴影越接近设置的值-- the slot to said how close to the shadowcolor
            .setTopMargin(DensityUtil.dip2px(this, 3))  //上间距--top margin
            .setParentHeight(DensityUtil.dip2px(this, 200))  //设置要依附的View的高度 -- the height of parent view
            .attach(bg)                                 //要在哪个View上面加阴影-- the shadow parent.REQUIRED
            .build();                                   //显示,必调-- to show the shadow.REQUIRED

Getting start

Gradle

1. Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

2. Add the dependency

dependencies {
        compile 'com.github.aos3618:ShadowDrawable:1.2.1'
}

Maven

1.

<repositories>
	<repository>
	    <id>jitpack.io</id>
	    <url>https://jitpack.io</url>
	</repository>
</repositories>

2. Add the dependency

 	<dependency>
    <groupId>com.github.aos3618</groupId>
    <artifactId>ShadowDrawable</artifactId>
    <version>1.2.1</version>
</dependency>   
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].