All Projects → wangjiegulu → Shadowviewhelper

wangjiegulu / Shadowviewhelper

Licence: apache-2.0
Shadow layout, shadow view for android.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Shadowviewhelper

iconplus
Produce icons with extra effect like long shadow, flat shadow, box effect, circle effect and rounded rectangle effect. It support Dynamic text, Font-awesome icons and also google materialized icon. You can make any Font-awesome icon as line icon and add attractive effect to it dynamically. As a output you will get CSS3 code and also you can expo…
Stars: ✭ 34 (-95.64%)
Mutual labels:  shadow
Tintlayout
This library help you to achieve popular drop shadow effect from view.
Stars: ✭ 322 (-58.66%)
Mutual labels:  shadow
Unitypcss
Nvidia's PCSS soft shadow algorithm implemented in Unity
Stars: ✭ 533 (-31.58%)
Mutual labels:  shadow
Tiny-OpenGL-Shadow-Mapping-Examples
Compact OpenGL Shadow Mapping Examples in a single compilation unit
Stars: ✭ 21 (-97.3%)
Mutual labels:  shadow
shadow-accrual-maps
Accumulated shadow data computed for New York City
Stars: ✭ 15 (-98.07%)
Mutual labels:  shadow
React Native Cardview
Native CardView for react-native (All Android version and iOS)
Stars: ✭ 426 (-45.31%)
Mutual labels:  shadow
django-undeletable
undeletable Django models
Stars: ✭ 13 (-98.33%)
Mutual labels:  shadow
Thlabel
UILabel subclass, which additionally allows shadow blur, inner shadow, stroke text and fill gradient.
Stars: ✭ 636 (-18.36%)
Mutual labels:  shadow
Shadowhelper
A library to add shadows for the Android View.(一个方便为Android View添加自然的阴影的库)
Stars: ✭ 322 (-58.66%)
Mutual labels:  shadow
Cardview
小票形状的CardView,可以修改阴影颜色
Stars: ✭ 494 (-36.59%)
Mutual labels:  shadow
modular-deferred-gpu-particle-system
modular particle system using compute shaders.
Stars: ✭ 20 (-97.43%)
Mutual labels:  shadow
shadow
shadow table.
Stars: ✭ 12 (-98.46%)
Mutual labels:  shadow
Coloredshadowimageview
ColoredShadowImageView allows you to create a beautiful shadow around the image based on corresponding area colors.
Stars: ✭ 454 (-41.72%)
Mutual labels:  shadow
AndroidJoyStickView
This library lets you create joystick with some customization for android
Stars: ✭ 45 (-94.22%)
Mutual labels:  shadow
Shadowlayout
This library allows you to create a shadow effect for your layout based on your child.
Stars: ✭ 553 (-29.01%)
Mutual labels:  shadow
SPPerspective
Widgets iOS 14 animation with 3D and dynamic shadow. Customisable transform and duration.
Stars: ✭ 271 (-65.21%)
Mutual labels:  shadow
Shadowview
An iOS Library that makes shadows management easy on UIView.
Stars: ✭ 391 (-49.81%)
Mutual labels:  shadow
Autordpwn
The Shadow Attack Framework
Stars: ✭ 688 (-11.68%)
Mutual labels:  shadow
Longshadow
Add a long shadow on any Android View
Stars: ✭ 562 (-27.86%)
Mutual labels:  shadow
React Native Neomorph Shadows
Shadows and neumorphism/neomorphism for iOS & Android (like iOS).
Stars: ✭ 478 (-38.64%)
Mutual labels:  shadow

ShadowViewHelper

Shadow layout, shadow view for android.

How to use:

It's very simple to use.

Gradle(Check newest version):

compile 'com.github.wangjiegulu:ShadowViewHelper:x.x.x'

Maven(Check newest version):

<dependency>
    <groupId>com.github.wangjiegulu</groupId>
    <artifactId>ShadowViewHelper</artifactId>
    <version>x.x.x</version>
</dependency>

xml:

<LinearLayout
      android:id="@+id/activity_main_shadow_view"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      >
</LinearLayout>

Activity:

// all side shadow
ShadowProperty sp = new ShadowProperty()
        .setShadowColor(0x77000000)
        .setShadowDy(dip2px(this, 0.5f))
        .setShadowRadius(dip2px(this, 3))
        .setShadowSide(ShadowProperty.ALL);
ShadowViewDrawable sd = new ShadowViewDrawable(sp, Color.WHITE, 0, 0);
ViewCompat.setBackground(shadowViewA, sd);
ViewCompat.setLayerType(shadowViewA, ViewCompat.LAYER_TYPE_SOFTWARE, null);

// only all sides except top shadow
ShadowProperty sp = new ShadowProperty()
        .setShadowColor(0x770000FF)
        .setShadowDy(dip2px(this, 0.5f))
        .setShadowRadius(dip2px(this, 3))
        .setShadowSide(ShadowProperty.LEFT | ShadowProperty.RIGHT | ShadowProperty.BOTTOM);
ShadowViewDrawable sd = new ShadowViewDrawable(sp, Color.TRANSPARENT, 0, 0);
ViewCompat.setBackground(shadowViewD, sd);
ViewCompat.setLayerType(shadowViewD, ViewCompat.LAYER_TYPE_SOFTWARE, null);

License

Copyright 2015 Wang Jie

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.

Android Arsenal

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].