Add a long shadow on any Android View
Switch branches/tags
Nothing to show
Clone or download
Latest commit 33a79a5 Oct 1, 2018
Permalink
Failed to load latest commit information.
.idea update Oct 25, 2017
app update Oct 22, 2017
gradle initial import Oct 20, 2017
longshadow Only create new canvas and bitmap when view size change. Oct 25, 2017
medias update Oct 22, 2017
.gitignore Initial commit Oct 20, 2017
LICENSE Initial commit Oct 20, 2017
README.md Update README.md Oct 1, 2018
build.gradle update Oct 25, 2017
gradle.properties initial import Oct 20, 2017
gradlew initial import Oct 20, 2017
gradlew.bat initial import Oct 20, 2017
publish.sh initial import Oct 20, 2017
result.png initial import Oct 20, 2017
settings.gradle initial import Oct 20, 2017

README.md

LongShadow

Android Arsenal

Add a long shadow on any Android View

Android app on Google Play

gif

Android app on Google Play
<com.github.florent37.longshadow.LongShadow
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/shadow"
        app:shadow_angle="60"
        app:shadow_color="#739440"
        android:background="#99ca55">

        <TextView
            android:id="@+id/logo"
            android:layout_width="wrap_content"
            android:layout_height="120dp"
            android:gravity="center"
            android:textColor="#FFF"
            android:textSize="30sp"
            android:layout_gravity="center"
            android:text="hello world!" />

    </com.github.florent37.longshadow.LongShadow>

Buy Me a Coffee at ko-fi.com

Download

dependencies {
    compile 'com.github.florent37:longshadow:(lastversion)'
}

Any View

You can add a long shadow on any view, even custom views

gif

<com.github.florent37.longshadow.LongShadow
        android:layout_width="match_parent"
        android:layout_height="100dp"
        android:id="@+id/shadow2"
        app:shadow_angle="140"
        app:shadow_color="#406694"
        android:background="#55a9ca">

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_gravity="left|center_vertical"
            android:layout_marginLeft="70dp"
            app:srcCompat="@drawable/ic_android_white_24dp" />

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_gravity="right|center_vertical"
            android:layout_marginRight="70dp"
            app:srcCompat="@drawable/ic_android_white_24dp" />

</com.github.florent37.longshadow.LongShadow>

Credits

Author: Florent Champigny http://www.florentchampigny.com/

Blog : http://www.tutos-android-france.com/

Fiches Plateau Moto : https://www.fiches-plateau-moto.fr/

Android app on Google Play Follow me on Google+ Follow me on Twitter Follow me on LinkedIn

License

Copyright 2017 Florent37, Inc.

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.