Skip to content
Create something like Shadow-View animation when drag the view on screen
Branch: master
Clone or download
Latest commit 8a31af2 May 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea add ui test May 13, 2019
app add ui test May 13, 2019
gradle/wrapper init commit Apr 21, 2019
shadowstackview
.gitignore init commit Apr 21, 2019
LICENSE Initial commit Apr 21, 2019
README.md add license Apr 27, 2019
build.gradle add ui test May 13, 2019
gradle.properties init commit Apr 21, 2019
gradlew init commit Apr 21, 2019
gradlew.bat init commit Apr 21, 2019
publish.gradle fix bundleRelease isssue Apr 27, 2019
settings.gradle init commit Apr 21, 2019

README.md

ShadowStackView

Create something like Shadow-View animation when drag the view on screen

Gradle

implementation "com.rebooter:shadowstackview:0.0.1"

Usage

ShadowStack.with(this).targetView(layout).apply()

The function with(activity:Activity) need an instance of Activity or subclass of Activity . We use Activity with WeakReference Internal.

ShadowStack.with(this)
    .targetView(card)
    .setShadowCount(20)
    .apply()

set Shadow-View count.

more detail usage could be found in example

Attention :The rootView of Activity (aka the layout.xml used to setContentView) can not be LinearLayout

todo

  • support Custom Container
  • support LinearLayout
  • support Scrollable RecyclerView

Thanks

This library is inspired by devilist/SnakeViewMaker and uses some of its source code.

License


Copyright 2019 REBOOTERS

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.
You can’t perform that action at this time.